Borderou de evaluare (job #2871543)

Utilizator Botzki17Botocan Cristian-Alexandru Botzki17 Data 15 martie 2022 00:37:06
Problema Componente tare conexe Status done
Runda Arhiva educationala Compilator cpp-64 | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: main.cpp:15:5: error: 'int index' redeclared as different kind of entity 15 | int index; | ^~~~~ 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:1: /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_tarjan(int)': main.cpp:23:17: error: cannot resolve overloaded function 'index' based on conversion to type 'int' 23 | ids[node] = index; | ^~~~~ main.cpp:24:22: error: cannot resolve overloaded function 'index' based on conversion to type 'int' 24 | low_link[node] = index; | ^~~~~ main.cpp:25:10: error: no post-increment operator for type 25 | index++; | ^~ main.cpp:27:21: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare] 27 | for(int i =0; i < g[node].size(); i++){ | ~~^~~~~~~~~~~~~~~~ main.cpp: In function 'void tarjan(int)': main.cpp:53:13: error: overloaded function with no contextual type information 53 | index = 1; | ^ main.cpp:54:9: warning: unused variable 'scc' [-Wunused-variable] 54 | int scc = 0; | ^~~ main.cpp: In function 'int main()': main.cpp:73:22: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<std::vector<int> >::size_type' {aka 'long unsigned int'} [-Wsign-compare] 73 | for(int i =0 ; i < strong_components.size(); i++) | ~~^~~~~~~~~~~~~~~~~~~~~~~~~~ main.cpp:75:25: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare] 75 | for(int j =0; j < strong_components[i].size(); j++) | ~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Non zero exit status: 1

Ceva nu functioneaza?