Problem sum
User mofumofu
Submission Time 2025-07-29 23:43:07
Score 0
Max Time N/A
Max Memory N/A

Compile Error

sum.cpp: In function ‘int main()’:
sum.cpp:4:18: error: request for member ‘begin’ in ‘X’, which is of non-class type ‘int [10000000]’
4 | #define all(x) x.begin(),x.end()
| ^~~~~
sum.cpp:26:20: note: in expansion of macro ‘all’
26 | ll x = accumulate(all(X), 0LL);
| ^~~
sum.cpp:4:28: error: request for member ‘end’ in ‘X’, which is of non-class type ‘int [10000000]’
4 | #define all(x) x.begin(),x.end()
| ^~~
sum.cpp:26:20: note: in expansion of macro ‘all’
26 | ll x = accumulate(all(X), 0LL);
| ^~~
sum.cpp:4:18: error: request for member ‘begin’ in ‘Y’, which is of non-class type ‘int [10000000]’
4 | #define all(x) x.begin(),x.end()
| ^~~~~
sum.cpp:27:20: note: in expansion of macro ‘all’
27 | ll y = accumulate(all(Y), 0LL);
| ^~~
sum.cpp:4:28: error: re