Problem | ssoca |
---|---|
User | EliteCollapseZ |
Submission Time | 2024-12-11 11:16:19 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
ssoca.cpp: In function ‘int main()’:
ssoca.cpp:26:21: error: missing template arguments before ‘)’ token
26 | for (int num: array){
| ^
ssoca.cpp:39:7: error: expected primary-expression before ‘if’
39 | if (if count > N){
| ^~
ssoca.cpp:39:7: error: expected ‘)’ before ‘if’
39 | if (if count > N){
| ~^~
| )
ssoca.cpp:45:50: error: expected ‘;’ before ‘long’
45 | sum += sumOfArray * ((count - firstCount) / N) //calculate repeated ones
| ^
| ;
ssoca.cpp:48:36: error: ‘firstcount’ was not declared in this scope; did you mean ‘firstCount’?
48 | for (int i = 0; i < count % N - firstcount; i++){
| ^~~~~~~~~~
| firstCount
ssoca.cpp:55:1: error: expected