Borderou de evaluare (job #2531935)

Utilizator radustn92Radu Stancu radustn92 Data 26 ianuarie 2020 21:38:45
Problema Componente tare conexe Status done
Runda Arhiva educationala Compilator cpp-64 | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: main.cpp:6:10: error: 's' does not name a type int N, M;s ^ main.cpp: In function 'void read()': main.cpp:14:3: error: 'G' was not declared in this scope G[x].push_back(y); ^ main.cpp:15:3: error: 'GT' was not declared in this scope GT[y].push_back(x); ^~ main.cpp: In function 'void dfsNormalGraph(int, std::vector<bool>&, std::vector<int>&)': main.cpp:21:25: error: 'G' was not declared in this scope for (auto& neighbour : G[node]) { ^ main.cpp: In function 'void dfsTransposeGraph(int, std::vector<bool>&, std::vector<int>&)': main.cpp:33:25: error: 'GT' was not declared in this scope for (auto& neighbour : GT[node]) { ^~ main.cpp: In function 'void read()': main.cpp:10:23: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result] scanf("%d%d", &N, &M); ^ main.cpp:13:24: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result] scanf("%d%d", &x, &y); ^ main.cpp: In function 'int main()': main.cpp:70:31: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result] freopen("ctc.in", "r", stdin); ^ main.cpp:71:33: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result] freopen("ctc.out", "w", stdout); ^ Non zero exit status: 1

Ceva nu functioneaza?