Borderou de evaluare (job #1548035)
Utilizator | Data | 10 decembrie 2015 12:08:00 | |
---|---|---|---|
Problema | Rsp | Status | done |
Runda | Arhiva de probleme | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp:10:5: error: ‘int index’ redeclared as different kind of symbol
int index = 0;
^
In file included from /usr/include/c++/4.8/cstring:42:0,
from user.cpp:3:
/usr/include/string.h:482:1: error: previous declaration of ‘const char* index(const char*, int)’
index (__const char *__s, int __c) __THROW
^
user.cpp: In function ‘Network* expresie()’:
user.cpp:53:19: error: invalid types ‘char [100005][<unresolved overloaded function type>]’ for array subscript
while (s[index] == 'S') {
^
user.cpp:55:11: error: no pre-increment operator for type
++index;
^
user.cpp: In function ‘Network* termen()’:
user.cpp:77:19: error: invalid types ‘char [100005][<unresolved overloaded function type>]’ for array subscript
while (s[index] == 'P') {
^
user.cpp:79:11: error: no pre-increment operator for type
++index;
^
user.cpp: In function ‘Network* factor()’:
user.cpp:101:16: error: invalid types ‘char [100005][<unresolved overloaded function type>]’ for array subscript
if (s[index] == '(') {
^
user.cpp:103:11: error: no pre-increment operator for type
++index;
^
user.cpp:105:11: error: no pre-increment operator for type
++index;
^
user.cpp:111:7: error: no pre-increment operator for type
++index;
^
user.cpp: In function ‘int main()’:
user.cpp:129:15: error: overloaded function with no contextual type information
index = 0;
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !