examination.cpp: In function 'void solve(int, int)':
examination.cpp:46:10: error: use of 'auto' in lambda parameter declaration only available with -std=c++14 or -std=gnu++14
[&] (auto i, auto j) {
^~~~
examination.cpp:46:18: error: use of 'auto' in lambda parameter declaration only available with -std=c++14 or -std=gnu++14
[&] (auto i, auto j) {
^~~~
examination.cpp: In function 'int main()':
examination.cpp:67:8: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d %d", &n, &q);
~~~~~^~~~~~~~~~~~~~~~~
examination.cpp:73:10: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d %d", &a[i].x, &a[i].y);
~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~
examination.cpp:80:10: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d %d %d", &a[i].x, &a[i].y, &a[i].z);
~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~