Borderou de evaluare (job #1546481)
Utilizator | Data | 8 decembrie 2015 07:14:13 | |
---|---|---|---|
Problema | Subsir Binar | Status | done |
Runda | Arhiva de probleme | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp:8:11: error: ‘int index’ redeclared as different kind of symbol
int numar,index,sol,nl;
^
In file included from /usr/include/c++/4.8/cstring:42:0,
from user.cpp:4:
/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 main()’:
user.cpp:35:36: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for (int j = 0; j < v.size(); j++) {
^
user.cpp:37:32: error: invalid types ‘char [50000001][<unresolved overloaded function type>]’ for array subscript
if (v[j] == b[index]) index++;
^
user.cpp:37:40: error: no post-increment operator for type
if (v[j] == b[index]) index++;
^
user.cpp:38:23: error: invalid operands of types ‘<unresolved overloaded function type>’ and ‘int’ to binary ‘operator==’
if(index==nl) break;
^
user.cpp:40:19: error: invalid operands of types ‘<unresolved overloaded function type>’ and ‘int’ to binary ‘operator==’
if(index==nl) break;
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !