Borderou de evaluare (job #2266214)
Utilizator | Data | 22 octombrie 2018 14:53:16 | |
---|---|---|---|
Problema | Secventa 2 | Status | done |
Runda | Arhiva de probleme | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp:11:93: error: 'int index' redeclared as different kind of symbol
int index_max_inceput, index_max_final, index_inceput, index_final, vect[50005],n, k,s,smax,index;
^~~~~
In file included from /usr/include/c++/6/cstring:42:0,
from main.cpp:4:
/usr/include/string.h:477:1: note: previous declaration 'const char* index(const char*, int)'
index (const char *__s, int __c) __THROW
^~~~~
main.cpp: In function 'int main()':
main.cpp:32:21: error: overloaded function with no contextual type information
for ( index=index_inceput; index<i-k+1; index++)
^~~~~~~~~~~~~
main.cpp:32:41: error: invalid operands of types '<unresolved overloaded function type>' and 'int' to binary 'operator<'
for ( index=index_inceput; index<i-k+1; index++)
~~~~~^~~~~~
main.cpp:32:54: error: no post-increment operator for type
for ( index=index_inceput; index<i-k+1; index++)
^~
main.cpp:34:28: error: invalid types 'int [50005][<unresolved overloaded function type>]' for array subscript
aux-=vect[index];
^
main.cpp:37:36: error: invalid operands of types '<unresolved overloaded function type>' and 'int' to binary 'operator+'
index_inceput=index+1;
~~~~~^~
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !