/in/foo.cc:3:31: warning: overflow in implicit constant conversion [-Woverflow]
int n,a[100000000],opt,que = -1145141919810,add = -1145141919810,cover = -1145141919810;
^~~~~~~~~~~~~
/in/foo.cc:3:52: warning: overflow in implicit constant conversion [-Woverflow]
int n,a[100000000],opt,que = -1145141919810,add = -1145141919810,cover = -1145141919810;
^~~~~~~~~~~~~
/in/foo.cc:3:75: warning: overflow in implicit constant conversion [-Woverflow]
int n,a[100000000],opt,que = -1145141919810,add = -1145141919810,cover = -1145141919810;
^~~~~~~~~~~~~
/in/foo.cc: In function 'int ask(int)':
/in/foo.cc:8:13: error: 'i' was not declared in this scope
return a[i]*que + add;
^
/in/foo.cc:9:12: error: 'i' was not declared in this scope
return a[i] * que;
^
/in/foo.cc:11:11: error: 'i' was not declared in this scope
return a[i];
^
/in/foo.cc: In function 'int main()':
/in/foo.cc:14:13: error: expected primary-expression before '%' token
scanf("%d",%n);
^
/in/foo.cc:15:14: error: 'q' was not declared in this scope
scanf("%d",&q);
^
/in/foo.cc:18:10: error: expected '(' before 'opt'
switch opt:
^~~
/in/foo.cc:20:3: error: case label '2' not within a switch statement
case 2:scanf("%d",&v),add = v;break;
^~~~
/in/foo.cc:20:22: error: 'v' was not declared in this scope
case 2:scanf("%d",&v),add = v;break;
^
/in/foo.cc:21:3: error: case label '3' not within a switch statement
case 3:scanf("%d",&v),que = v;break;
^~~~
/in/foo.cc:22:3: error: case label '4' not within a switch statement
case 4:scanf("%d",&v),cover = v;break;
^~~~
/in/foo.cc:23:3: error: case label '5' not within a switch statement
case 5:scanf("%d",&v),printf("%d",ask(v));break;
^~~~
/in/foo.cc:25:1: error: expected '}' at end of input
}
^