Borderou de evaluare (job #3463)
Utilizator |
|
IP | ascuns |
---|---|---|---|
Problemă | Romb (clasa a 6-a) | Compilator | cpp |
Rundă | Arhiva de probleme | Status | evaluat |
Dată | 20 nov. 2012 14:44:29 | Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp: In function 'int main()':
main.cpp:8:14: warning: format '%d' expects argument of type 'int*', but argument 3 has type 'long long int*' [-Wformat=]
8 | fscanf(fin,"%d",&n);
| ~^ ~~
| | |
| | long long int*
| int*
| %lld
main.cpp:10:5: error: 'j' was not declared in this scope
10 | for(j=1;j<=n*n+(n-1)*4;j++){
| ^
main.cpp:15:5: error: 'j' was not declared in this scope
15 | for(j=1;j<=n*n+(n-1)*4;j++)
| ^
main.cpp:8:7: warning: ignoring return value of 'int fscanf(FILE*, const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
8 | fscanf(fin,"%d",&n);
| ~~~~~~^~~~~~~~~~~~~