Search found 1 match

by harry_falcon
Wed Oct 27, 2010 4:23 am
Forum: Volume 101 (10100-10199)
Topic: 10189 - Minesweeper
Replies: 418
Views: 125213

Re: 10189 - Minesweeper

can someone help me?
I got WA using this code:

#include <iostream>

using namespace std;

char field[102][102];

int scanArea(int m, int n){
int count = 0;
for(int i = m-1; i <= m+1; i++){
for(int j = n-1; j <= n+1; j++){
if(field [j] == '*') count++;
}
}
return count;
}

int main()
{
int m ...

Go to advanced search