Borderou de evaluare (job #709783)
Utilizator |
|
IP | ascuns |
---|---|---|---|
Problemă | Voodoo | Compilator | cpp-32 |
Rundă | Status | evaluat | |
Dată | 20 mar. 2023 22:12:03 | Scor | ascuns |
Raport evaluator
Compilare:
main.cpp: In function 'int main()':
main.cpp:10:12: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)' declared with attribute 'warn_unused_result' [-Wunused-result]
10 | freopen("voodoo.in", "r", stdin);
| ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~
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("voodoo.out", "w", stdout);
| ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~
main.cpp:18:10: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
18 | scanf("%d %d %d", &n, &x, &y);
| ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~
main.cpp:25:14: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
25 | scanf("%d", &a[i]);
| ~~~~~^~~~~~~~~~~~~