Borderou de evaluare (job #2165162)

Utilizator TheNextGenerationAyy LMAO TheNextGeneration Data 13 martie 2018 11:20:02
Problema Barbar Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.cpp:7:12: error: ‘int y1’ redeclared as different kind of symbol int n,m,x1,y1,x2,y2,dp[1005][1005],cost[1005][1005]; ^ In file included from /usr/include/features.h:367:0, from /usr/include/assert.h:35, from /usr/include/c++/5/cassert:43, from /usr/include/x86_64-linux-gnu/c++/5/32/bits/stdc++.h:33, from user.cpp:1: /usr/include/bits/mathcalls.h:251:1: note: previous declaration ‘double y1(double)’ __MATHCALL (y1,, (_Mdouble_)); ^ user.cpp: In function ‘int main()’: user.cpp:35:24: error: assignment of function ‘double y1(double)’ y1 = j; ^ user.cpp:35:24: error: cannot convert ‘int’ to ‘double(double) throw ()’ in assignment user.cpp:64:19: error: no matching function for call to ‘std::queue<std::pair<int, int> >::push(<brace-enclosed initializer list>)’ q.push({x1,y1}); ^ In file included from /usr/include/c++/5/queue:64:0, from /usr/include/x86_64-linux-gnu/c++/5/32/bits/stdc++.h:85, from user.cpp:1: /usr/include/c++/5/bits/stl_queue.h:215:7: note: candidate: void std::queue<_Tp, _Sequence>::push(const value_type&) [with _Tp = std::pair<int, int>; _Sequence = std::deque<std::pair<int, int>, std::allocator<std::pair<int, int> > >; std::queue<_Tp, _Sequence>::value_type = std::pair<int, int>] push(const value_type& __x) ^ /usr/include/c++/5/bits/stl_queue.h:215:7: note: no known conversion for argument 1 from ‘<brace-enclosed initializer list>’ to ‘const value_type& {aka const std::pair<int, int>&}’ /usr/include/c++/5/bits/stl_queue.h:220:7: note: candidate: void std::queue<_Tp, _Sequence>::push(std::queue<_Tp, _Sequence>::value_type&&) [with _Tp = std::pair<int, int>; _Sequence = std::deque<std::pair<int, int>, std::allocator<std::pair<int, int> > >; std::queue<_Tp, _Sequence>::value_type = std::pair<int, int>] push(value_type&& __x) ^ /usr/include/c++/5/bits/stl_queue.h:220:7: note: no known conversion for argument 1 from ‘<brace-enclosed initializer list>’ to ‘std::queue<std::pair<int, int> >::value_type&& {aka std::pair<int, int>&&}’ user.cpp:65:16: error: invalid types ‘int [1005][double(double) throw ()]’ for array subscript cost[x1][y1] = dp[x1][y1]; ^ user.cpp:65:29: error: invalid types ‘int [1005][double(double) throw ()]’ for array subscript cost[x1][y1] = dp[x1][y1]; ^

Ceva nu functioneaza?