A.cpp: In function ‘void cut()’:
A.cpp:16:10: warning: ‘auto’ changes meaning in C++11; please remove it [-Wc++0x-compat]
for (auto d : q) {
^
A.cpp:16:15: error: ‘d’ does not name a type
for (auto d : q) {
^
A.cpp:20:5: error: expected ‘;’ before ‘q’
q.swap(temp);
^
A.cpp:20:16: error: could not convert ‘q.std::deque<_Tp, _Alloc>::swap<double, std::allocator<double> >((* & temp))’ from ‘void’ to ‘bool’
q.swap(temp);
^
A.cpp:21:1: error: expected primary-expression before ‘}’ token
}
^
A.cpp:21:1: error: expected ‘)’ before ‘}’ token
A.cpp:21:1: error: expected primary-expression before ‘}’ token
A.cpp: In function ‘int main()’:
A.cpp:31:5: warning: ‘auto’ changes meaning in C++11; please remove it [-Wc++0x-compat]
auto r = q.begin();
^
A.cpp:31:10: error: ‘r’ does not name a type
auto r = q.begin();
^
A.cpp:32:13: error: ‘r’ was not declared in this scope
advance(r, k);
^