Borderou de evaluare (job #747029)
Utilizator |
|
IP | ascuns |
---|---|---|---|
Problemă | Cursa Formula 1 (clasa a 5-a) | Compilator | c-32 |
Rundă | Concurs 02 | IQ Academy | clasa a 5-a, seara | Status | evaluat |
Dată | 24 nov. 2023 10:19:39 | Scor | 0 |
Raport evaluator
Eroare de compilare:
main.c: In function 'main':
main.c:11:9: error: 'i' undeclared (first use in this function)
11 | for(i=0;i<n;i++){
| ^
main.c:11:9: note: each undeclared identifier is reported only once for each function it appears in
main.c:20:21: warning: format '%d' expects argument of type 'int', but argument 3 has type 'long long int' [-Wformat=]
20 | fprintf(fout, "%d %d", mmax, r+1);
| ~^ ~~~~
| | |
| int long long int
| %lld
main.c:20:24: warning: format '%d' expects argument of type 'int', but argument 4 has type 'long long int' [-Wformat=]
20 | fprintf(fout, "%d %d", mmax, r+1);
| ~^ ~~~
| | |
| int long long int
| %lld
main.c:10:5: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result]
10 | fscanf(fin, "%d%d%d", &n, &x, &y);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
main.c:12:9: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result]
12 | fscanf(fin, "%d%d%d", &a1, &b1, &c1);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~