Problem prefixsums
User Ziwen
Submission Time 2023-11-09 15:45:18
Score 0
Max Time N/A
Max Memory N/A

Compile Error

prefixsums.cpp: In function ‘int32_t main()’:
prefixsums.cpp:6:12: error: ‘sync_with_studio’ is not a member of ‘std::ios_base’
6 | ios_base::sync_with_studio(0); cin.tie(0);
| ^~~~~~~~~~~~~~~~
prefixsums.cpp:15:17: error: expected ‘;’ before ‘<=’ token
15 | for (int i=1, i<=n; i++){
| ^~
| ;
prefixsums.cpp:15:17: error: expected primary-expression before ‘<=’ token
15 | for (int i=1, i<=n; i++){
| ^~
prefixsums.cpp:16:20: error: expected unqualified-id before ‘+’ token
16 | ss[i] = ss[i-1]. + arr[i];
| ^