Borderou de evaluare (job #2628713)

Utilizator hoprixVlad Opris hoprix Data 17 iunie 2020 10:53:04
Problema Flori Status done
Runda Arhiva de probleme Compilator cpp-64 | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: main.cpp:8:23: error: 'int index' redeclared as different kind of symbol int N, K, group[MAX], 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 'void dfs(int)': main.cpp:18:24: error: no post-increment operator for type group[index++] = i; ^~ main.cpp: In function 'int main()': main.cpp:41:21: error: overloaded function with no contextual type information index = 0; ^ main.cpp:42:24: error: no post-increment operator for type group[index++] = i; ^~ main.cpp:44:31: error: invalid operands of types 'int [1000]' and '<unresolved overloaded function type>' to binary 'operator+' sort(group, group + index); ~~~~~~^~~~~~~ main.cpp:45:31: error: invalid operands of types 'int' and '<unresolved overloaded function type>' to binary 'operator<' for (int j = 0; j < index; ++j) ~~^~~~~~~ Non zero exit status: 1

Ceva nu functioneaza?