Borderou de evaluare (job #1787587)

Utilizator CiurezAndreiCiurez Marius-Andrei CiurezAndrei Data 24 octombrie 2016 20:15:30
Problema Atac2 Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.cpp:13:5: error: ‘int index’ redeclared as different kind of symbol int index; ^ In file included from /usr/include/c++/4.8/cstring:42:0, from /usr/include/i386-linux-gnu/c++/4.8/bits/stdc++.h:48, from user.cpp:1: /usr/include/string.h:482:1: error: previous declaration of ‘const char* index(const char*, int)’ index (__const char *__s, int __c) __THROW ^ user.cpp: In function ‘void dijkstra(const int&)’: user.cpp:59:43: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(i = 0 ; i < L[st.second].size(); i ++) ^ user.cpp:74:22: error: invalid types ‘std::vector<int> [300][<unresolved overloaded function type>]’ for array subscript G[ index ].push_back( U + i ); ^ user.cpp:75:41: error: no matching function for call to ‘std::vector<int>::push_back(<unresolved overloaded function type>)’ G[ U + i ].push_back( index ); ^ user.cpp:75:41: note: candidates are: In file included from /usr/include/c++/4.8/vector:64:0, from /usr/include/c++/4.8/bits/random.h:34, from /usr/include/c++/4.8/random:50, from /usr/include/c++/4.8/bits/stl_algo.h:65, from /usr/include/c++/4.8/algorithm:62, from /usr/include/i386-linux-gnu/c++/4.8/bits/stdc++.h:64, from user.cpp:1: /usr/include/c++/4.8/bits/stl_vector.h:901:7: note: void std::vector<_Tp, _Alloc>::push_back(const value_type&) [with _Tp = int; _Alloc = std::allocator<int>; std::vector<_Tp, _Alloc>::value_type = int] push_back(const value_type& __x) ^ /usr/include/c++/4.8/bits/stl_vector.h:901:7: note: no known conversion for argument 1 from ‘<unresolved overloaded function type>’ to ‘const value_type& {aka const int&}’ /usr/include/c++/4.8/bits/stl_vector.h:919:7: note: void std::vector<_Tp, _Alloc>::push_back(std::vector<_Tp, _Alloc>::value_type&&) [with _Tp = int; _Alloc = std::allocator<int>; std::vector<_Tp, _Alloc>::value_type = int] push_back(value_type&& __x) ^ /usr/include/c++/4.8/bits/stl_vector.h:919:7: note: no known conversion for argument 1 from ‘<unresolved overloaded function type>’ to ‘std::vector<int>::value_type&& {aka int&&}’ user.cpp:76:29: error: invalid types ‘int [260][260][<unresolved overloaded function type>]’ for array subscript capacity[ index ][ U + i ] = 1; ^ user.cpp:77:25: error: invalid types ‘int [260][260][<unresolved overloaded function type>]’ for array subscript cost[ index ][ U + i ] = D[ U + i ]; ^ user.cpp:78:34: error: invalid types ‘int [260][<unresolved overloaded function type>]’ for array subscript cost[ U + i ][ index ] = -D[ U + i ]; ^ user.cpp: In function ‘bool bellmanFord()’: user.cpp:100:43: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(int i = 0; i < G[ node ].size(); i ++) ^ user.cpp: In function ‘int main()’: user.cpp:154:15: error: overloaded function with no contextual type information

Ceva nu functioneaza?