Problem ssoca
User JhoCyber
Submission Time 2025-02-26 11:22:34
Score 0
Max Time N/A
Max Memory N/A

Compile Error

ssoca.cpp: In function ‘int32_t main()’:
ssoca.cpp:17:2: error: expected ‘,’ or ‘;’ before ‘for’
17 | for(int i=1;i<n;i++){
| ^~~
ssoca.cpp:17:14: error: ‘i’ was not declared in this scope
17 | for(int i=1;i<n;i++){
| ^
ssoca.cpp:24:33: error: no match for ‘operator*’ (operand types are ‘long long int’ and ‘std::vector<long long int>’)
24 | int sum=( (m-q+1) / n ) * total_sum , extra=(m-q+1)%n;
| ~~~~~~~~~~~~~~~ ^ ~~~~~~~~~
| | |
| | std::vector<long long int>
| long long int
In file included from /usr/include/c++/9/ccomplex:39,
from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:54,
from ssoca.cpp:1:
/usr/include/c++/9/complex:391:5: note: candidate: ‘template<class _Tp> std::complex<_Tp> std::operat