Borderou de evaluare (job #1576784)

Utilizator Wh1plashOvidiu Taralesca Wh1plash Data 22 ianuarie 2016 20:34:47
Problema Berarii2 Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.cpp:13:18: error: no matching function for call to ‘std::queue<int>::queue(int)’ queue<int> q(NMAX); ^ user.cpp:13:18: note: candidates are: In file included from /usr/include/c++/4.8/queue:64:0, from user.cpp:3: /usr/include/c++/4.8/bits/stl_queue.h:142:7: note: std::queue<_Tp, _Sequence>::queue(_Sequence&&) [with _Tp = int; _Sequence = std::deque<int, std::allocator<int> >] queue(_Sequence&& __c = _Sequence()) ^ /usr/include/c++/4.8/bits/stl_queue.h:142:7: note: no known conversion for argument 1 from ‘int’ to ‘std::deque<int, std::allocator<int> >&&’ /usr/include/c++/4.8/bits/stl_queue.h:138:7: note: std::queue<_Tp, _Sequence>::queue(const _Sequence&) [with _Tp = int; _Sequence = std::deque<int, std::allocator<int> >] queue(const _Sequence& __c) ^ /usr/include/c++/4.8/bits/stl_queue.h:138:7: note: no known conversion for argument 1 from ‘int’ to ‘const std::deque<int, std::allocator<int> >&’ /usr/include/c++/4.8/bits/stl_queue.h:93:11: note: std::queue<int>::queue(const std::queue<int>&) class queue ^ /usr/include/c++/4.8/bits/stl_queue.h:93:11: note: no known conversion for argument 1 from ‘int’ to ‘const std::queue<int>&’ /usr/include/c++/4.8/bits/stl_queue.h:93:11: note: std::queue<int>::queue(std::queue<int>&&) /usr/include/c++/4.8/bits/stl_queue.h:93:11: note: no known conversion for argument 1 from ‘int’ to ‘std::queue<int>&&’

Ceva nu functioneaza?