Borderou de evaluare (job #1363396)
Utilizator | Data | 26 februarie 2015 22:27:08 | |
---|---|---|---|
Problema | Bool | Status | done |
Runda | Arhiva de probleme | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp:9:19: error: ‘int index’ redeclared as different kind of symbol
int n, lenght, k, index;
^
In file included from /usr/include/c++/4.8/cstring:42:0,
from user.cpp:2:
/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 ‘bool function_OR()’:
user.cpp:20:18: error: invalid types ‘char [1010][<unresolved overloaded function type>]’ for array subscript
while(v[index] == 'O' && v[index + 1] == 'R')
^
user.cpp:20:40: error: invalid operands of types ‘<unresolved overloaded function type>’ and ‘int’ to binary ‘operator+’
while(v[index] == 'O' && v[index + 1] == 'R')
^
user.cpp:22:15: error: overloaded function with no contextual type information
index += 2;
^
user.cpp: In function ‘bool function_AND()’:
user.cpp:32:18: error: invalid types ‘char [1010][<unresolved overloaded function type>]’ for array subscript
while(v[index] == 'A' && v[index + 1] == 'N' && v[index + 2] == 'D')
^
user.cpp:32:40: error: invalid operands of types ‘<unresolved overloaded function type>’ and ‘int’ to binary ‘operator+’
while(v[index] == 'A' && v[index + 1] == 'N' && v[index + 2] == 'D')
^
user.cpp:32:63: error: invalid operands of types ‘<unresolved overloaded function type>’ and ‘int’ to binary ‘operator+’
while(v[index] == 'A' && v[index + 1] == 'N' && v[index + 2] == 'D')
^
user.cpp:34:15: error: overloaded function with no contextual type information
index += 3;
^
user.cpp: In function ‘bool function_NOT()’:
user.cpp:44:15: error: invalid types ‘char [1010][<unresolved overloaded function type>]’ for array subscript
if(v[index] == 'N' && v[index + 1] == 'O' && v[index + 2] == 'T')
^
user.cpp:44:37: error: invalid operands of types ‘<unresolved overloaded function type>’ and ‘int’ to binary ‘operator+’
if(v[index] == 'N' && v[index + 1] == 'O' && v[index + 2] == 'T')
^
user.cpp:44:60: error: invalid operands of types ‘<unresolved overloaded function type>’ and ‘int’ to binary ‘operator+’
if(v[index] == 'N' && v[index + 1] == 'O' && v[index + 2] == 'T')
^
user.cpp:46:15: error: overloaded function with no contextual type information
index += 2;
^
user.cpp:51:19: error: invalid types ‘char [1010][<unresolved overloaded function type>]’ for array subscript
if(v[index] == '(')
^
user.cpp:53:19: 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 !