0_0_35064735_30148.cpp:22:12: error: stray '#' in program
scanf("%d",&t);
^
0_0_35064735_30148.cpp:22:19: error: stray '#' in program
scanf("%d",&t);
^
0_0_35064735_30148.cpp:26:16: error: stray '#' in program
scanf("%d",&n);
^
0_0_35064735_30148.cpp:26:23: error: stray '#' in program
scanf("%d",&n);
^
0_0_35064735_30148.cpp:27:14: error: stray '#' in program
dsum=0;
^
0_0_35064735_30148.cpp:28:14: error: stray '#' in program
temp=0;
^
0_0_35064735_30148.cpp:30:19: error: stray '#' in program
for(int i=1;i<=n;i++)
^
0_0_35064735_30148.cpp:30:28: error: stray '#' in program
for(int i=1;i<=n;i++)
^
0_0_35064735_30148.cpp:32:20: error: stray '#' in program
scanf("%d %d",&c[i].value,&c[i].count);
^
0_0_35064735_30148.cpp:32:30: error: stray '#' in program
scanf("%d %d",&c[i].value,&c[i].count);
^
0_0_35064735_30148.cpp:33:28: error: stray '#' in program
if(c[i].value>=0){temp++;dsum+=c[i].value*c[i].count;}
^
0_0_35064735_30148.cpp:33:48: error: stray '#' in program
if(c[i].value>=0){temp++;dsum+=c[i].value*c[i].count;}
^
0_0_35064735_30148.cpp:35:13: error: stray '#' in program
sum=0;
^
0_0_35064735_30148.cpp:37:12: error: stray '#' in program
tp=1;
^
0_0_35064735_30148.cpp:39:19: error: stray '#' in program
for(int i=n-temp+1;i<=n;i++)
^
0_0_35064735_30148.cpp:39:35: error: stray '#' in program
for(int i=n-temp+1;i<=n;i++)
^
0_0_35064735_30148.cpp:41:18: error: stray '#' in program
sum+=c[i].value*(tp+c[i].count-1+tp)*(c[i].count)/2;
^
0_0_35064735_30148.cpp:42:16: error: stray '#' in program
tp=tp+c[i].count;
^
0_0_35064735_30148.cpp:45:19: error: stray '#' in program
for(int i=n-temp;i>=1;i--)
^
0_0_35064735_30148.cpp:45:33: error: stray '#' in program
for(int i=n-temp;i>=1;i--)
^
0_0_35064735_30148.cpp:48:22: error: stray '#' in program
int test=dsum+c[i].value*c[i].count;
^
0_0_35064735_30148.cpp:52:22: error: stray '#' in program
sum+=dsum*c[i].count+c[i].value*(c[i].count+1)*c[i].count/2;
^
0_0_35064735_30148.cpp:53:22: error: stray '#' in program
dsum=test;
^
0_0_35064735_30148.cpp:56:26: error: stray '#' in program
else if(test==0)
^
0_0_35064735_30148.cpp:56:31: error: stray '#' in program
else if(test==0)
^
0_0_35064735_30148.cpp:58:22: error: stray '#' in program
sum+=dsum*c[i].count+c[i].value*(c[i].count+1)*c[i].count/2;
^
0_0_35064735_30148.cpp:64:27: error: stray '#' in program
for(int j=1;j<=c[i].count;j++)
^
0_0_35064735_30148.cpp:64:36: error: stray '#' in program
for(int j=1;j<=c[i].count;j++)
^
0_0_35064735_30148.cpp:66:43: error: stray '#' in program
if(dsum+c[i].value*j<=0)
^
0_0_35064735_30148.cpp:72:30: error: stray '#' in program
sum+=dsum+c[i].value*j;
^
0_0_35064735_30148.cpp:78:17: error: stray '#' in program
printf("%d\n",sum);
^
0_0_35064735_30148.cpp:78:9: error: stray '\' in program
printf("%d\n",sum);
^
0_0_35064735_30148.cpp:78:26: error: stray '#' in program
printf("%d\n",sum);
^
0_0_35064735_30148.cpp: In function 'int main()':
0_0_35064735_30148.cpp:22:13: error: lvalue required as unary '&' operand
scanf("%d",&t);
^
0_0_35064735_30148.cpp:22:16: error: expected primary-expression before '%' token
scanf("%d",&t);
^
0_0_35064735_30148.cpp:22:17: error: 'd' was not declared in this scope
scanf("%d",&t);
^
0_0_35064735_30148.cpp:22:23: error: expected primary-expression before ',' token
scanf("%d",&t);
^
0_0_35064735_30148.cpp:26:17: error: lvalue required as unary '&' operand
scanf("%d",&n);
^
0_0_35064735_30148.cpp:26:20: error: expected primary-expression before '%' token
scanf("%d",&n);
^
0_0_35064735_30148.cpp:26:27: error: expected primary-expression before ',' token
scanf("%d",&n);
^
0_0_35064735_30148.cpp:30:18: error: expected ';' before '&' token
for(int i=1;i<=n;i++)
^
0_0_35064735_30148.cpp:30:20: error: lvalue required as unary '&' operand
for(int i=1;i<=n;i++)
^
0_0_35064735_30148.cpp:30:24: error: expected ')' before ';' token
for(int i=1;i<=n;i++)
^
0_0_35064735_30148.cpp:30:25: error: 'i' was not declared in this scope
for(int i=1;i<=n;i++)
^
0_0_35064735_30148.cpp:30:29: error: lvalue required as unary '&' operand
for(int i=1;i<=n;i++)
^
0_0_35064735_30148.cpp:39:18: error: expected ';' before '&' token
for(int i=n-temp+1;i<=n;i++)
^
0_0_35064735_30148.cpp:39:20: error: lvalue required as unary '&' operand
for(int i=n-temp+1;i<=n;i++)
^
0_0_35064735_30148.cpp:39:31: error: expected ')' before ';' token
for(int i=n-temp+1;i<=n;i++)
^
0_0_35064735_30148.cpp:39:36: error: lvalue required as unary '&' operand
for(int i=n-temp+1;i<=n;i++)
^
0_0_35064735_30148.cpp:45:18: error: expected ';' before '&' token
for(int i=n-temp;i>=1;i--)
^
0_0_35064735_30148.cpp:45:20: error: lvalue required as unary '&' operand
for(int i=n-temp;i>=1;i--)
^
0_0_35064735_30148.cpp:45:29: error: expected ')' before ';' token
for(int i=n-temp;i>=1;i--)
^
0_0_35064735_30148.cpp:45:34: error: lvalue required as unary '&' operand
for(int i=n-temp;i>=1;i--)
^
0_0_35064735_30148.cpp:78:18: error: lvalue required as unary '&' operand
printf("%d\n",sum);
^
0_0_35064735_30148.cpp:78:21: error: expected primary-expression before '%' token
printf("%d\n",sum);
^
0_0_35064735_30148.cpp:78:30: error: expected primary-expression before ',' token
printf("%d\n",sum);
^
|