Borderou de evaluare (job #763216)
| Utilizator |
|
IP | ascuns |
|---|---|---|---|
| Problemă | Tema (clasa a 8-a) | Compilator | cpp-32 |
| Rundă | Status | evaluat | |
| Dată | 18 feb. 2024 19:06:36 | Scor | ascuns |
Raport evaluator
Compilare:
main.cpp: In function 'int main()':
main.cpp:16:12: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)' declared with attribute 'warn_unused_result' [-Wunused-result]
16 | freopen("tema.in", "r", stdin);
| ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~
main.cpp:17:12: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)' declared with attribute 'warn_unused_result' [-Wunused-result]
17 | freopen("tema.out", "w", stdout);
| ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~
main.cpp:27:10: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
27 | scanf("%d%d%lld", &c, &n, &k);
| ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~
main.cpp:29:14: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
29 | scanf("%d", &v[i]);
| ~~~~~^~~~~~~~~~~~~