Borderou de evaluare (job #2528913)
Utilizator | Data | 22 ianuarie 2020 19:07:46 | |
---|---|---|---|
Problema | Bemo | Status | done |
Runda | Arhiva de probleme | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp: In function 'void marcheaza(int, int)':
main.cpp:10:19: error: 'a' was not declared in this scope
while ( i >= 1 && a[i][c + 1] != 0){
^
main.cpp:12:18: error: 'nc' was not declared in this scope
while ( j <= nc && a[i][j] != 0){
^~
main.cpp:19:14: error: 'nl' was not declared in this scope
while ( i <= nl && a[i][c - 1] != 0){
^~
main.cpp:19:20: error: 'a' was not declared in this scope
while ( i <= nl && a[i][c - 1] != 0){
^
main.cpp: In function 'int main()':
main.cpp:34:7: error: 'nl' was not declared in this scope
fin >>nl >> nc;
^~
main.cpp:34:13: error: 'nc' was not declared in this scope
fin >>nl >> nc;
^~
main.cpp:36:11: error: 'j' was not declared in this scope
for ( j = 1; j <= nc; j++){
^
main.cpp:37:16: error: 'a' was not declared in this scope
fin >> a[i][j];
^
main.cpp:38:9: error: 'lin' was not declared in this scope
lin[a[i][j]] = i;
^~~
main.cpp:39:9: error: 'col' was not declared in this scope
col[a[i][j]] = j;
^~~
main.cpp:42:5: error: 'i' was not declared in this scope
for(i = 1; i <= nl * nc; i++){
^
main.cpp:43:9: error: 'a' was not declared in this scope
if( a[lin[i]][col[i]] == i){
^
main.cpp:43:11: error: 'lin' was not declared in this scope
if( a[lin[i]][col[i]] == i){
^~~
main.cpp:43:19: error: 'col' was not declared in this scope
if( a[lin[i]][col[i]] == i){
^~~
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !