Borderou de evaluare (job #681688)
Utilizator |
|
IP | ascuns |
---|---|---|---|
Problemă | 100m (clasa a 10-a) | Compilator | cpp-32 |
Rundă | Arhiva de probleme | Status | evaluat |
Dată | 13 dec. 2022 18:21:08 | Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp: In function 'int main()':
main.cpp:29:29: error: 'fact' was not declared in this scope
29 | cout << ans+fact << endl;
| ^~~~
main.cpp:6:16: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)' declared with attribute 'warn_unused_result' [-Wunused-result]
6 | freopen("100m.in","r",stdin);
| ~~~~~~~^~~~~~~~~~~~~~~~~~~~~
main.cpp:7:16: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)' declared with attribute 'warn_unused_result' [-Wunused-result]
7 | freopen("100m.out","w",stdout);
| ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~