/in/foo.cc:3:1: error: '__int64' does not name a type
__int64 a[300050];
^~~~~~~
/in/foo.cc:4:1: error: '__int64' does not name a type
__int64 right[300050];
^~~~~~~
/in/foo.cc:5:1: error: '__int64' does not name a type
__int64 left[300050];
^~~~~~~
/in/foo.cc: In function 'int main()':
/in/foo.cc:7:2: error: '__int64' was not declared in this scope
__int64 n,i;
^~~~~~~
/in/foo.cc:8:11: error: expected ';' before 'x'
__int64 x,max;
^
/in/foo.cc:9:17: error: 'n' was not declared in this scope
scanf("%I64d",&n);
^
/in/foo.cc:10:9: error: 'a' was not declared in this scope
memset(a,0,sizeof(a));
^
/in/foo.cc:11:7: error: 'i' was not declared in this scope
for (i=1;i<=n;i++) scanf("%I64d",&a[i]);
^
/in/foo.cc:13:9: error: 'left' was not declared in this scope
memset(left,0,sizeof(left));
^~~~
/in/foo.cc:14:9: error: 'right' was not declared in this scope
memset(right,0,sizeof(right));
^~~~~
/in/foo.cc:16:7: error: 'i' was not declared in this scope
for (i=2;i<=n;i++) {
^
/in/foo.cc:17:3: error: 'x' was not declared in this scope
x=i-1;
^
/in/foo.cc:22:7: error: 'i' was not declared in this scope
for (i=n-1;i>=1;i--){
^
/in/foo.cc:23:3: error: 'x' was not declared in this scope
x=i+1;
^
/in/foo.cc:27:2: error: 'max' was not declared in this scope
max=0;
^~~
/in/foo.cc:28:7: error: 'i' was not declared in this scope
for (i=1;i<=n;i++) {
^
/in/foo.cc:34:7: error: 'i' was not declared in this scope
for (i=2;i<=n;i++) {
^
/in/foo.cc:35:3: error: 'x' was not declared in this scope
x=i-1;
^
/in/foo.cc:40:7: error: 'i' was not declared in this scope
for (i=n-1;i>=1;i--){
^
/in/foo.cc:41:3: error: 'x' was not declared in this scope
x=i+1;
^
/in/foo.cc:45:7: error: 'i' was not declared in this scope
for (i=1;i<=n;i++) {
^