Borderou de evaluare (job #1663613)

Utilizator TibixbAndrei Tiberiu Tibixb Data 26 martie 2016 10:16:53
Problema Lian Yu Status done
Runda AGM 2016 Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.cpp:9:21: error: ‘int y1’ redeclared as different kind of symbol int n, m, i, j, x1, y1, niv[100005], low[100005], nrbc, x[3002], k, s1, sol, cost[3002]; ^ In file included from /usr/include/features.h:357:0, from /usr/include/i386-linux-gnu/c++/4.8/bits/os_defines.h:39, from /usr/include/i386-linux-gnu/c++/4.8/bits/c++config.h:420, from /usr/include/c++/4.8/iosfwd:38, from /usr/include/c++/4.8/ios:38, from /usr/include/c++/4.8/istream:38, from /usr/include/c++/4.8/fstream:38, from user.cpp:1: /usr/include/i386-linux-gnu/bits/mathcalls.h:243:1: error: previous declaration of ‘double y1(double)’ __MATHCALL (y1,, (_Mdouble_)); ^ user.cpp: In function ‘void biconex(int, int)’: user.cpp:25:19: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] if(bc.size()>=k) ^ user.cpp: In function ‘void dfs(int, int, int)’: user.cpp:37:32: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(int i=0; i<L[nod].size(); i++) ^ user.cpp: In function ‘int main()’: user.cpp:66:11: error: cannot bind ‘std::basic_istream<char>::__istream_type {aka std::basic_istream<char>}’ lvalue to ‘std::basic_istream<char>&&’ in>>x1>>y1; ^ In file included from /usr/include/c++/4.8/fstream:38:0, from user.cpp:1: /usr/include/c++/4.8/istream:872:5: error: initializing argument 1 of ‘std::basic_istream<_CharT, _Traits>& std::operator>>(std::basic_istream<_CharT, _Traits>&&, _Tp&) [with _CharT = char; _Traits = std::char_traits<char>; _Tp = double(double)throw ()]’ operator>>(basic_istream<_CharT, _Traits>&& __is, _Tp& __x) ^ user.cpp:67:27: error: invalid conversion from ‘double (*)(double)throw ()’ to ‘std::vector<int>::value_type {aka int}’ [-fpermissive] L[x1].push_back(y1); ^ In file included from /usr/include/c++/4.8/vector:64:0, from user.cpp:2: /usr/include/c++/4.8/bits/stl_vector.h:919:7: error: initializing argument 1 of ‘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]’ [-fpermissive] push_back(value_type&& __x) ^ user.cpp:68:13: error: invalid types ‘std::vector<int> [100005][double(double)throw ()]’ for array subscript L[y1].push_back(x1); ^

Ceva nu functioneaza?