Borderou de evaluare (job #2689313)

Utilizator ApostolIlieDanielApostol Daniel ApostolIlieDaniel Data 20 decembrie 2020 14:53:31
Problema Sali Status done
Runda fmi-no-stress-10 Compilator cpp-64 | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: main.cpp: In function 'void dfs(int)': main.cpp:12:5: error: 'used' was not declared in this scope used[node] = true; ^~~~ main.cpp:14:20: error: 'gr' was not declared in this scope for (int vec : gr[node]) ^~ main.cpp:16:22: error: expected unqualified-id before ')' token for (int ) ^ main.cpp:16:22: error: expected ';' before ')' token main.cpp:16:22: error: expected primary-expression before ')' token main.cpp:16:22: error: expected ';' before ')' token main.cpp:17:9: error: expected primary-expression before '}' token } ^ main.cpp: In function 'int main()': main.cpp:36:9: error: 'gr' was not declared in this scope gr[x].pb (y); ^~ main.cpp:40:17: error: 'used' was not declared in this scope if (not used[i]) ^~~~ main.cpp:25:36: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result] freopen ("sali.in", "r", stdin); ^ main.cpp:26:38: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result] freopen ("sali.out", "w", stdout); ^ Non zero exit status: 1

Ceva nu functioneaza?