Borderou de evaluare (job #2888952)
Utilizator | Data | 11 aprilie 2022 23:51:26 | |
---|---|---|---|
Problema | Queue | Status | done |
Runda | Arhiva de probleme | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp:10:15: error: 'int index' redeclared as different kind of entity
10 | int N,i,numar,index;
| ^~~~~
In file included from /usr/include/string.h:432,
from /usr/include/c++/10/cstring:42,
from main.cpp:3:
/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 'int main()':
main.cpp:21:19: error: overloaded function with no contextual type information
21 | index=10;
| ^~
main.cpp:23:21: error: invalid types 'char [20][<unresolved overloaded function type>]' for array subscript
23 | while(op[index]!=')')
| ^
main.cpp:25:35: error: invalid types 'char [20][<unresolved overloaded function type>]' for array subscript
25 | numar=numar*10+(op[index]-'0');
| ^
main.cpp:26:22: error: no post-increment operator for type
26 | index++;
| ^~
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !