Borderou de evaluare (job #709164)
Utilizator |
|
IP | ascuns |
---|---|---|---|
Problemă | Partiții (clasa a 7-a) | Compilator | cpp-32 |
Rundă | Arhiva de probleme | Status | evaluat |
Dată | 17 mar. 2023 21:18:12 | Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp: In function 'int print(int)':
main.cpp:11:1: warning: no return statement in function returning non-void [-Wreturn-type]
11 | }
| ^
main.cpp: In function 'int part(int, int)':
main.cpp:17:9: error: return-statement with no value, in function returning 'int' [-fpermissive]
17 | return;
| ^~~~~~
main.cpp:29:1: warning: control reaches end of non-void function [-Wreturn-type]
29 | }
| ^
main.cpp: In function 'int main()':
main.cpp:34:11: warning: ignoring return value of 'int fscanf(FILE*, const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
34 | fscanf(fin,"%d",&n);
| ~~~~~~^~~~~~~~~~~~~