Borderou de evaluare (job #1968790)
Utilizator | Data | 17 aprilie 2017 21:02:50 | |
---|---|---|---|
Problema | Lowest Common Ancestor | Status | done |
Runda | Arhiva educationala | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp: In function ‘void dfs(int, int)’:
user.cpp:18:9: error: ‘typeof’ was not declared in this scope
for(typeof G[nod].begin() it=G[nod].begin(); it!=G[nod].end(); it++)
^
user.cpp:18:16: error: expected ‘;’ before ‘G’
for(typeof G[nod].begin() it=G[nod].begin(); it!=G[nod].end(); it++)
^
user.cpp:18:50: error: ‘it’ was not declared in this scope
for(typeof G[nod].begin() it=G[nod].begin(); it!=G[nod].end(); it++)
^
user.cpp: In function ‘int main()’:
user.cpp:60:34: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("lca.in", "r", stdin);
^
user.cpp:61:36: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("lca.out", "w", stdout);
^
user.cpp:62:26: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d%d", &n, &m);
^
user.cpp:65:24: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d", &x);
^
user.cpp:74:30: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d%d", &x, &y);
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !