Borderou de evaluare (job #601862)
Utilizator |
|
IP | ascuns |
---|---|---|---|
Problemă | 235 (clasa a 8-a) | Compilator | c-32 |
Rundă | Arhiva de probleme | Status | evaluat |
Dată | 13 iul. 2021 16:24:32 | Scor | 0 |
Raport evaluator
Eroare de compilare:
main.c:6:1: error: unknown type name 'bool'
6 | bool putere3( int x ) {
| ^~~~
main.c:12:1: error: unknown type name 'bool'
12 | bool putere5( int x ) {
| ^~~~
main.c: In function 'main':
main.c:28:20: warning: operation on 'n' may be undefined [-Wsequence-point]
28 | f[ ++n ] = f[ n - 1 ] + 1;
| ^~~
main.c:30:20: warning: operation on 'n' may be undefined [-Wsequence-point]
30 | f[ ++n ] = f[ n - 1 ];
| ^~~
main.c:26:11: warning: suggest explicit braces to avoid ambiguous 'else' [-Wdangling-else]
26 | if( x % 15 != 0 )
| ^
main.c:23:5: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result]
23 | fscanf( fin, "%d", &q );
| ^~~~~~~~~~~~~~~~~~~~~~~
main.c:25:9: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result]
25 | fscanf( fin, "%d", &x );
| ^~~~~~~~~~~~~~~~~~~~~~~