Borderou de evaluare (job #659773)
Utilizator |
|
IP | ascuns |
---|---|---|---|
Problemă | Cursa Formula 1 (clasa a 5-a) | Compilator | c-32 |
Rundă | Arhiva de probleme | Status | evaluat |
Dată | 31 aug. 2022 13:26:57 | Scor | 0 |
Raport evaluator
Eroare de compilare:
main.c: In function 'main':
main.c:8:24: error: conflicting types for 'min'; have 'int'
8 | int n,x,y,ai,bi,ci,min,t,i,c;
| ^~~
main.c:7:18: note: previous declaration of 'min' with type 'long long int'
7 | long long t, min;
| ^~~
main.c:8:28: error: conflicting types for 't'; have 'int'
8 | int n,x,y,ai,bi,ci,min,t,i,c;
| ^
main.c:7:15: note: previous declaration of 't' with type 'long long int'
7 | long long t, min;
| ^
main.c:24:25: warning: format '%lld' expects argument of type 'long long int', but argument 4 has type 'int' [-Wformat=]
24 | fprintf(fout,"%d %lld",c,min);
| ~~~^ ~~~
| | |
| | int
| long long int
| %d
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:11:5: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result]
11 | fscanf(fin,"%d%d%d",&ai,&bi,&ci);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
main.c:15:9: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result]
15 | fscanf(fin,"%d%d%d",&ai,&bi,&ci);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~