Search found 4 matches

by lazyplatoon
Fri Dec 12, 2014 7:53 am
Forum: Volume 101 (10100-10199)
Topic: 10189 - Minesweeper
Replies: 418
Views: 125146

Re: 10189 - Minesweeper

lighted wrote:Usually when you get RE try to increase array bounds.

Code: Select all

char mine[m + 1][n + 1];
int result[m + 1][n + 1];
Don't print blank line after last line
It didn't work... Now I got WA...
by lazyplatoon
Thu Dec 11, 2014 8:31 am
Forum: Volume 101 (10100-10199)
Topic: 10189 - Minesweeper
Replies: 418
Views: 125146

Re: 10189 - Minesweeper

I got Runtime Error... Any suggestions how to resolve it ???


#include <iostream>

using namespace std;

int main(){

int m, n, count = 0;
while(cin >> m >> n){
if(m == 0 && n == 0) break;

char mine[m][n];
int result[m][n];

for(int i = 0; i < m; i++){
for(int j = 0; j < n; j++){
result[i ...
by lazyplatoon
Thu Dec 11, 2014 8:29 am
Forum: Volume 2 (200-299)
Topic: 272 - TEX Quotes
Replies: 136
Views: 56701

Re: 272 - TEX Quotes

lighted wrote:Don't set count to 0 in loop. It should be set to 0 once, before loop. Change line to

Code: Select all

if (str[i] == '"') {
Thanks man... Silly mistake... :P
by lazyplatoon
Wed Dec 10, 2014 5:06 am
Forum: Volume 2 (200-299)
Topic: 272 - TEX Quotes
Replies: 136
Views: 56701

Re: 272 - TEX Quotes

I'm getting wrong answer... Can you please tell me what's the problem??

Code: Select all

//Removed after AC

Go to advanced search