In file included from /usr/include/c++/5/unordered_map:35:0,
from bridge.cpp:13:
/usr/include/c++/5/bits/c++0x_warning.h:32:2: error: #error This file requires compiler and library support for the ISO C++ 2011 standard. This support must be enabled with the -std=c++11 or -std=gnu++11 compiler options.
#error This file requires compiler and library support \
^
bridge.cpp: In function 'void meanF(ll*)':
bridge.cpp:60:5: warning: 'auto' changes meaning in C++11; please remove it [-Wc++0x-compat]
auto it = Q.begin(); d[0] = myabs((ll)A[P[0]] - (*it)) + myabs((ll)B[P[0]] - (*it));
^
bridge.cpp:60:10: error: 'it' does not name a type
auto it = Q.begin(); d[0] = myabs((ll)A[P[0]] - (*it)) + myabs((ll)B[P[0]] - (*it));
^
bridge.cpp:60:55: error: 'it' was not declared in this scope
auto it = Q.begin(); d[0] = myabs((ll)A[P[0]] - (*it)) + myabs((ll)B[P[0]] - (*it));
^
bridge.cpp: In function 'void process2()':
bridge.cpp:81:5: warning: lambda expressions only available with -std=c++11 or -std=gnu++11
});
^
bridge.cpp:81:6: error: no matching function for call to 'sort(int [100005], int*, process2()::<lambda(const int&, const int&)>)'
});
^
In file included from /usr/include/c++/5/algorithm:62:0,
from bridge.cpp:6:
/usr/include/c++/5/bits/stl_algo.h:4689:5: note: candidate: template<class _RAIter> void std::sort(_RAIter, _RAIter)
sort(_RandomAccessIterator __first, _RandomAccessIterator __last)
^
/usr/include/c++/5/bits/stl_algo.h:4689:5: note: template argument deduction/substitution failed:
bridge.cpp:81:6: note: candidate expects 2 arguments, 3 provided
});
^
In file included from /usr/include/c++/5/algorithm:62:0,
from bridge.cpp:6:
/usr/include/c++/5/bits/stl_algo.h:4718:5: note: candidate: template<class _RAIter, class _Compare> void std::sort(_RAIter, _RAIter, _Compare)
sort(_RandomAccessIterator __first, _RandomAccessIterator __last,
^
/usr/include/c++/5/bits/stl_algo.h:4718:5: note: template argument deduction/substitution failed:
bridge.cpp: In substitution of 'template<class _RAIter, class _Compare> void std::sort(_RAIter, _RAIter, _Compare) [with _RAIter = int*; _Compare = process2()::<lambda(const int&, const int&)>]':
bridge.cpp:81:6: required from here
bridge.cpp:81:6: error: template argument for 'template<class _RAIter, class _Compare> void std::sort(_RAIter, _RAIter, _Compare)' uses local type 'process2()::<lambda(const int&, const int&)>'
});
^
bridge.cpp:81:6: error: trying to instantiate 'template<class _RAIter, class _Compare> void std::sort(_RAIter, _RAIter, _Compare)'
bridge.cpp: In function 'void input()':
bridge.cpp:41:26: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d%d", &K, &N);
^
bridge.cpp:43:65: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
int x, y; char a, b; scanf(" %c%d %c%d", &a, &x, &b, &y);
^