Borderou de evaluare (job #1853866)
Utilizator | Data | 22 ianuarie 2017 10:29:43 | |
---|---|---|---|
Problema | Expresii min-max | Status | done |
Runda | Arhiva de probleme | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp:6: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:17:13: error: invalid types ‘char [100001][<unresolved overloaded function type>]’ for array subscript
if (s[index] == '(') {
^
user.cpp:21:16: error: invalid types ‘char [100001][<unresolved overloaded function type>]’ for array subscript
while (s[index] >= '0' && s[index] <= '9' && index < n) {
^
user.cpp:21:35: error: invalid types ‘char [100001][<unresolved overloaded function type>]’ for array subscript
while (s[index] >= '0' && s[index] <= '9' && index < n) {
^
user.cpp:21: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:22:26: error: invalid types ‘char [100001][<unresolved overloaded function type>]’ for array subscript
nr = nr * 10 + (s[index] - '0');
^
user.cpp:23:8: error: no post-increment operator for type
index++;
^
user.cpp: In function ‘int expresie()’:
user.cpp:32:17: error: invalid operands of types ‘<unresolved overloaded function type>’ and ‘int’ to binary ‘operator<’
while (index < n && s[index] != ')') {
^
user.cpp:32:29: error: invalid types ‘char [100001][<unresolved overloaded function type>]’ for array subscript
while (index < n && s[index] != ')') {
^
user.cpp:33:19: error: invalid types ‘char [100001][<unresolved overloaded function type>]’ for array subscript
char c = s[index];
^
user.cpp:35:9: error: no post-increment operator for type
index++;
^
user.cpp:39:9: error: no post-increment operator for type
index++;
^
user.cpp:43:9: error: no post-increment operator for type
index++;
^
user.cpp:51: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 !