Borderou de evaluare (job #2959614)
Utilizator | Data | 1 ianuarie 2023 19:17:28 | |
---|---|---|---|
Problema | Pirati | Status | done |
Runda | Arhiva de probleme | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp: In function 'void dfsColor(int, int, int)':
main.cpp:25:38: error: invalid types 'char[int]' for array subscript
25 | if(inBounds(ncx, ncy) && a[x][y] == a[ncx][ncy] && !colored[ncx][ncy])
| ^
main.cpp:25:51: error: invalid types 'char[const int]' for array subscript
25 | if(inBounds(ncx, ncy) && a[x][y] == a[ncx][ncy] && !colored[ncx][ncy])
| ^
main.cpp: In function 'int main()':
main.cpp:60:17: warning: format '%s' expects argument of type 'char*', but argument 2 has type 'int' [-Wformat=]
60 | scanf("%s", a[i] + 1);
| ~^ ~~~~~~~~
| | |
| char* int
main.cpp:62:17: error: invalid types 'char[int]' for array subscript
62 | a[i][j] -= '0';
| ^
main.cpp:67:38: error: invalid types 'char[int]' for array subscript
67 | typeColor[++c] = a[i][j],
| ^
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !