Borderou de evaluare (job #814740)
| Utilizator |
|
IP | ascuns |
|---|---|---|---|
| Problemă | Greieri (clasa a 5-a) | Compilator | c-32 |
| Rundă | Arhiva de probleme | Status | evaluat |
| Dată | 14 mar. 2025 12:35:24 | Scor | 0 |
Raport evaluator
Eroare de compilare:
main.c: In function 'main':
main.c:8:18: warning: format '%d' expects argument of type 'int *', but argument 3 has type 'long long int *' [-Wformat=]
8 | fscanf(fin,"%d%lld",&n,&m);
| ~^ ~~
| | |
| int * long long int *
| %lld
main.c:11:20: warning: format '%d' expects argument of type 'int', but argument 3 has type 'long long int' [-Wformat=]
11 | fprintf(fout,"%d\n",n*(n-1));
| ~^ ~~~~~~~
| | |
| int long long int
| %lld
main.c:26:10: warning: statement with no effect [-Wunused-value]
26 | v[poz-1];
| ~^~~~~~~
main.c:32:9: error: 'i' undeclared (first use in this function)
32 | for(i=0;i<n;i++)
| ^
main.c:32:9: note: each undeclared identifier is reported only once for each function it appears in
main.c:8:5: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result]
8 | fscanf(fin,"%d%lld",&n,&m);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~