Borderou de evaluare (job #2637132)

Utilizator JackstilAdascalitei Alexandru Jackstil Data 21 iulie 2020 14:47:29
Problema Pluton Status done
Runda Arhiva de probleme Compilator cpp-64 | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: main.cpp:9:46: error: 'int index' redeclared as different kind of symbol int n, nrp, nrsmax, nrpmax, l, lans, starti, index; ^~~~~ 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:52:27: error: overloaded function with no contextual type information index += lungimi[i]; ^ main.cpp:56:22: error: cannot resolve overloaded function 'index' based on conversion to type 'int' starti = index; ^~~~~ Non zero exit status: 1

Ceva nu functioneaza?