Borderou de evaluare (job #2446540)

Utilizator PatrickCplusplusPatrick Kristian Ondreovici PatrickCplusplus Data 9 august 2019 15:46:14
Problema Secventa 2 Status done
Runda Arhiva de probleme Compilator cpp-64 | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: main.cpp:9:29: error: 'int index' redeclared as different kind of symbol int n, a[50004], minim = 0, index = 0, st, dr, maxim, k; ^~~~~ 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:2: /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:22:61: error: overloaded function with no contextual type information if (a[i - k] < minim) minim = a[i - k], index = i - k; ^ main.cpp:27:24: error: invalid operands of types '<unresolved overloaded function type>' and 'int' to binary 'operator+' st = index + 1; ~~~~~~^~~ Non zero exit status: 1

Ceva nu functioneaza?