Borderou de evaluare (job #749826)
| Utilizator |
|
IP | ascuns |
|---|---|---|---|
| Problemă | Parola (clasa a 5-a) | Compilator | c-32 |
| Rundă | Tema 16 clasa a 5-a | Status | evaluat |
| Dată | 6 dec. 2023 21:25:17 | 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",&k);
| ~^ ~~
| | |
| | long long int *
| int *
| %lld
main.c:9:18: warning: format '%d' expects argument of type 'int *', but argument 3 has type 'long long int *' [-Wformat=]
9 | fscanf(fin,"%d",&a);
| ~^ ~~
| | |
| | long long int *
| int *
| %lld
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",&b);
| ~^ ~~
| | |
| | long long int *
| int *
| %lld
main.c:48:20: warning: format '%d' expects argument of type 'int', but argument 3 has type 'long long int' [-Wformat=]
48 | fprintf(fout,"%d",parola);
| ~^ ~~~~~~
| | |
| | long long int
| int
| %lld
main.c:50:17: error: expected ';' before 'return'
50 | fclose(fout)
| ^
| ;
51 | return 0;
| ~~~~~~
main.c:6:65: warning: unused variable 'z' [-Wunused-variable]
6 | long long int a,b,k,parola=0,ogla=0,x=10,contor=1,y=1,nrcif,z=1,ca,cb;
| ^
main.c:6:59: warning: unused variable 'nrcif' [-Wunused-variable]
6 | long long int a,b,k,parola=0,ogla=0,x=10,contor=1,y=1,nrcif,z=1,ca,cb;
| ^~~~~
main.c:8:5: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result]
8 | fscanf(fin,"%d",&k);
| ^~~~~~~~~~~~~~~~~~~
main.c:9:5: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result]
9 | fscanf(fin,"%d",&a);
| ^~~~~~~~~~~~~~~~~~~
main.c:10:5: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result]
10 | fscanf(fin,"%d",&b);
| ^~~~~~~~~~~~~~~~~~~