You are viewing a single comment's thread. Return to all comments →
Initialize q=0 again just below the for loop (maybe before cin>>d). q value becomes altered after one iteration. So u have to keep it to q=0.
Seems like cookies are disabled on this browser, please enable them to open this website
Angry Professor
You are viewing a single comment's thread. Return to all comments →
Initialize q=0 again just below the for loop (maybe before cin>>d). q value becomes altered after one iteration. So u have to keep it to q=0.