Borderou de evaluare (job #619702)
Utilizator |
|
IP | ascuns |
---|---|---|---|
Problemă | TV (clasa a 7-a) | Compilator | cpp-32 |
Rundă | Arhiva de probleme | Status | evaluat |
Dată | 4 dec. 2021 17:23:42 | Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp: In function 'int main()':
main.cpp:15:9: error: 'gets' was not declared in this scope; did you mean 'getw'?
15 | gets(s);
| ^~~~
| getw
main.cpp:9:12: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)' declared with attribute 'warn_unused_result' [-Wunused-result]
9 | freopen("tv.in", "r", stdin);
| ~~~~~~~^~~~~~~~~~~~~~~~~~~~~
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("tv.out", "w", stdout);
| ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~
main.cpp:11:10: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
11 | scanf("%d\n%d\n", &p, &n);
| ~~~~~^~~~~~~~~~~~~~~~~~~~
main.cpp:14:14: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
14 | scanf("%d ",&d);
| ~~~~~^~~~~~~~~~