Problem segmenttreebeats
User j0ashhh
Submission Time 2026-02-15 19:52:26
Score 0
Max Time N/A
Max Memory N/A

Compile Error

segmenttreebeats.cpp: In function ‘int sod(int)’:
segmenttreebeats.cpp:10:11: error: a function-definition is not allowed here before ‘{’ token
10 | int main(){
| ^
segmenttreebeats.cpp:34:1: error: expected ‘}’ at end of input
34 | }
| ^
segmenttreebeats.cpp:3:15: note: to match this ‘{’
3 | int sod(int n){
| ^