Borderou de evaluare (job #2323502)
Utilizator | Data | 19 ianuarie 2019 11:37:51 | |
---|---|---|---|
Problema | Ratina | Status | done |
Runda | Arhiva de probleme | Compilator | cpp-32 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp:17:1: error: 'vector' does not name a type
vector<int> drum[10005];
^~~~~~
main.cpp: In function 'void insert(Trie*, char*, int)':
main.cpp:24:5: warning: this 'else' clause does not guard... [-Wmisleading-indentation]
else
^~~~
main.cpp:29:9: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'else'
drum[i].push_back(nod->nr);
^~~~
main.cpp:29:9: error: 'drum' was not declared in this scope
main.cpp: In function 'int main()':
main.cpp:52:16: error: 'drum' was not declared in this scope
ok=drum[query[1]][med];
^~~~
main.cpp:33:36: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result]
{ freopen("ratina.in", "r",stdin);
^
main.cpp:34:38: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result]
freopen("ratina.out", "w",stdout);
^
main.cpp:36:28: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d%d\n", &n, &m);
^
main.cpp:38:23: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%s", s);
^
main.cpp:44:24: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d", &q);
^
main.cpp:46:35: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d", &query[j]);
^
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !