Borderou de evaluare (job #676453)
| Utilizator |
|
IP | ascuns |
|---|---|---|---|
| Problemă | Inundație | Compilator | cpp-32 |
| Rundă | Status | evaluat | |
| Dată | 18 nov. 2022 04:01:17 | Scor | ascuns |
Raport evaluator
Compilare:
main.cpp: In function 'int main()':
main.cpp:11:12: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)' declared with attribute 'warn_unused_result' [-Wunused-result]
11 | freopen("inundatie.in","r",stdin);
| ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~
main.cpp:12:12: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)' declared with attribute 'warn_unused_result' [-Wunused-result]
12 | freopen("inundatie.out","w",stdout);
| ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~
main.cpp:13:10: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
13 | scanf("%d%d%d%d", &q, &n, &p, &s);
| ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~
main.cpp:15:14: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
15 | scanf("%d", &v[i]);
| ~~~~~^~~~~~~~~~~~~