Borderou de evaluare (job #1853873)
Utilizator | Data | 22 ianuarie 2017 10:34:37 | |
---|---|---|---|
Problema | Expresii min-max | Status | done |
Runda | Arhiva de probleme | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp:5:8: error: ‘int index’ redeclared as different kind of symbol
int n, index;
^
In file included from user.cpp:2: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:23:13: error: invalid types ‘char [100001][<unresolved overloaded function type>]’ for array subscript
if (s[index] == '(') {
^
user.cpp:27:16: error: invalid types ‘char [100001][<unresolved overloaded function type>]’ for array subscript
while (s[index] >= '0' && s[index] <= '9' && index < n) {
^
user.cpp:27:35: error: invalid types ‘char [100001][<unresolved overloaded function type>]’ for array subscript
while (s[index] >= '0' && s[index] <= '9' && index < n) {
^
user.cpp:27: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:28:26: error: invalid types ‘char [100001][<unresolved overloaded function type>]’ for array subscript
nr = nr * 10 + (s[index] - '0');
^
user.cpp:29:8: error: no post-increment operator for type
index++;
^
user.cpp: In function ‘int expresie()’:
user.cpp:38:17: error: invalid operands of types ‘<unresolved overloaded function type>’ and ‘int’ to binary ‘operator<’
while (index < n && s[index] != ')') {
^
user.cpp:38:29: error: invalid types ‘char [100001][<unresolved overloaded function type>]’ for array subscript
while (index < n && s[index] != ')') {
^
user.cpp:39:19: error: invalid types ‘char [100001][<unresolved overloaded function type>]’ for array subscript
char c = s[index];
^
user.cpp:41:9: error: no post-increment operator for type
index++;
^
user.cpp:45:9: error: no post-increment operator for type
index++;
^
user.cpp:49:9: error: no post-increment operator for type
index++;
^
user.cpp:57: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 !