0_0_35064717_6900.cpp:13:12: error: stray '#' in program
scanf("%d",&T);
^
0_0_35064717_6900.cpp:13:19: error: stray '#' in program
scanf("%d",&T);
^
0_0_35064717_6900.cpp:15:16: error: stray '#' in program
scanf("%d",&n);
^
0_0_35064717_6900.cpp:15:23: error: stray '#' in program
scanf("%d",&n);
^
0_0_35064717_6900.cpp:16:19: error: stray '#' in program
for(int i=1;i<=n;i++) scanf("%d%d",&a[i].val,&a[i].cnt);
^
0_0_35064717_6900.cpp:16:28: error: stray '#' in program
for(int i=1;i<=n;i++) scanf("%d%d",&a[i].val,&a[i].cnt);
^
0_0_35064717_6900.cpp:16:46: error: stray '#' in program
for(int i=1;i<=n;i++) scanf("%d%d",&a[i].val,&a[i].cnt);
^
0_0_35064717_6900.cpp:16:55: error: stray '#' in program
for(int i=1;i<=n;i++) scanf("%d%d",&a[i].val,&a[i].cnt);
^
0_0_35064717_6900.cpp:18:14: error: stray '#' in program
top = 0;
^
0_0_35064717_6900.cpp:19:14: error: stray '#' in program
ans = 0;
^
0_0_35064717_6900.cpp:20:14: error: stray '#' in program
now = 0;
^
0_0_35064717_6900.cpp:21:19: error: stray '#' in program
for(int i=1;i<=n;i++){
^
0_0_35064717_6900.cpp:21:28: error: stray '#' in program
for(int i=1;i<=n;i++){
^
0_0_35064717_6900.cpp:22:23: error: stray '#' in program
for(int j=1;j<=a[i].cnt;j++){
^
0_0_35064717_6900.cpp:22:32: error: stray '#' in program
for(int j=1;j<=a[i].cnt;j++){
^
0_0_35064717_6900.cpp:23:27: error: stray '#' in program
c[++top] = a[i].val;
^
0_0_35064717_6900.cpp:24:23: error: stray '#' in program
ans += a[i].val*top;
^
0_0_35064717_6900.cpp:25:23: error: stray '#' in program
now += a[i].val;
^
0_0_35064717_6900.cpp:28:14: error: stray '#' in program
tmp = ans;
^
0_0_35064717_6900.cpp:29:19: error: stray '#' in program
for(int i=1;i<=top;i++){
^
0_0_35064717_6900.cpp:29:28: error: stray '#' in program
for(int i=1;i<=top;i++){
^
0_0_35064717_6900.cpp:30:22: error: stray '#' in program
if(c[i]>=0) break;
^
0_0_35064717_6900.cpp:31:19: error: stray '#' in program
tmp -= now;
^
0_0_35064717_6900.cpp:32:19: error: stray '#' in program
now -= c[i];
^
0_0_35064717_6900.cpp:33:32: error: stray '#' in program
if(tmp > ans) ans = tmp;
^
0_0_35064717_6900.cpp: In function 'bool comp(node, node)':
0_0_35064717_6900.cpp:9:26: error: expected primary-expression before '<' token
bool comp(node a,node b){<!-- -->return a.val<b.val;}
^
0_0_35064717_6900.cpp:9:33: error: expected primary-expression before '>' token
bool comp(node a,node b){<!-- -->return a.val<b.val;}
^
0_0_35064717_6900.cpp:9:34: error: expected primary-expression before 'return'
bool comp(node a,node b){<!-- -->return a.val<b.val;}
^
0_0_35064717_6900.cpp: In function 'int main()':
0_0_35064717_6900.cpp:13:13: error: lvalue required as unary '&' operand
scanf("%d",&T);
^
0_0_35064717_6900.cpp:13:16: error: expected primary-expression before '%' token
scanf("%d",&T);
^
0_0_35064717_6900.cpp:13:17: error: 'd' was not declared in this scope
scanf("%d",&T);
^
0_0_35064717_6900.cpp:13:23: error: expected primary-expression before ',' token
scanf("%d",&T);
^
0_0_35064717_6900.cpp:15:17: error: lvalue required as unary '&' operand
scanf("%d",&n);
^
0_0_35064717_6900.cpp:15:20: error: expected primary-expression before '%' token
scanf("%d",&n);
^
0_0_35064717_6900.cpp:15:27: error: expected primary-expression before ',' token
scanf("%d",&n);
^
0_0_35064717_6900.cpp:16:18: error: expected ';' before '&' token
for(int i=1;i<=n;i++) scanf("%d%d",&a[i].val,&a[i].cnt);
^
0_0_35064717_6900.cpp:16:20: error: lvalue required as unary '&' operand
for(int i=1;i<=n;i++) scanf("%d%d",&a[i].val,&a[i].cnt);
^
0_0_35064717_6900.cpp:16:24: error: expected ')' before ';' token
for(int i=1;i<=n;i++) scanf("%d%d",&a[i].val,&a[i].cnt);
^
0_0_35064717_6900.cpp:16:25: error: 'i' was not declared in this scope
for(int i=1;i<=n;i++) scanf("%d%d",&a[i].val,&a[i].cnt);
^
0_0_35064717_6900.cpp:16:29: error: lvalue required as unary '&' operand
for(int i=1;i<=n;i++) scanf("%d%d",&a[i].val,&a[i].cnt);
^
0_0_35064717_6900.cpp:16:50: error: expected primary-expression before '%' token
for(int i=1;i<=n;i++) scanf("%d%d",&a[i].val,&a[i].cnt);
^
0_0_35064717_6900.cpp:16:59: error: expected primary-expression before ',' token
for(int i=1;i<=n;i++) scanf("%d%d",&a[i].val,&a[i].cnt);
^
0_0_35064717_6900.cpp:21:18: error: expected ';' before '&' token
for(int i=1;i<=n;i++){
^
0_0_35064717_6900.cpp:21:20: error: lvalue required as unary '&' operand
for(int i=1;i<=n;i++){
^
0_0_35064717_6900.cpp:21:24: error: expected ')' before ';' token
for(int i=1;i<=n;i++){
^
0_0_35064717_6900.cpp:21:29: error: lvalue required as unary '&' operand
for(int i=1;i<=n;i++){
^
0_0_35064717_6900.cpp:29:18: error: expected ';' before '&' token
for(int i=1;i<=top;i++){
^
0_0_35064717_6900.cpp:29:20: error: lvalue required as unary '&' operand
for(int i=1;i<=top;i++){
^
0_0_35064717_6900.cpp:29:24: error: expected ')' before ';' token
for(int i=1;i<=top;i++){
^
0_0_35064717_6900.cpp:29:29: error: lvalue required as unary '&' operand
for(int i=1;i<=top;i++){
^
|