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:47:24: error: 'posbysum' was not declared in this scope
vector<int>& posv = posbysum[sumi];
^
UV.cpp:56:25: error: 'posbysum' was not declared in this scope
vector<int>& posv = posbysum[sumi];
^
UV.cpp:57:5: warning: 'auto' changes meaning in C++11; please remove it [-Wc++0x-compat]
auto it = posv.begin() + nxtp[j];
^
UV.cpp:57:10: error: 'it' does not name a type
auto it = posv.begin() + nxtp[j];
^
UV.cpp:58:12: error: 'it' was not declared in this scope
while (it != posv.end()) {
^
UV.cpp:66: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:71:17: warning: range-based 'for' loops only available with -std=c++11 or -std=gnu++11
for (int cnt : cand) {
^
UV.cpp:74:20: error: '>>' should be '> >' within a nested template argument list
vector<vector<int>> idxs(n + 1);
^
UV.cpp:75:20: error: '>>' should be '> >' within a nested template argument list
vector<vector<int>> sum1(n + 1), prefix(n + 1);
^
UV.cpp:81:14: error: 'posbysum' was not declared in this scope
idxs[k] = posbysum[ss];
^
UV.cpp:86:22: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for (int j = 0; j < idxs[k].size(); ++j) {
^
UV.cpp:87:14: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
while (p < idxs[k - 1].size() && idxs[k - 1][p] < idxs[k][j]) {
^
UV.cpp:98: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]);
^