Borderou de evaluare (job #812602)
Utilizator |
|
IP | ascuns |
---|---|---|---|
Problemă | Speciale (clasa a 5-a) | Compilator | c-32 |
Rundă | Concurs 05 | IQ Academy | clasa a 5-a | Status | evaluat |
Dată | 4 mar. 2025 19:29:48 | Scor | 0 |
Raport evaluator
Eroare de compilare:
main.c:36:1: warning: data definition has no type or storage class
36 | fclose( fin );
| ^~~~~~
main.c:36:1: error: type defaults to 'int' in declaration of 'fclose' [-Wimplicit-int]
main.c:36:1: error: parameter names (without types) in function declaration [-Wdeclaration-missing-parameter-type]
main.c:37:1: warning: data definition has no type or storage class
37 | fclose( fout );
| ^~~~~~
main.c:37:1: error: type defaults to 'int' in declaration of 'fclose' [-Wimplicit-int]
main.c:37:1: error: parameter names (without types) in function declaration [-Wdeclaration-missing-parameter-type]
main.c:38:1: error: expected identifier or '(' before 'return'
38 | return 0;
| ^~~~~~
main.c:39:1: error: expected identifier or '(' before '}' token
39 | }
| ^
main.c: In function 'main':
main.c:12:5: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result]
12 | fscanf( fin, "%d%d%d%d", &k, &n, &a , &p);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~