Borderou de evaluare (job #2227895)

Utilizator inquisitorAnders inquisitor Data 2 august 2018 10:15:26
Problema Parcurgere DFS - componente conexe Status done
Runda Arhiva educationala Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.cpp: In function ‘int main()’: user.cpp:25:9: warning: this ‘if’ clause does not guard... [-Wmisleading-indentation] if(u != v) conexParts++; v[u] = v; ^~ user.cpp:25:34: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the ‘if’ if(u != v) conexParts++; v[u] = v; ^ user.cpp:25:37: error: invalid types ‘int[int]’ for array subscript if(u != v) conexParts++; v[u] = v; ^ user.cpp:27:18: error: ‘N’ was not declared in this scope printf("%d", N - conexParts); ^ user.cpp:5:34: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("dfs.in", "r", stdin); ^ user.cpp:6:36: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("dfs.out", "w", stdout); ^ user.cpp:10:35: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d %d", &nodes, &edges); ^ user.cpp:19:31: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d %d", &u, &v); ^

Ceva nu functioneaza?