Borderou de evaluare (job #2199077)
Utilizator | Data | 26 aprilie 2018 17:10:02 | |
---|---|---|---|
Problema | Subsecventa de suma maxima | Status | done |
Runda | Arhiva educationala | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp:7:15: error: ‘int index’ redeclared as different kind of symbol
int n, minim, index, maxSum, st, dr;
^~~~~
In file included from /usr/include/c++/6/cstring:42:0,
from /usr/include/x86_64-linux-gnu/c++/6/32/bits/stdc++.h:48,
from user.cpp:1:
/usr/include/string.h:477:1: note: previous declaration ‘const char* index(const char*, int)’
index (const char *__s, int __c) __THROW
^~~~~
user.cpp: In function ‘void SumCalculate()’:
user.cpp:16:19: error: overloaded function with no contextual type information
index=i;
^
user.cpp:20:21: error: invalid operands of types ‘<unresolved overloaded function type>’ and ‘int’ to binary ‘operator+’
st=index+1;
~~~~~^~
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !