Borderou de evaluare (job #778912)
Utilizator |
|
IP | ascuns |
---|---|---|---|
Problemă | Prime (clasa a 5-a) | Compilator | c-32 |
Rundă | Arhiva de probleme | Status | evaluat |
Dată | 29 mai 2024 18:25:09 | Scor | 0 |
Raport evaluator
Eroare de compilare:
main.c:4:10: error: 'NIG' undeclared here (not in a function)
4 | int ciur[NIG];
| ^~~
main.c: In function 'main':
main.c:10:18: warning: format '%d' expects argument of type 'int *', but argument 3 has type 'long long int *' [-Wformat=]
10 | fscanf(fin,"%d%d%d",&x,&n,&nig);
| ~^ ~~
| | |
| int * long long int *
| %lld
main.c:10:20: warning: format '%d' expects argument of type 'int *', but argument 4 has type 'long long int *' [-Wformat=]
10 | fscanf(fin,"%d%d%d",&x,&n,&nig);
| ~^ ~~
| | |
| int * long long int *
| %lld
main.c:10:22: warning: format '%d' expects argument of type 'int *', but argument 5 has type 'long long int *' [-Wformat=]
10 | fscanf(fin,"%d%d%d",&x,&n,&nig);
| ~^ ~~~~
| | |
| int * long long int *
| %lld
main.c:12:23: error: 'e' undeclared (first use in this function)
12 | for(i=2; i<nig && e==1; i++)
| ^
main.c:12:23: note: each undeclared identifier is reported only once for each function it appears in
main.c:30:20: warning: format '%d' expects argument of type 'int', but argument 3 has type 'long long int' [-Wformat=]
30 | fprintf(fout,"%d\n%d",maxg,sum);
| ~^ ~~~~
| | |
| int long long int
| %lld
main.c:30:24: warning: format '%d' expects argument of type 'int', but argument 4 has type 'long long int' [-Wformat=]
30 | fprintf(fout,"%d\n%d",maxg,sum);
| ~^ ~~~
| | |
| 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",&x,&n,&nig);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~