Problem | combostacking |
---|---|
User | blackscreen1 |
Submission Time | 2025-08-15 21:46:20 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
combostacking.cpp: In function ‘int main()’:
combostacking.cpp:42:2: error: expected ‘;’ before ‘if’
42 | if (c == 1) cout << m*(m+1)/2;
| ^~
combostacking.cpp:43:2: error: ‘else’ without a previous ‘if’
43 | else cout << (n/(m+1))*(m*(m+1)/2) + ((n%(m+1))*((n%(m+1))+1)/2);
| ^~~~