Borderou de evaluare (job #1336554)
Utilizator | Data | 7 februarie 2015 21:49:52 | |
---|---|---|---|
Problema | Search | Status | done |
Runda | Arhiva de probleme | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp: In function ‘int main()’:
user.cpp:22:14: warning: suggest parentheses around ‘+’ inside ‘>>’ [-Wparentheses]
in>>s+1;
^
user.cpp:23:12: error: incompatible types in assignment of ‘size_t {aka unsigned int}’ to ‘int [105]’
len=strlen(s+1);
^
user.cpp:24:14: error: invalid conversion from ‘int*’ to ‘int’ [-fpermissive]
for(j=len;j>=0;--j)
^
user.cpp:26:47: error: invalid array assignment
for(c='a';c<='z';++c) poz[j][l(c)]=poz[j+1][l(c)];
^
user.cpp:27:28: error: incompatible types in assignment of ‘int’ to ‘short int [26]’
poz[j][l(s[j])]=j;
^
user.cpp:30:28: error: request for member ‘push’ in ‘last’, which is of non-class type ‘std::stack<int> [105]’
for(i=1;i<=N;++i) last.push(0);
^
user.cpp:37:36: error: request for member ‘pop’ in ‘last’, which is of non-class type ‘std::stack<int> [105]’
for(i=1;i<=N;++i) last.pop(),last.pop();
^
user.cpp:37:47: error: request for member ‘pop’ in ‘last’, which is of non-class type ‘std::stack<int> [105]’
for(i=1;i<=N;++i) last.pop(),last.pop();
^
user.cpp:44:25: error: request for member ‘top’ in ‘last’, which is of non-class type ‘std::stack<int> [105]’
if(poz[last.top()][l(uc)] && poz[last.top()][l(uc)]<=len)
^
user.cpp:44:51: error: request for member ‘top’ in ‘last’, which is of non-class type ‘std::stack<int> [105]’
if(poz[last.top()][l(uc)] && poz[last.top()][l(uc)]<=len)
^
user.cpp:47:22: error: request for member ‘push’ in ‘last’, which is of non-class type ‘std::stack<int> [105]’
last.push(poz[last.top()][l(uc)]+1);
^
user.cpp:47:36: error: request for member ‘top’ in ‘last’, which is of non-class type ‘std::stack<int> [105]’
last.push(poz[last.top()][l(uc)]+1);
^
user.cpp:49:23: error: request for member ‘push’ in ‘last’, which is of non-class type ‘std::stack<int> [105]’
else last.push(-1);
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !