Borderou de evaluare (job #775174)
Utilizator |
|
IP | ascuns |
---|---|---|---|
Problemă | Invcuv (clasa a 7-a) | Compilator | cpp-32 |
Rundă | Arhiva de probleme | Status | evaluat |
Dată | 18 apr. 2024 09:59:44 | Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp:10:5: error: 'int index' redeclared as different kind of entity
10 | int index, indc;
| ^~~~~
In file included from /usr/include/string.h:462,
from /usr/lib/gcc/i686-pc-linux-gnu/13/include/g++-v13/cstring:42,
from /usr/lib/gcc/i686-pc-linux-gnu/13/include/g++-v13/i686-pc-linux-gnu/bits/stdc++.h:121,
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 invers()':
main.cpp:27:15: error: invalid types 'char [2000005][<unresolved overloaded function type>]' for array subscript
27 | if (st[index])
| ^
main.cpp:29:23: error: invalid types 'char [2000005][<unresolved overloaded function type>]' for array subscript
29 | if (st[index]==' '){
| ^
main.cpp:30:30: error: no post-increment operator for type
30 | index++;
| ^~
main.cpp:36:37: error: invalid types 'char [2000005][<unresolved overloaded function type>]' for array subscript
36 | cuv[indc]=st[index];
| ^
main.cpp:38:30: error: no post-increment operator for type
38 | index++;
| ^~