Borderou de evaluare (job #1066627)
Utilizator | Data | 25 decembrie 2013 11:56:03 | |
---|---|---|---|
Problema | Bilete | Status | done |
Runda | Arhiva de probleme | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp:13:17: error: ‘Element index [10]’ redeclared as different kind of symbol
Element index[10];
^
In file included from /usr/local/include/c++/4.8.0/cstring:42:0,
from user.cpp:2:
/usr/include/string.h:480:1: error: previous declaration of ‘const char* index(const char*, int)’
index (__const char *__s, int __c) __THROW
^
user.cpp: In function ‘void solution(int)’:
user.cpp:54:24: error: invalid types ‘<unresolved overloaded function type>[int]’ for array subscript
index[++ind].line=x[i]/n+1;
^
user.cpp:55:22: error: invalid types ‘<unresolved overloaded function type>[int]’ for array subscript
index[ind].col=x[i]%n;
^
user.cpp:59:24: error: invalid types ‘<unresolved overloaded function type>[int]’ for array subscript
index[++ind].line=x[i]/n;
^
user.cpp:60:22: error: invalid types ‘<unresolved overloaded function type>[int]’ for array subscript
index[ind].col=n;
^
user.cpp:66:28: error: invalid types ‘<unresolved overloaded function type>[int]’ for array subscript
aux[i].line=index[i].line;
^
user.cpp:67:29: error: invalid types ‘<unresolved overloaded function type>[int]’ for array subscript
aux[i].col=n-index[i].col+1;
^
user.cpp:70:16: error: invalid operands of types ‘<unresolved overloaded function type>’ and ‘int’ to binary ‘operator+’
sort(index+1,index+k+1,cmp);
^
user.cpp:70:24: error: invalid operands of types ‘<unresolved overloaded function type>’ and ‘int’ to binary ‘operator+’
sort(index+1,index+k+1,cmp);
^
user.cpp:71:27: error: cannot resolve overloaded function ‘index’ based on conversion to type ‘Element*’
if(compare(aux,index,k)==1)
^
user.cpp:74:20: error: cannot resolve overloaded function ‘index’ based on conversion to type ‘Element*’
print(index);
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !