Borderou de evaluare (job #1853870)
Utilizator | Data | 22 ianuarie 2017 10:32:51 | |
---|---|---|---|
Problema | Dtcsu | Status | done |
Runda | Arhiva de probleme | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp:7:8: error: ‘int index’ redeclared as different kind of symbol
int n, index;
^
In file included from user.cpp:3:0:
/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 ‘int termen()’:
user.cpp:18:13: error: invalid types ‘char [100001][<unresolved overloaded function type>]’ for array subscript
if (s[index] == '(') {
^
user.cpp:22:16: error: invalid types ‘char [100001][<unresolved overloaded function type>]’ for array subscript
while (s[index] >= '0' && s[index] <= '9' && index < n) {
^
user.cpp:22:35: error: invalid types ‘char [100001][<unresolved overloaded function type>]’ for array subscript
while (s[index] >= '0' && s[index] <= '9' && index < n) {
^
user.cpp:22:55: error: invalid operands of types ‘<unresolved overloaded function type>’ and ‘int’ to binary ‘operator<’
while (s[index] >= '0' && s[index] <= '9' && index < n) {
^
user.cpp:23:26: error: invalid types ‘char [100001][<unresolved overloaded function type>]’ for array subscript
nr = nr * 10 + (s[index] - '0');
^
user.cpp:24:8: error: no post-increment operator for type
index++;
^
user.cpp: In function ‘int expresie()’:
user.cpp:33:17: error: invalid operands of types ‘<unresolved overloaded function type>’ and ‘int’ to binary ‘operator<’
while (index < n && s[index] != ')') {
^
user.cpp:33:29: error: invalid types ‘char [100001][<unresolved overloaded function type>]’ for array subscript
while (index < n && s[index] != ')') {
^
user.cpp:34:19: error: invalid types ‘char [100001][<unresolved overloaded function type>]’ for array subscript
char c = s[index];
^
user.cpp:36:9: error: no post-increment operator for type
index++;
^
user.cpp:40:9: error: no post-increment operator for type
index++;
^
user.cpp:44:9: error: no post-increment operator for type
index++;
^
user.cpp:52:7: 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 !