Borderou de evaluare (job #1946254)
Utilizator | Data | 29 martie 2017 23:57:28 | |
---|---|---|---|
Problema | Expresie3 | Status | done |
Runda | Arhiva de probleme | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp:9:5: error: ‘int index’ redeclared as different kind of symbol
int index;
^
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 ‘void Expression(int)’:
user.cpp:19:16: error: invalid types ‘char [20005][<unresolved overloaded function type>]’ for array subscript
while (s[index] == '*' || s[index] == '/') {
^
user.cpp:19:35: error: invalid types ‘char [20005][<unresolved overloaded function type>]’ for array subscript
while (s[index] == '*' || s[index] == '/') {
^
user.cpp:20:8: error: no post-increment operator for type
index++;
^
user.cpp:22:17: error: invalid operands of types ‘<unresolved overloaded function type>’ and ‘int’ to binary ‘operator-’
if (s[index - 1] == '*')
^
user.cpp: In function ‘void Factor(int)’:
user.cpp:30:13: error: invalid types ‘char [20005][<unresolved overloaded function type>]’ for array subscript
if (s[index] == '(') {
^
user.cpp:31:8: error: no post-increment operator for type
index++;
^
user.cpp:33:8: error: no post-increment operator for type
index++;
^
user.cpp:36:14: error: invalid types ‘char [20005][<unresolved overloaded function type>]’ for array subscript
ans[s[index] - 'a'] += sign;
^
user.cpp:37:8: error: no post-increment operator for type
index++;
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !