Problem prefixsums
User Shreyas123456789
Submission Time 2026-10-12 16:44:27
Score 0
Max Time N/A
Max Memory N/A

Compile Error

prefixsums.cpp: In function ‘int main()’:
prefixsums.cpp:2:67: error: expected initializer before ‘.’ token
2 | #define int long long x.push_back(v);
| ^
prefixsums.cpp:6:2: note: in expansion of macro ‘int’
6 | int n,a,s=0,q;
| ^~~
prefixsums.cpp:6:6: error: ‘n’ was not declared in this scope; did you mean ‘yn’?
6 | int n,a,s=0,q;
| ^
| yn
prefixsums.cpp:6:8: error: ‘a’ was not declared in this scope
6 | int n,a,s=0,q;
| ^
prefixsums.cpp:6:10: error: ‘s’ was not declared in this scope
6 | int n,a,s=0,q;
| ^
prefixsums.cpp:6:14: error: ‘q’ was not declared in this scope
6 | int n,a,s=0,q;
| ^
prefixsums.cpp:2:79: error: template argument 1 is invalid
2 | #define int long long