Borderou de evaluare (job #3255520)
Utilizator | Data | 10 noiembrie 2024 20:36:14 | |
---|---|---|---|
Problema | Immortal | Status | done |
Runda | Arhiva de probleme | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp: In function 'void afis(point*)':
main.cpp:25:24: error: request for member 'size' in 'drum', which is of pointer type 'point*' (maybe you meant to use '->' ?)
25 | for(int i=0;i<drum.size();i++)
| ^~~~
main.cpp:25:5: warning: this 'for' clause does not guard... [-Wmisleading-indentation]
25 | for(int i=0;i<drum.size();i++)
| ^~~
main.cpp:27:9: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'for'
27 | if(i%2==0 && i!=0)
| ^~
main.cpp:27:12: error: 'i' was not declared in this scope
27 | if(i%2==0 && i!=0)
| ^
main.cpp: In function 'bool exista(int, int)':
main.cpp:32:23: error: 'n' was not declared in this scope
32 | return (i>0 && i<=n && j>0 && j<=m)
| ^
main.cpp:32:38: error: 'm' was not declared in this scope
32 | return (i>0 && i<=n && j>0 && j<=m)
| ^
main.cpp:32:40: error: expected ';' before '}' token
32 | return (i>0 && i<=n && j>0 && j<=m)
| ^
| ;
33 | }
| ~
main.cpp: In function 'int mutabil(int, int)':
main.cpp:39:16: error: 'mat' was not declared in this scope
39 | if(mat[i+dir_lin[x]][j+dir_col[x]]==1 && mat[i+2*dir_lin[x]][j+2*dir_col[x]]==0)
| ^~~
main.cpp: In function 'bool mutabil_aici(int, int, int)':
main.cpp:46:23: error: 'mat' was not declared in this scope
46 | if(exista(i,j) && mat[i][j]==1 && exista(i+dir_lin[x],j+dir_col[x]) && mat[i+dir_lin[x]][j+dir_col[x]==0])
| ^~~
main.cpp: At global scope:
main.cpp:52:18: error: 'n' was not declared in this scope
52 | void BKT(int mat[n][m], int mort){
| ^
main.cpp:52:21: error: 'm' was not declared in this scope; did you mean 'tm'?
52 | void BKT(int mat[n][m], int mort){
| ^
| tm
main.cpp:52:23: error: expected ')' before ',' token
52 | void BKT(int mat[n][m], int mort){
| ~ ^
| )
main.cpp:52:25: error: expected unqualified-id before 'int'
52 | void BKT(int mat[n][m], int mort){
| ^~~
main.cpp: In function 'int main()':
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !