0_0_34587159_17379.cpp: In function 'void init()':
0_0_34587159_17379.cpp:16:13: error: 'i' was not declared in this scope
sum[i] = sum[i-1] + i;
^
0_0_34587159_17379.cpp: At global scope:
0_0_34587159_17379.cpp:22:5: error: expected initializer before 'll'
ll ans = 1;
^
0_0_34587159_17379.cpp:23:5: error: expected unqualified-id before 'while'
while(b)
^
0_0_34587159_17379.cpp:29:5: error: expected unqualified-id before 'return'
return ans;
^
0_0_34587159_17379.cpp:30:1: error: expected declaration before '}' token
}
^
|