In file included from /usr/include/c++/5/unordered_map:35:0,
from UV.cpp:4:
/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 \
^
UV.cpp: In function 'int main()':
UV.cpp:26:2: error: 'unordered_map' was not declared in this scope
unordered_map<long long, vector<int>> posbysum;
^
UV.cpp:26:16: error: expected primary-expression before 'long'
unordered_map<long long, vector<int>> posbysum;
^
UV.cpp:28:3: error: 'posbysum' was not declared in this scope
posbysum[sum[i]];
^
UV.cpp:48:25: error: 'posbysum' was not declared in this scope
vector<int>& posv = posbysum[sumi];
^
UV.cpp:49:5: warning: 'auto' changes meaning in C++11; please remove it [-Wc++0x-compat]
auto it = upper_bound(posv.begin(), posv.end(), j);
^
UV.cpp:49:10: error: 'it' does not name a type
auto it = upper_bound(posv.begin(), posv.end(), j);
^
UV.cpp:50:12: error: 'it' was not declared in this scope
while (it != posv.end()) {
^
UV.cpp:58:27: warning: format '%d' expects argument of type 'int', but argument 2 has type 'long long int' [-Wformat=]
printf("%d\n", ans % MOD);
^
UV.cpp:63:17: warning: range-based 'for' loops only available with -std=c++11 or -std=gnu++11
for (int cnt : cand) {
^
UV.cpp:70:25: error: 'posbysum' was not declared in this scope
vector<int>& posv = posbysum[sumi];
^
UV.cpp:71:5: warning: 'auto' changes meaning in C++11; please remove it [-Wc++0x-compat]
auto it = upper_bound(posv.begin(), posv.end(), j);
^
UV.cpp:71:10: error: 'it' does not name a type
auto it = upper_bound(posv.begin(), posv.end(), j);
^
UV.cpp:72:12: error: 'it' was not declared in this scope
while (it != posv.end()) {
^
UV.cpp:81:26: warning: format '%d' expects argument of type 'int', but argument 2 has type 'long long int' [-Wformat=]
printf("%d\n", ans % MOD);
^
UV.cpp:19:17: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d", &n);
^
UV.cpp:21:25: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%lld", &arr[i]);
^