Borderou de evaluare (job #611159)
Utilizator |
|
IP | ascuns |
---|---|---|---|
Problemă | Tcif (clasa a 8-a) | Compilator | cpp-32 |
Rundă | lasm_19_10_2021_clasa12 | Status | evaluat |
Dată | 19 oct. 2021 14:42:55 | Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp: In function 'int main()':
main.cpp:47:3: error: 'gets' was not declared in this scope; did you mean 'fgets'?
47 | gets(s);
| ^~~~
| fgets
main.cpp:34:10: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)' declared with attribute 'warn_unused_result' [-Wunused-result]
34 | freopen("tcif.in", "r", stdin);
| ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~
main.cpp:35:10: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)' declared with attribute 'warn_unused_result' [-Wunused-result]
35 | freopen("tcif.out", "w", stdout);
| ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~
main.cpp:38:10: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
38 | scanf("%d", &v[i].a);
| ~~~~~^~~~~~~~~~~~~~~
main.cpp:40:10: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
40 | scanf("%d", &v[i].c);
| ~~~~~^~~~~~~~~~~~~~~