Borderou de evaluare (job #2980633)

Utilizator PowerPlantNICOLAS ANDREI MANASIA PowerPlant Data 16 februarie 2023 18:14:56
Problema Martian War Status done
Runda Arhiva de probleme Compilator cpp-64 | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: main.cpp:9:17: error: array bound is not an integer constant before ']' token 9 | vector <int> G[N]; | ^ main.cpp:11:11: error: array bound is not an integer constant before ']' token 11 | bool vis[N]; | ^ main.cpp: In function 'void del()': main.cpp:14:9: error: 'vis' was not declared in this scope 14 | vis[i]=0; | ^~~ main.cpp: In function 'void Lee(int)': main.cpp:25:21: error: 'G' was not declared in this scope 25 | for(auto it:G[x]) | ^ main.cpp:26:16: error: 'vis' was not declared in this scope 26 | if(vis[it]==0) | ^~~ main.cpp:33:17: error: 'G' was not declared in this scope 33 | for(auto it:G[node]){ | ^ main.cpp:34:9: error: 'vis' was not declared in this scope 34 | vis[it]=1; | ^~~ main.cpp:60:1: error: expected primary-expression before ')' token 60 | ) | ^ main.cpp: In function 'int main()': main.cpp:73:9: error: 'G' was not declared in this scope 73 | G[x].push_back(y); | ^ main.cpp:84:9: error: 'G' was not declared in this scope 84 | G[x].push_back(y); | ^ main.cpp: At global scope: main.cpp:94:10: error: redefinition of 'std::ifstream fin' 94 | ifstream fin ("trade.in"); | ^~~ main.cpp:4:10: note: 'std::ifstream fin' previously declared here 4 | ifstream fin ("martian-war.in"); | ^~~ main.cpp:95:10: error: redefinition of 'std::ofstream fout' 95 | ofstream fout ("trade.out"); | ^~~~ main.cpp:5:10: note: 'std::ofstream fout' previously declared here 5 | ofstream fout ("martian-war.out"); | ^~~~ main.cpp:106:5: error: redefinition of 'int main()' 106 | int main() | ^~~~ main.cpp:66:5: note: 'int main()' previously defined here Non zero exit status: 1

Ceva nu functioneaza?