Search found 6 matches

by Safio
Sat Feb 09, 2013 8:08 pm
Forum: Volume 101 (10100-10199)
Topic: 10130 - SuperSale
Replies: 76
Views: 22430

Re: 10130 - SuperSales

seem to have a runtime error (again) I also cannot compile it using g++. Anyway, could someone help to debug? I am relatively new to DP. Also, can someone tell me how to make this run faster (if it does run at all). #include <iostream> using namespace std; int main(){ int T,N,G,P[100],W[30],F[30],ma...
by Safio
Tue Jan 29, 2013 8:02 am
Forum: Volume 101 (10100-10199)
Topic: 10189 - Minesweeper
Replies: 418
Views: 66718

Re: 10189 - Minesweeper

brianfry713 wrote:Try replacing the ' on line 33 with "
I tried but still WA. Sorry to bother you again but could you help me see why it is wrong?
by Safio
Sat Jan 26, 2013 5:50 pm
Forum: Volume 101 (10100-10199)
Topic: 10189 - Minesweeper
Replies: 418
Views: 66718

Re: 10189 - Minesweeper

Hi, thanks alot for the reply. I tried submitting it without the comment and it worked (lol). However, I still got a wrong answer. I've tried on my local compiler and it works fine. Can I bother you to help me debug the problem again? Also, are there other things that I have to look out for when sub...
by Safio
Fri Jan 25, 2013 3:45 pm
Forum: Volume 101 (10100-10199)
Topic: 10189 - Minesweeper
Replies: 418
Views: 66718

Re: 10189 - Minesweeper

I have done what you've suggested but still received runtime error. Could you advice on how I can make it accepted? Here is my modified code: #include <iostream> using namespace std; int main(){ int a, b, c, d, f=1; char game[102][102]; while(cin>>a>>b && a!=0 && b!=0){ int bom=0, bomb[10002]; // pu...
by Safio
Wed Jan 23, 2013 7:08 am
Forum: Volume 101 (10100-10199)
Topic: 10189 - Minesweeper
Replies: 418
Views: 66718

Re: 10189 - Minesweeper

brianfry713 wrote:There must be an empty line between field outputs.
Don't print a blank line at the end.
What's the difference between an empty line and a blank line? How do I create an empty line? (cldn find it on google)
by Safio
Tue Jan 22, 2013 5:09 pm
Forum: Volume 101 (10100-10199)
Topic: 10189 - Minesweeper
Replies: 418
Views: 66718

Re: 10189 - Minesweeper

I'm kinda new to c++. Anyway, I've been trying out UVa and tried solving problems. However, I received a runtime error when I submitted it. I tried to find the error but could not. Could someone help me debug the error? Your help would be much appreciated. #include <iostream> using namespace std; in...

Go to advanced search