Borderou de evaluare (job #3137481)
Utilizator | Data | 13 iunie 2023 07:59:08 | |
---|---|---|---|
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)':
main.cpp:10:24: error: 'typeof' was not declared in this scope; did you mean 'typedef'?
10 | #define foreach(V) for(typeof (V).begin() it = (V).begin(); it != (V).end(); ++it)
| ^~~~~~
main.cpp:67:9: note: in expansion of macro 'foreach'
67 | foreach(G[nod])
| ^~~~~~~
main.cpp:10:61: error: 'it' was not declared in this scope; did you mean 'int'?
10 | #define foreach(V) for(typeof (V).begin() it = (V).begin(); it != (V).end(); ++it)
| ^~
main.cpp:67:9: note: in expansion of macro 'foreach'
67 | foreach(G[nod])
| ^~~~~~~
main.cpp:10:24: error: 'typeof' was not declared in this scope; did you mean 'typedef'?
10 | #define foreach(V) for(typeof (V).begin() it = (V).begin(); it != (V).end(); ++it)
| ^~~~~~
main.cpp:77:9: note: in expansion of macro 'foreach'
77 | foreach(Q[nod])
| ^~~~~~~
main.cpp:10:61: error: 'it' was not declared in this scope; did you mean 'int'?
10 | #define foreach(V) for(typeof (V).begin() it = (V).begin(); it != (V).end(); ++it)
| ^~
main.cpp:77:9: note: in expansion of macro 'foreach'
77 | foreach(Q[nod])
| ^~~~~~~
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !