Borderou de evaluare (job #2640702)
Utilizator | Data | 7 august 2020 16:00:02 | |
---|---|---|---|
Problema | Secventa 2 | Status | done |
Runda | Arhiva de probleme | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp:10:44: error: 'int index' redeclared as different kind of symbol
int n, k, start, finish, max_sum, sum = 0, index = 1;
^~~~~
In file included from /usr/include/c++/6/cstring:42:0,
from /usr/include/x86_64-linux-gnu/c++/6/bits/stdc++.h:48,
from main.cpp:1:
/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:30:29: error: overloaded function with no contextual type information
index = i - k + 1;
^
main.cpp:36:21: error: cannot resolve overloaded function 'index' based on conversion to type 'int'
start = index;
^~~~~
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !