Borderou de evaluare (job #2865993)
Utilizator | Data | 9 martie 2022 12:03:34 | |
---|---|---|---|
Problema | Muzeu | Status | done |
Runda | Arhiva de probleme | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp: In function 'bool inmat(int, int)':
main.cpp:19:23: error: 'n' was not declared in this scope
19 | return i>=1 && i<=n && j>=1 && j<=n;
| ^
main.cpp: In function 'void lee()':
main.cpp:34:33: error: invalid types 'int[int]' for array subscript
34 | if(inmat(iv,jv) && d[iv][jv]==-1)
| ^
main.cpp:36:18: error: invalid types 'int[int]' for array subscript
36 | d[iv][jv]=d[x][y]+1;
| ^
main.cpp:36:28: error: invalid types 'int[int]' for array subscript
36 | d[iv][jv]=d[x][y]+1;
| ^
main.cpp: In function 'int main()':
main.cpp:51:14: error: 'i' was not declared in this scope
51 | if(s[i][j])=='p')
| ^
main.cpp:51:20: error: expected primary-expression before '==' token
51 | if(s[i][j])=='p')
| ^~
main.cpp:65:9: error: 'i' was not declared in this scope
65 | for(i=1;i<=n;i++)
| ^
main.cpp:67:13: error: 'j' was not declared in this scope
67 | for(j=1;j<=n;j++)
| ^
main.cpp:68:19: error: 'b' was not declared in this scope
68 | fout<<b[i][j]<<" ";
| ^
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !