Borderou de evaluare (job #710399)
Utilizator |
|
IP | ascuns |
---|---|---|---|
Problemă | Gadfadar2 | Compilator | cpp-32 |
Rundă | Status | evaluat | |
Dată | 23 mar. 2023 10:15:12 | Scor | ascuns |
Raport evaluator
Compilare:
main.cpp: In function 'int main()':
main.cpp:37:12: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)' declared with attribute 'warn_unused_result' [-Wunused-result]
37 | freopen("gadfadar2.in", "r", stdin);
| ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~
main.cpp:38:12: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)' declared with attribute 'warn_unused_result' [-Wunused-result]
38 | freopen("gadfadar2.out", "w", stdout);
| ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
main.cpp:40:10: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
40 | scanf("%d %d", &q, &k);
| ~~~~~^~~~~~~~~~~~~~~~~
main.cpp:47:14: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
47 | scanf("%d%d", &l, &r);
| ~~~~~^~~~~~~~~~~~~~~~