Borderou de evaluare (job #2533576)
Utilizator | Data | 29 ianuarie 2020 12:51:49 | |
---|---|---|---|
Problema | Diametrul unui arbore | Status | done |
Runda | Arhiva educationala | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp: In function 'int dfs(int)':
main.cpp:40:92: error: 'greater' was not declared in this scope
nth_element(childCandidates.begin(), childCandidates.begin() + 2, childCandidates.end(), greater<int>());
^~~~~~~
main.cpp:40:100: error: expected primary-expression before 'int'
nth_element(childCandidates.begin(), childCandidates.begin() + 2, childCandidates.end(), greater<int>());
^~~
main.cpp: In function 'void read()':
main.cpp:12:17: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d", &N);
^
main.cpp:15:24: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d%d", &x, &y);
^
main.cpp: In function 'int main()':
main.cpp:53:32: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result]
freopen("darb.in", "r", stdin);
^
main.cpp:54:34: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result]
freopen("darb.out", "w", stdout);
^
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !