Borderou de evaluare (job #2885007)
Utilizator | Data | 5 aprilie 2022 13:31:22 | |
---|---|---|---|
Problema | Queue | Status | done |
Runda | Arhiva de probleme | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp:8:5: error: 'int index' redeclared as different kind of entity
8 | int index = 1;
| ^~~~~
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 'int main()':
main.cpp:62:21: error: overloaded function with no contextual type information
62 | index = 10;
| ^~
main.cpp:64:34: error: invalid types 'char [30][<unresolved overloaded function type>]' for array subscript
64 | while(isdigit(command[index]))
| ^
main.cpp:66:40: error: invalid types 'char [30][<unresolved overloaded function type>]' for array subscript
66 | nr = nr * 10 + (command[index] - '0');
| ^
main.cpp:67:22: error: no post-increment operator for type
67 | index++;
| ^~
main.cpp:53:13: warning: unused variable 'j' [-Wunused-variable]
53 | int n,i,j,nr;
| ^
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !