Borderou de evaluare (job #1911700)

Utilizator AhileGigel Frone Ahile Data 7 martie 2017 21:27:42
Problema Cartite Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.cpp:12:52: error: ‘int y1 [110]’ redeclared as different kind of symbol int n, m, x, y, p, xc, yc, k, r, G, x1[110], y1[110], x2[110], y2[110], M[210][210], xf, yf; ^ In file included from /usr/include/features.h:357:0, from /usr/include/assert.h:37, from /usr/include/c++/4.8/cassert:43, from /usr/include/i386-linux-gnu/c++/4.8/bits/stdc++.h:33, 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 ‘int bfsc(int, int, int)’: user.cpp:42:1: warning: no return statement in function returning non-void [-Wreturn-type] } ^ user.cpp: In function ‘int bfsv(int, int, int, int)’: user.cpp:57:1: warning: no return statement in function returning non-void [-Wreturn-type] } ^ user.cpp: In function ‘int main()’: user.cpp:73:28: warning: pointer to a function used in arithmetic [-Wpointer-arith] in >> x1[i] >> y1[i] >> x2[i] >> y2[i]; ^ user.cpp:73:12: error: cannot bind ‘std::basic_istream<char>::__istream_type {aka std::basic_istream<char>}’ lvalue to ‘std::basic_istream<char>&&’ in >> x1[i] >> y1[i] >> x2[i] >> y2[i]; ^ In file included from /usr/include/c++/4.8/sstream:38:0, from /usr/include/c++/4.8/complex:45, from /usr/include/c++/4.8/ccomplex:38, from /usr/include/i386-linux-gnu/c++/4.8/bits/stdc++.h:52, 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:74:30: warning: pointer to a function used in arithmetic [-Wpointer-arith] v.push_back({n - y1[i] + 1, x1[i]}); ^ user.cpp:74:30: error: invalid operands of types ‘int’ and ‘double(double)throw ()’ to binary ‘operator-’ user.cpp:74:43: error: no matching function for call to ‘std::vector<std::pair<int, int> >::push_back(<brace-enclosed initializer list>)’ v.push_back({n - y1[i] + 1, x1[i]}); ^ user.cpp:74:43: 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 = std::pair<int, int>; _Alloc = std::allocator<std::pair<int, int> >; std::vector<_Tp, _Alloc>::value_type = std::pair<int, int>]

Ceva nu functioneaza?