Borderou de evaluare (job #1853858)

Utilizator savigunFeleaga Dragos-George savigun Data 22 ianuarie 2017 10:24:28
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:24:13: error: invalid types ‘char [100001][<unresolved overloaded function type>]’ for array subscript if (s[index] == '(') { ^ user.cpp:28:16: error: invalid types ‘char [100001][<unresolved overloaded function type>]’ for array subscript while (s[index] >= '0' && s[index] <= '9' && index < n) { ^ user.cpp:28:35: error: invalid types ‘char [100001][<unresolved overloaded function type>]’ for array subscript while (s[index] >= '0' && s[index] <= '9' && index < n) { ^ user.cpp:28: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:29:26: error: invalid types ‘char [100001][<unresolved overloaded function type>]’ for array subscript nr = nr * 10 + (s[index] - '0'); ^ user.cpp:30:8: error: no post-increment operator for type index++; ^ user.cpp: In function ‘int expresie()’: user.cpp:39:17: error: invalid operands of types ‘<unresolved overloaded function type>’ and ‘int’ to binary ‘operator<’ while (index < n && s[index] != ')') { ^ user.cpp:39:29: error: invalid types ‘char [100001][<unresolved overloaded function type>]’ for array subscript while (index < n && s[index] != ')') { ^ user.cpp:40:19: error: invalid types ‘char [100001][<unresolved overloaded function type>]’ for array subscript char c = s[index]; ^ user.cpp:42:9: error: no post-increment operator for type index++; ^ user.cpp:46:9: error: no post-increment operator for type index++; ^ user.cpp:50:9: error: no post-increment operator for type index++; ^ user.cpp:58:7: error: no post-increment operator for type index++; ^

Ceva nu functioneaza?