0_0_20963411_16947.cpp:15:31: error: stray '#' in program
for(i = 1; i <= n; i ++)
^
0_0_20963411_16947.cpp:15:36: error: stray '#' in program
for(i = 1; i <= n; i ++)
^
0_0_20963411_16947.cpp:18:31: error: stray '#' in program
sum[i] = sum[i-1]+num[i];
^
0_0_20963411_16947.cpp:21:31: error: stray '#' in program
for(i = 2; i <= n; i ++)
^
0_0_20963411_16947.cpp:21:36: error: stray '#' in program
for(i = 2; i <= n; i ++)
^
0_0_20963411_16947.cpp:26:46: error: stray '#' in program
while(right[i]<n && num[right[i]+1]>=num[i])
^
0_0_20963411_16947.cpp:27:41: error: stray '#' in program
right[i]=right[right[i]+1];
^
0_0_20963411_16947.cpp:29:26: error: stray '#' in program
for(i=1; i<=n; i++)
^
0_0_20963411_16947.cpp:29:31: error: stray '#' in program
for(i=1; i<=n; i++)
^
0_0_20963411_16947.cpp: In function 'int main()':
0_0_20963411_16947.cpp:15:34: error: expected ')' before ';' token
for(i = 1; i <= n; i ++)
^
0_0_20963411_16947.cpp:15:37: error: lvalue required as unary '&' operand
for(i = 1; i <= n; i ++)
^
0_0_20963411_16947.cpp:15:40: error: expected primary-expression before ')' token
for(i = 1; i <= n; i ++)
^
0_0_20963411_16947.cpp:21:34: error: expected ')' before ';' token
for(i = 2; i <= n; i ++)
^
0_0_20963411_16947.cpp:21:37: error: lvalue required as unary '&' operand
for(i = 2; i <= n; i ++)
^
0_0_20963411_16947.cpp:21:40: error: expected primary-expression before ')' token
for(i = 2; i <= n; i ++)
^
0_0_20963411_16947.cpp:26:49: error: expected ']' before ';' token
while(right[i]<n && num[right[i]+1]>=num[i])
^
0_0_20963411_16947.cpp:26:49: error: expected ')' before ';' token
0_0_20963411_16947.cpp:26:51: error: expected ';' before ']' token
while(right[i]<n && num[right[i]+1]>=num[i])
^
0_0_20963411_16947.cpp:27:46: error: expected ';' before ']' token
right[i]=right[right[i]+1];
^
0_0_20963411_16947.cpp:29:29: error: expected ')' before ';' token
for(i=1; i<=n; i++)
^
0_0_20963411_16947.cpp:29:32: error: lvalue required as unary '&' operand
for(i=1; i<=n; i++)
^
0_0_20963411_16947.cpp:29:35: error: expected primary-expression before ')' token
for(i=1; i<=n; i++)
^
|