Borderou de evaluare (job #3178508)
Utilizator | Data | 1 decembrie 2023 20:12:11 | |
---|---|---|---|
Problema | Lowest Common Ancestor | Status | done |
Runda | Arhiva educationala | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp: In function 'void dfs(int, int)':
main.cpp:9:25: error: 'typeof' was not declared in this scope; did you mean 'typedef'?
9 | #define foreach(V) for (typeof(V).begin() it = (V).begin(); it != (V).end(); ++it)
| ^~~~~~
main.cpp:35:5: note: in expansion of macro 'foreach'
35 | foreach (G[nod]) {
| ^~~~~~~
main.cpp:9:61: error: 'it' was not declared in this scope; did you mean 'int'?
9 | #define foreach(V) for (typeof(V).begin() it = (V).begin(); it != (V).end(); ++it)
| ^~
main.cpp:35:5: note: in expansion of macro 'foreach'
35 | foreach (G[nod]) {
| ^~~~~~~
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !