Borderou de evaluare (job #3461)
Utilizator |
|
IP | ascuns |
---|---|---|---|
Problemă | Romb (clasa a 6-a) | Compilator | cpp |
Rundă | Arhiva de probleme | Status | evaluat |
Dată | 20 nov. 2012 14:00:08 | Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp: In function 'int main()':
main.cpp:4:1: error: expected unqualified-id before 'char'
4 | char m[1018][1018];
| ^~~~
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:9:5: error: 'i' was not declared in this scope
9 | for(i=1;i<=n*n+(n-1)*4;i++)
| ^
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);
| ~~~~~~^~~~~~~~~~~~~