Borderou de evaluare (job #3031140)
Utilizator | Data | 18 martie 2023 20:49:41 | |
---|---|---|---|
Problema | Cartele | Status | done |
Runda | Arhiva de probleme | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp: In function 'int main()':
main.cpp:8:32: error: expected unqualified-id before 'int'
8 | int start[52][51][51], int left[52][51][51], int down[52][51][51],
| ^~~
main.cpp:25:39: warning: pointer to a function used in arithmetic [-Wpointer-arith]
25 | left[k][i][j] = start[k][j][n + j - i];
| ^
main.cpp:25:42: warning: pointer to a function used in arithmetic [-Wpointer-arith]
25 | left[k][i][j] = start[k][j][n + j - i];
| ^
main.cpp:25:45: warning: pointer to a function used in arithmetic [-Wpointer-arith]
25 | left[k][i][j] = start[k][j][n + j - i];
| ^
main.cpp:25:47: error: assignment of read-only location '*(std::left + ((((sizetype)k) + ((sizetype)i)) + ((sizetype)j)))'
25 | left[k][i][j] = start[k][j][n + j - i];
| ~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~
main.cpp:31:33: error: 'down' was not declared in this scope
31 | down[k][i][j] = start[k][n - i + 1][n - j + 1];
| ^~~~
main.cpp:37:40: warning: pointer to a function used in arithmetic [-Wpointer-arith]
37 | right[k][i][j] = start[k][n - i + 1][i];
| ^
main.cpp:37:43: warning: pointer to a function used in arithmetic [-Wpointer-arith]
37 | right[k][i][j] = start[k][n - i + 1][i];
| ^
main.cpp:37:46: warning: pointer to a function used in arithmetic [-Wpointer-arith]
37 | right[k][i][j] = start[k][n - i + 1][i];
| ^
main.cpp:37:48: error: assignment of read-only location '*(std::right + ((((sizetype)k) + ((sizetype)i)) + ((sizetype)j)))'
37 | right[k][i][j] = start[k][n - i + 1][i];
| ~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~
main.cpp:56:51: warning: pointer to a function used in arithmetic [-Wpointer-arith]
56 | if (left[k][i][j] != s[i][j])
| ^
main.cpp:56:54: warning: pointer to a function used in arithmetic [-Wpointer-arith]
56 | if (left[k][i][j] != s[i][j])
| ^
main.cpp:56:57: warning: pointer to a function used in arithmetic [-Wpointer-arith]
56 | if (left[k][i][j] != s[i][j])
| ^
main.cpp:56:59: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
56 | if (left[k][i][j] != s[i][j])
| ~~~~~~~~~~~~~~^~~~~~~~~~
main.cpp:65:45: error: 'down' was not declared in this scope
65 | if (down[k][i][j] != s[i][j])
| ^~~~
main.cpp:74:52: warning: pointer to a function used in arithmetic [-Wpointer-arith]
74 | if (right[k][i][j] != s[i][j])
| ^
main.cpp:74:55: warning: pointer to a function used in arithmetic [-Wpointer-arith]
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !