Borderou de evaluare (job #2555673)
Utilizator | Data | 24 februarie 2020 11:17:32 | |
---|---|---|---|
Problema | Arbore7 | Status | done |
Runda | Arhiva de probleme | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp:6:1: error: 'vector' does not name a type
vector <int> g[NMAX];
^~~~~~
main.cpp: In function 'int main()':
main.cpp:20:9: error: 'g' was not declared in this scope
g[v].push_back(u);
^
main.cpp:37:28: error: 'g' was not declared in this scope
for(int j=0; j<g[p].size(); j++)
^
main.cpp:11:38: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result]
freopen("arbore7.in", "r", stdin);
^
main.cpp:12:40: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result]
freopen("arbore7.out", "w", stdout);
^
main.cpp:14:20: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d", &n);
^
main.cpp:17:30: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d%d", &u, &v);
^
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !