0_0_17181801_20656.cpp: In function 'int main()':
0_0_17181801_20656.cpp:12:16: error: 'sim' was not declared in this scope
sum[i]=a[i]+sim[i-1];
^
0_0_17181801_20656.cpp:27:3: error: expected primary-expression before 'for'
for(int j=1; j<=m; j++) {
^
0_0_17181801_20656.cpp:27:16: error: 'j' was not declared in this scope
for(int j=1; j<=m; j++) {
^
|