Borderou de evaluare (job #601727)
| Utilizator |
|
IP | ascuns |
|---|---|---|---|
| Problemă | Poligon | Compilator | cpp-32 |
| Rundă | Arhiva de probleme | Status | evaluat |
| Dată | 9 iul. 2021 18:14:40 | Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp: In function 'int main()':
main.cpp:69:5: error: 'sort' was not declared in this scope; did you mean 'qsort'?
69 | sort (oriz + 1, oriz + n + 1);
| ^~~~
| qsort
main.cpp:85:9: warning: unused variable 'ans' [-Wunused-variable]
85 | int ans = 0;
| ^~~
main.cpp:55:13: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)' declared with attribute 'warn_unused_result' [-Wunused-result]
55 | freopen ("poligon.in", "r", stdin);
| ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~
main.cpp:56:13: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)' declared with attribute 'warn_unused_result' [-Wunused-result]
56 | freopen ("poligon.out", "w", stdout);
| ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~