Borderou de evaluare (job #605534)
Utilizator |
|
IP | ascuns |
---|---|---|---|
Problemă | Cursa Formula 1 2 (clasa a 7-a) | Compilator | c-32 |
Rundă | Concurs cursuri de performanță | IQ Academy | clasa a 7-a | Status | evaluat |
Dată | 5 sept. 2021 16:54:48 | Scor | 0 |
Raport evaluator
Eroare de compilare:
main.c:5:5: error: size of array 'v' exceeds maximum object size '2147483647'
5 | int v[200010][20010],ttotal[200010];
| ^
main.c: In function 'main':
main.c:18:24: warning: format '%c' expects argument of type 'char *', but argument 3 has type 'char **' [-Wformat=]
18 | fscanf(f,"%c",&na);
| ~^ ~~~
| | |
| | char **
| char *
main.c:25:23: warning: assignment to 'char' from 'char *' makes integer from pointer without a cast [-Wint-conversion]
25 | n2=na;
| ^
main.c:32:27: warning: assignment to 'char' from 'char *' makes integer from pointer without a cast [-Wint-conversion]
32 | n3=na;
| ^
main.c:46:24: warning: format '%c' expects argument of type 'char *', but argument 3 has type 'char **' [-Wformat=]
46 | fscanf(f,"%c",&na);
| ~^ ~~~
| | |
| | char **
| char *
main.c:12:5: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result]
12 | fscanf(f,"%d%d%d%d%d",&c1,&y,&x,&n,&k);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
main.c:18:13: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result]
18 | fscanf(f,"%c",&na);
| ^~~~~~~~~~~~~~~~~~
main.c:21:17: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result]
21 | fscanf(f,"%f",&t);
| ^~~~~~~~~~~~~~~~~
main.c:46:13: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result]
46 | fscanf(f,"%c",&na);
| ^~~~~~~~~~~~~~~~~~
main.c:49:17: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result]
49 | fscanf(f,"%f",&t);
| ^~~~~~~~~~~~~~~~~