Borderou de evaluare (job #621329)
Utilizator |
|
IP | ascuns |
---|---|---|---|
Problemă | Matrice Spirală (clasa a 6-a) | Compilator | cpp-32 |
Rundă | Arhiva de probleme | Status | evaluat |
Dată | 18 dec. 2021 11:22:01 | Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp: In function 'int main()':
main.cpp:62:9: error: expected ',' or ';' before 'long'
62 | long long difl;
| ^~~~
main.cpp:64:20: error: 'difl' was not declared in this scope
64 | if(l==maxx)difl=maxx-c;
| ^~~~
main.cpp:65:26: error: 'difl' was not declared in this scope
65 | else if(c==-maxx)difl=latl+maxx-1;
| ^~~~
main.cpp:66:26: error: 'difl' was not declared in this scope
66 | else if(l==-maxx)difl=2*latl+c+maxx;
| ^~~~
main.cpp:67:14: error: 'difl' was not declared in this scope
67 | else difl=3*latl+l+maxx;
| ^~~~
main.cpp:68:40: error: 'difl' was not declared in this scope
68 | long long el=(latl+1)*(latl+1)-difl;
| ^~~~