Borderou de evaluare (job #2970414)
Utilizator | Data | 25 ianuarie 2023 08:19:35 | |
---|---|---|---|
Problema | Ferma3 | Status | done |
Runda | pregatire_oji_1_2022 | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp:10:19: error: 'int index [401][401]' redeclared as different kind of entity
10 | int index[401][401];
| ^
In file included from /usr/include/string.h:432,
from /usr/include/c++/10/cstring:42,
from /usr/include/x86_64-linux-gnu/c++/10/bits/stdc++.h:48,
from main.cpp:1:
/usr/include/strings.h:61:1: note: previous declaration 'const char* index(const char*, int)'
61 | index (const char *__s, int __c) __THROW
| ^~~~~
main.cpp: In function 'void fille(int, int, int)':
main.cpp:34:10: error: invalid types '<unresolved overloaded function type>[int]' for array subscript
34 | index[x][y] = p;
| ^
main.cpp:41:38: error: invalid types '<unresolved overloaded function type>[int]' for array subscript
41 | if(inmat(in, jn) && index[in][jn] == 0 && mat[i][j] == mat[in][jn]){
| ^
main.cpp:42:22: error: invalid types '<unresolved overloaded function type>[int]' for array subscript
42 | index[in][jn] = p;
| ^
main.cpp: In function 'int main()':
main.cpp:64:21: error: invalid types '<unresolved overloaded function type>[int]' for array subscript
64 | if(index[i][j] == 0){
| ^
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !