Borderou de evaluare (job #744122)
Utilizator |
|
IP | ascuns |
---|---|---|---|
Problemă | Fibonacci (clasa a 7-a) | Compilator | c-32 |
Rundă | Tema 8 clasa a 7-a | Status | evaluat |
Dată | 11 nov. 2023 22:08:53 | Scor | 0 |
Raport evaluator
Eroare de compilare:
main.c: In function 'fib':
main.c:8:34: error: expected ';' before ')' token
8 | return fib(n-1,f2,(f1+f2)% MOD));
| ^
| ;
main.c:8:34: error: expected statement before ')' token
main.c: In function 'main':
main.c:17:18: warning: format '%d' expects argument of type 'int *', but argument 3 has type 'long long int *' [-Wformat=]
17 | fscanf(fin,"%d",&n);
| ~^ ~~
| | |
| | long long int *
| int *
| %lld
main.c:16:17: warning: unused variable 'f' [-Wunused-variable]
16 | long long n,f;
| ^
main.c:17:5: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result]
17 | fscanf(fin,"%d",&n);
| ^~~~~~~~~~~~~~~~~~~