0_0_35064723_8993.cpp:17:12: error: stray '#' in program
scanf("%d",&T);
^
0_0_35064723_8993.cpp:17:19: error: stray '#' in program
scanf("%d",&T);
^
0_0_35064723_8993.cpp:21:16: error: stray '#' in program
scanf("%d",&n);
^
0_0_35064723_8993.cpp:21:23: error: stray '#' in program
scanf("%d",&n);
^
0_0_35064723_8993.cpp:22:19: error: stray '#' in program
for(int i=0;i<n;i++)
^
0_0_35064723_8993.cpp:24:20: error: stray '#' in program
scanf("%d%d",&a[i].a,&a[i].b);
^
0_0_35064723_8993.cpp:24:29: error: stray '#' in program
scanf("%d%d",&a[i].a,&a[i].b);
^
0_0_35064723_8993.cpp:27:16: error: stray '#' in program
int up=0,ans=0;
^
0_0_35064723_8993.cpp:27:26: error: stray '#' in program
int up=0,ans=0;
^
0_0_35064723_8993.cpp:28:19: error: stray '#' in program
for(int i=0;i<n;i++)
^
0_0_35064723_8993.cpp:30:23: error: stray '#' in program
for(int j=0;j<a[i].b;j++)
^
0_0_35064723_8993.cpp:34:25: error: stray '#' in program
up+=a[i].a;
^
0_0_35064723_8993.cpp:35:26: error: stray '#' in program
ans+=up;
^
0_0_35064723_8993.cpp:39:17: error: stray '#' in program
printf("%d\n",ans);
^
0_0_35064723_8993.cpp:39:9: error: stray '\' in program
printf("%d\n",ans);
^
0_0_35064723_8993.cpp:39:26: error: stray '#' in program
printf("%d\n",ans);
^
0_0_35064723_8993.cpp: In function 'int main()':
0_0_35064723_8993.cpp:17:13: error: lvalue required as unary '&' operand
scanf("%d",&T);
^
0_0_35064723_8993.cpp:17:16: error: expected primary-expression before '%' token
scanf("%d",&T);
^
0_0_35064723_8993.cpp:17:17: error: 'd' was not declared in this scope
scanf("%d",&T);
^
0_0_35064723_8993.cpp:17:23: error: expected primary-expression before ',' token
scanf("%d",&T);
^
0_0_35064723_8993.cpp:21:17: error: lvalue required as unary '&' operand
scanf("%d",&n);
^
0_0_35064723_8993.cpp:21:20: error: expected primary-expression before '%' token
scanf("%d",&n);
^
0_0_35064723_8993.cpp:21:27: error: expected primary-expression before ',' token
scanf("%d",&n);
^
0_0_35064723_8993.cpp:22:18: error: expected ';' before '&' token
for(int i=0;i<n;i++)
^
0_0_35064723_8993.cpp:22:20: error: lvalue required as unary '&' operand
for(int i=0;i<n;i++)
^
0_0_35064723_8993.cpp:22:24: error: expected ')' before ';' token
for(int i=0;i<n;i++)
^
0_0_35064723_8993.cpp:22:25: error: 'i' was not declared in this scope
for(int i=0;i<n;i++)
^
0_0_35064723_8993.cpp:27:15: error: expected initializer before '&' token
int up=0,ans=0;
^
0_0_35064723_8993.cpp:27:22: error: 'ans' was not declared in this scope
int up=0,ans=0;
^
0_0_35064723_8993.cpp:28:18: error: expected ';' before '&' token
for(int i=0;i<n;i++)
^
0_0_35064723_8993.cpp:28:20: error: lvalue required as unary '&' operand
for(int i=0;i<n;i++)
^
0_0_35064723_8993.cpp:28:24: error: expected ')' before ';' token
for(int i=0;i<n;i++)
^
0_0_35064723_8993.cpp:39:18: error: lvalue required as unary '&' operand
printf("%d\n",ans);
^
0_0_35064723_8993.cpp:39:21: error: expected primary-expression before '%' token
printf("%d\n",ans);
^
0_0_35064723_8993.cpp:39:30: error: expected primary-expression before ',' token
printf("%d\n",ans);
^
|