Borderou de evaluare (job #2363895)

Utilizator Vlad_NituNitu Vlad-Petru Vlad_Nitu Data 3 martie 2019 18:44:15
Problema MarceLand Status done
Runda Arhiva de probleme Compilator cpp-64 | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: main.cpp: In function 'void Fill(int, int)': main.cpp:37:28: warning: suggest parentheses around '&&' within '||' [-Wparentheses] if (bordare(xx,yy) && a[xx][yy] == '.' || a[xx][yy] == '@' || a[xx][yy] == 'M') Fill(xx,yy) ; ~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~ main.cpp: At global scope: main.cpp:93:12: error: redefinition of 'std::ifstream f' ifstream f ("marceland.in") ; ^ main.cpp:3:10: note: 'std::ifstream f' previously declared here ifstream f ("marceland.in") ; ^ main.cpp:94:12: error: redefinition of 'std::ofstream g' ofstream g ("marceland.out") ; ^ main.cpp:4:10: note: 'std::ofstream g' previously declared here ofstream g ("marceland.out") ; ^ main.cpp:95:5: error: redefinition of 'int Q' int Q ; ^ main.cpp:5:5: note: 'int Q' previously declared here int Q ; ^ main.cpp:96:5: error: redefinition of 'int N' int N,M,Nr; ^ main.cpp:6:5: note: 'int N' previously declared here int N,M,Nr; ^ main.cpp:96:7: error: redefinition of 'int M' int N,M,Nr; ^ main.cpp:6:7: note: 'int M' previously declared here int N,M,Nr; ^ main.cpp:96:9: error: redefinition of 'int Nr' int N,M,Nr; ^~ main.cpp:6:9: note: 'int Nr' previously declared here int N,M,Nr; ^~ main.cpp:97:16: error: redefinition of 'char a [101][101]' char a[101][101], cop[101][101]; ^ main.cpp:7:6: note: 'char a [101][101]' previously declared here char a[101][101], cop[101][101]; ^ main.cpp:97:31: error: redefinition of 'char cop [101][101]' char a[101][101], cop[101][101]; ^ Non zero exit status: 1

Ceva nu functioneaza?