Borderou de evaluare (job #2922698)

Utilizator petru-robuRobu Petru petru-robu Data 9 septembrie 2022 18:01:21
Problema Retele Status done
Runda Arhiva de probleme Compilator cpp-64 | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: main.cpp:8:11: error: 'int index' redeclared as different kind of entity 8 | int N, M, 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: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 print()': main.cpp:28:18: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<std::vector<int> >::size_type' {aka 'long unsigned int'} [-Wsign-compare] 28 | for(int i=0; i < Componente.size(); i++) | ~~^~~~~~~~~~~~~~~~~~~ main.cpp:31:17: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<std::vector<int> >::size_type' {aka 'long unsigned int'} [-Wsign-compare] 31 | for(int i=0; i<Componente.size()-1; i++) | ~^~~~~~~~~~~~~~~~~~~~ main.cpp:32:21: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<std::vector<int> >::size_type' {aka 'long unsigned int'} [-Wsign-compare] 32 | for(int j=i+1; j<Componente.size(); j++) | ~^~~~~~~~~~~~~~~~~~ main.cpp:37:18: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<std::vector<int> >::size_type' {aka 'long unsigned int'} [-Wsign-compare] 37 | for(int i=0; i < Componente.size(); i++) | ~~^~~~~~~~~~~~~~~~~~~ main.cpp:40:19: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare] 40 | for(int j=0; j< Componente[i].size(); j++) | ~^~~~~~~~~~~~~~~~~~~~~~ main.cpp: In function 'void tarjan(int)': main.cpp:49:25: error: cannot resolve overloaded function 'index' based on conversion to type '__gnu_cxx::__alloc_traits<std::allocator<int>, int>::value_type' {aka 'int'} 49 | idx[x] = lowlink[x] = index; | ^~~~~ main.cpp:50:8: error: no post-increment operator for type 50 | index++; | ^~ Non zero exit status: 1

Ceva nu functioneaza?