Borderou de evaluare (job #1314611)
Utilizator | Data | 12 ianuarie 2015 00:23:15 | |
---|---|---|---|
Problema | Search | Status | done |
Runda | Arhiva de probleme | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp:14:20: error: ‘int index’ redeclared as different kind of symbol
int n, m, i, j, 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 ‘int main()’:
user.cpp:26:27: error: no post-decrement operator for type
if(c == '-') index--;
^
user.cpp:28:25: error: invalid operands of types ‘<unresolved overloaded function type>’ and ‘int’ to binary ‘operator+’
COUNT[index+1] = 0;
^
user.cpp:30:37: error: invalid types ‘int [200000][<unresolved overloaded function type>]’ for array subscript
for(k=INDEX[j][index]; k<strlen(CUV[j]) && CUV[j][k] != c; k++);
^
user.cpp:30:55: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(k=INDEX[j][index]; k<strlen(CUV[j]) && CUV[j][k] != c; k++);
^
user.cpp:31:37: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if(k < strlen(CUV[j])) {COUNT[index+1]++; k++;}
^
user.cpp:31:53: error: invalid operands of types ‘<unresolved overloaded function type>’ and ‘int’ to binary ‘operator+’
if(k < strlen(CUV[j])) {COUNT[index+1]++; k++;}
^
user.cpp:32:32: error: invalid operands of types ‘<unresolved overloaded function type>’ and ‘int’ to binary ‘operator+’
INDEX[j][index+1] = k;
^
user.cpp:34:18: error: no post-increment operator for type
index++;
^
user.cpp:36:26: error: invalid types ‘int [200000][<unresolved overloaded function type>]’ for array subscript
fout<<COUNT[index]<<'\n';
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !