In file included from /usr/include/c++/4.9/tuple:35:0,
from P2.cpp:2:
/usr/include/c++/4.9/bits/c++0x_warning.h:32:2: error: #error This file requires compiler and library support for the ISO C++ 2011 standard. This support is currently experimental, and must be enabled with the -std=c++11 or -std=gnu++11 compiler options.
#error This file requires compiler and library support for the \
^
P2.cpp:6:1: error: ‘tuple’ does not name a type
tuple<long long, long long, long long> extended_gcd(long long a, long long b)
^
P2.cpp: In function ‘long long int inverse(long long int)’:
P2.cpp:23:5: warning: ‘auto’ changes meaning in C++11; please remove it [-Wc++0x-compat]
auto r = extended_gcd(a, mod);
^
P2.cpp:23:10: error: ‘r’ does not name a type
auto r = extended_gcd(a, mod);
^
P2.cpp:24:9: error: ‘get’ was not declared in this scope
if (get<0>(r) != 1) return -1;
^
P2.cpp:24:16: error: ‘r’ was not declared in this scope
if (get<0>(r) != 1) return -1;
^
P2.cpp:25:12: error: ‘get’ was not declared in this scope
return get<1>(r);
^
P2.cpp:25:19: error: ‘r’ was not declared in this scope
return get<1>(r);
^
P2.cpp:26:1: warning: control reaches end of non-void function [-Wreturn-type]
}
^