It didn't work... Now I got WA...lighted wrote:Usually when you get RE try to increase array bounds.Don't print blank line after last lineCode: Select all
char mine[m + 1][n + 1]; int result[m + 1][n + 1];
Search found 4 matches
- Fri Dec 12, 2014 7:53 am
- Forum: Volume 101 (10100-10199)
- Topic: 10189 - Minesweeper
- Replies: 418
- Views: 125146
Re: 10189 - Minesweeper
- 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 ...
#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 ...
- Thu Dec 11, 2014 8:29 am
- Forum: Volume 2 (200-299)
- Topic: 272 - TEX Quotes
- Replies: 136
- Views: 56701
Re: 272 - TEX Quotes
Thanks man... Silly mistake...lighted wrote:Don't set count to 0 in loop. It should be set to 0 once, before loop. Change line toCode: Select all
if (str[i] == '"') {

- 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