Borderou de evaluare (job #1616996)

Utilizator sebi110Ciobanu Sebastian sebi110 Data 27 februarie 2016 12:24:28
Problema Vis Status done
Runda PreOJI 2016 Clasa a 10-a Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.cpp: In function ‘void lee(int)’: user.cpp:19:14: error: no matching function for call to ‘std::queue<per>::push(int&)’ c.push(z1); ^ user.cpp:19:14: note: candidates are: In file included from /usr/include/c++/4.8/queue:64:0, from user.cpp:2: /usr/include/c++/4.8/bits/stl_queue.h:212:7: note: void std::queue<_Tp, _Sequence>::push(const value_type&) [with _Tp = per; _Sequence = std::deque<per, std::allocator<per> >; std::queue<_Tp, _Sequence>::value_type = per] push(const value_type& __x) ^ /usr/include/c++/4.8/bits/stl_queue.h:212:7: note: no known conversion for argument 1 from ‘int’ to ‘const value_type& {aka const per&}’ /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 = per; _Sequence = std::deque<per, std::allocator<per> >; std::queue<_Tp, _Sequence>::value_type = per] push(value_type&& __x) ^ /usr/include/c++/4.8/bits/stl_queue.h:217:7: note: no known conversion for argument 1 from ‘int’ to ‘std::queue<per>::value_type&& {aka per&&}’ user.cpp:20:10: error: request for member ‘x’ in ‘z1’, which is of non-class type ‘int’ b[z1.x][z1.y]=1; ^ user.cpp:20:16: error: request for member ‘y’ in ‘z1’, which is of non-class type ‘int’ b[z1.x][z1.y]=1; ^ user.cpp:23:11: error: cannot convert ‘per’ to ‘int’ in assignment z1=c.front(); ^ user.cpp:27:21: error: request for member ‘x’ in ‘z1’, which is of non-class type ‘int’ z2.x=z1.x+dx[k]; ^ user.cpp:28:21: error: request for member ‘y’ in ‘z1’, which is of non-class type ‘int’ z2.y=z1.y+dy[k]; ^ user.cpp:31:40: error: request for member ‘x’ in ‘z1’, which is of non-class type ‘int’ a[z2.x][z2.y]=a[z1.x][z1.y]+1; ^ user.cpp:31:46: error: request for member ‘y’ in ‘z1’, which is of non-class type ‘int’ a[z2.x][z2.y]=a[z1.x][z1.y]+1; ^ user.cpp:36:24: error: ‘lee1’ was not declared in this scope lee1(z2); ^ user.cpp:40:24: error: ‘lee2’ was not declared in this scope lee2(z2); ^ user.cpp: In function ‘void lee3(int)’: user.cpp:47:14: error: no matching function for call to ‘std::queue<per>::push(int&)’ c.push(z1); ^ user.cpp:47:14: note: candidates are: In file included from /usr/include/c++/4.8/queue:64:0, from user.cpp:2: /usr/include/c++/4.8/bits/stl_queue.h:212:7: note: void std::queue<_Tp, _Sequence>::push(const value_type&) [with _Tp = per; _Sequence = std::deque<per, std::allocator<per> >; std::queue<_Tp, _Sequence>::value_type = per]

Ceva nu functioneaza?