Borderou de evaluare (job #661078)
| Utilizator |
|
IP | ascuns |
|---|---|---|---|
| Problemă | Treasure Hunt | Compilator | cpp-32 |
| Rundă | Status | evaluat | |
| Dată | 9 sept. 2022 23:28:19 | 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("treasurehunt.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("treasurehunt.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", &q, &n, &m);
| ~~~~~^~~~~~~~~~~~~~~~~~~~~~
main.cpp:16:14: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
16 | scanf("%d%d", &nn, &mm);
| ~~~~~^~~~~~~~~~~~~~~~~~
main.cpp:19:22: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
19 | scanf("%d", &a[i][j]);
| ~~~~~^~~~~~~~~~~~~~~~
main.cpp:22:22: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
22 | scanf("%d", &s[i][j]);
| ~~~~~^~~~~~~~~~~~~~~~
main.cpp:48:14: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
48 | scanf("%d", &k);
| ~~~~~^~~~~~~~~~
main.cpp:51:22: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
51 | scanf("%d", &a[i][j]);
| ~~~~~^~~~~~~~~~~~~~~~