Borderou de evaluare (job #820470)
Utilizator |
|
IP | ascuns |
---|---|---|---|
Problemă | Maxim2 (clasa a 6-a) | Compilator | cpp-32 |
Rundă | Arhiva de probleme | Status | evaluat |
Dată | 12 apr. 2025 17:15:14 | Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp: In function 'void rez1()':
main.cpp:21:12: error: return-statement with a value, in function returning 'void' [-fpermissive]
21 | return ans;
| ^~~
main.cpp: In function 'int main()':
main.cpp:30:12: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)' declared with attribute 'warn_unused_result' [-Wunused-result]
30 | freopen("maxim2.in","r",stdin);
| ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~
main.cpp:31:12: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)' declared with attribute 'warn_unused_result' [-Wunused-result]
31 | freopen("maxim2.out","w",stdout);
| ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~