Borderou de evaluare (job #2506338)

Utilizator Diana-ElenaStancu Diana-Elena Diana-Elena Data 7 decembrie 2019 20:52:06
Problema MarceLand Status done
Runda Arhiva de probleme Compilator cpp-64 | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: main.cpp:5:1: error: expected ',' or ';' before 'char' char ins[103][103]; int viz[103][103], c; bool gasit, ok; ^~~~ main.cpp: In function 'void cauta(int, int)': main.cpp:12:6: error: 'ins' was not declared in this scope if(ins[x][y] == '@') ^~~ main.cpp:22:10: error: 'ins' was not declared in this scope if(ins[diri[k] + x][dirj[k] + y] != '#' && viz[diri[k] + x][dirj[k] + y] == 0) ^~~ main.cpp: In function 'int main()': main.cpp:38:16: error: 'ins' was not declared in this scope cin >> ins[i][j]; ^~~ main.cpp:44:12: error: 'ins' was not declared in this scope if(ins[i][j] == 'M' && viz[i][j] == 0) ^~~ main.cpp:41:5: warning: this 'for' clause does not guard... [-Wmisleading-indentation] for(i = 1; i <= n; ++i) ^~~ main.cpp:61:7: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'for' if(ok == 1) ^~ main.cpp:67:21: error: 'ins' was not declared in this scope cout << ins[i][j] << ' '; ^~~ Non zero exit status: 1

Ceva nu functioneaza?