Meistras

Taškai: 0

Compile: FAIL

meistras.cpp: In function ‘int main()’: meistras.cpp:15:6: error: ‘queue’ is not a member of ‘std’ 15 | std::queue<int> q; | ^~~~~ meistras.cpp:5:1: note: ‘std::queue’ is defined in header ‘<queue>’; did you forget to ‘#include <queue>’? 4 | #include <algorithm> +++ |+#include <queue> 5 | meistras.cpp:15:12: error: expected primary-expression before ‘int’ 15 | std::queue<int> q; | ^~~ meistras.cpp:32:9: error: ‘q’ was not declared in this scope 32 | q.push(i); | ^ meistras.cpp:35:7: error: ‘q’ was not declared in this scope 35 | while(q.size() > 0){ | ^

nr.resulttimemessage