Borderou de evaluare (job #2928045)

Utilizator VartonVarts Var Varton Data 22 octombrie 2022 02:14:14
Problema Componente tare conexe Status done
Runda Arhiva educationala Compilator cpp-64 | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: main.cpp:19:5: error: 'int index' redeclared as different kind of entity 19 | int index = 0; | ^~~~~ In file included from /usr/include/string.h:432, from /usr/include/c++/10/cstring:42, from /usr/include/x86_64-linux-gnu/c++/10/bits/stdc++.h:48, from main.cpp:2: /usr/include/strings.h:61:1: note: previous declaration 'const char* index(const char*, int)' 61 | index (const char *__s, int __c) __THROW | ^~~~~ main.cpp: In function 'void DFS(int)': main.cpp:22:21: error: cannot resolve overloaded function 'index' based on conversion to type '__gnu_cxx::__alloc_traits<std::allocator<int>, int>::value_type' {aka 'int'} 22 | indexes[node] = index; | ^~~~~ main.cpp:23:22: error: cannot resolve overloaded function 'index' based on conversion to type '__gnu_cxx::__alloc_traits<std::allocator<int>, int>::value_type' {aka 'int'} 23 | lowlinks[node] = index; | ^~~~~ main.cpp:26:14: error: overloaded function with no contextual type information 26 | index += 1; | ^ Non zero exit status: 1

Ceva nu functioneaza?