Borderou de evaluare (job #1735945)

Utilizator Emy1337Micu Emerson Emy1337 Data 31 iulie 2016 17:52:06
Problema Barbar Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.cpp:9:15: error: ‘int y1’ redeclared as different kind of symbol int n, m, x1, y1, x2, y2, dim; ^ 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 ‘bool lee(int (*)[1005])’: user.cpp:24:33: error: no matching function for call to ‘std::queue<std::pair<int, int> >::push(std::pair<int, double (*)(double)throw ()>)’ coada.push(make_pair(x1, y1)); ^ user.cpp:24:33: note: candidates are: In file included from /usr/include/c++/4.8/queue:64:0, from /usr/include/i386-linux-gnu/c++/4.8/bits/stdc++.h:85, from user.cpp:1: /usr/include/c++/4.8/bits/stl_queue.h:212:7: note: 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++/4.8/bits/stl_queue.h:212:7: note: no known conversion for argument 1 from ‘std::pair<int, double (*)(double)throw ()>’ to ‘const value_type& {aka const std::pair<int, int>&}’ /usr/include/c++/4.8/bits/stl_queue.h:217:7: note: 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++/4.8/bits/stl_queue.h:217:7: note: no known conversion for argument 1 from ‘std::pair<int, double (*)(double)throw ()>’ to ‘std::queue<std::pair<int, int> >::value_type&& {aka std::pair<int, int>&&}’ user.cpp: In function ‘bool solve(int)’: user.cpp:69:17: warning: NULL used in arithmetic [-Wpointer-arith] if(i == NULL && j == NULL) ^ user.cpp:69:30: warning: NULL used in arithmetic [-Wpointer-arith] if(i == NULL && j == NULL) ^ user.cpp: In function ‘int main()’: user.cpp:136:28: error: assignment of function ‘double y1(double)’ x1 = i, y1 = j; ^ user.cpp:136:28: error: cannot convert ‘int’ to ‘double(double)throw ()’ in assignment

Ceva nu functioneaza?