Borderou de evaluare (job #3158246)

Utilizator xxUnrealUxxNiculae Adrian-Ioan xxUnrealUxx Data 18 octombrie 2023 09:36:08
Problema Cerere Status done
Runda Arhiva de probleme Compilator cpp-64 | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: main.cpp:6:1: error: 'vector' does not name a type 6 | vector<int> mat[100001]; | ^~~~~~ main.cpp:9:7: error: 'nod' was not declared in this scope 9 | queue<nod> q; | ^~~ main.cpp:9:7: error: 'nod' was not declared in this scope main.cpp:9:7: error: 'nod' was not declared in this scope main.cpp:9:7: error: 'nod' was not declared in this scope main.cpp:9:7: error: 'nod' was not declared in this scope main.cpp:9:7: error: 'nod' was not declared in this scope main.cpp:9:7: error: 'nod' was not declared in this scope main.cpp:9:7: error: 'nod' was not declared in this scope main.cpp:9:7: error: 'nod' was not declared in this scope main.cpp:9:1: error: 'queue' does not name a type 9 | queue<nod> q; | ^~~~~ main.cpp: In function 'void bfs()': main.cpp:13:5: error: 'viz' was not declared in this scope 13 | viz[q.front()] = 1; | ^~~ main.cpp:13:9: error: 'q' was not declared in this scope 13 | viz[q.front()] = 1; | ^ main.cpp:17:9: error: 'nod' was not declared in this scope 17 | nod c = q.front(); | ^~~ main.cpp:20:22: error: 'mat' was not declared in this scope 20 | for(int it : mat[c]) | ^~~ main.cpp:20:26: error: 'c' was not declared in this scope 20 | for(int it : mat[c]) | ^ main.cpp: In function 'int main()': main.cpp:33:5: error: 'cin' was not declared in this scope; did you mean 'std::cin'? 33 | cin >> N; | ^~~ | std::cin In file included from main.cpp:1: /usr/include/c++/12.2.1/iostream:60:18: note: 'std::cin' declared here 60 | extern istream cin; /// Linked to standard input | ^~~ main.cpp:33:12: error: 'N' was not declared in this scope 33 | cin >> N; | ^ main.cpp:35:16: error: 'mat' was not declared in this scope 35 | cin << mat[i].val; | ^~~ main.cpp:40:9: error: 'mat' was not declared in this scope 40 | mat[a].push_back(b); Non zero exit status: 1

Ceva nu functioneaza?