Borderou de evaluare (job #2468822)
Utilizator | Data | 5 octombrie 2019 23:46:24 | |
---|---|---|---|
Problema | Parcurgere DFS - componente conexe | Status | done |
Runda | Arhiva educationala | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp: In function 'void DFS(int)':
main.cpp:13:12: error: found ':' in nested-name-specifier, expected '::'
for (y : g[x])
^
main.cpp:13:10: error: 'y' is not a class, namespace, or enumeration
for (y : g[x])
^
main.cpp:15:1: error: expected primary-expression before '}' token
}
^
main.cpp:15:1: error: expected ';' before '}' token
main.cpp:15:1: error: expected primary-expression before '}' token
main.cpp:15:1: error: expected ')' before '}' token
main.cpp:15:1: error: expected primary-expression before '}' token
main.cpp: In function 'int main()':
main.cpp:19: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);
^
main.cpp:20: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);
^
main.cpp:22:28: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf ("%d %d", &n, &m);
^
main.cpp:24:31: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d %d", &x, &y);
^
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !