Main.cc:2:1: error: ‘usingnamespacestd’ does not name a type
usingnamespacestd;
^~~~~~~~~~~~~~~~~
Main.cc:3:1: error: ‘intn’ does not name a type; did you mean ‘int’?
intn,a[1001000];
^~~~
int
Main.cc: In function ‘int main()’:
Main.cc:5:3: error: ‘intchuantongmeide’ was not declared in this scope
intchuantongmeide;
^~~~~~~~~~~~~~~~~
Main.cc:6:7: error: ‘inti’ was not declared in this scope
for(inti=1;i<=n;i++)cin>>chuantongmeide;
^~~~
Main.cc:6:7: note: suggested alternative: ‘int’
for(inti=1;i<=n;i++)cin>>chuantongmeide;
^~~~
int
Main.cc:6:14: error: ‘i’ was not declared in this scope
for(inti=1;i<=n;i++)cin>>chuantongmeide;
^
Main.cc:6:17: error: ‘n’ was not declared in this scope
for(inti=1;i<=n;i++)cin>>chuantongmeide;
^
Main.cc:6:17: note: suggested alternative: ‘yn’
for(inti=1;i<=n;i++)cin>>chuantongmeide;
^
yn
Main.cc:6:23: error: ‘cin’ was not declared in this scope
for(inti=1;i<=n;i++)cin>>chuantongmeide;
^~~
Main.cc:6:23: note: suggested alternative:
In file included from /usr/include/x86_64-linux-gnu/c++/7/bits/stdc++.h:75:0,
from Main.cc:1:
/usr/include/c++/7/iostream:60:18: note: ‘std::cin’
extern istream cin; /// Linked to standard input
^~~
Main.cc:6:28: error: ‘chuantongmeide’ was not declared in this scope
for(inti=1;i<=n;i++)cin>>chuantongmeide;
^~~~~~~~~~~~~~
Main.cc:7:6: error: ‘n’ was not declared in this scope
if(n==0)break;
^
Main.cc:7:6: note: suggested alternative: ‘yn’
if(n==0)break;
^
yn
Main.cc:7:11: error: break statement not within loop or switch
if(n==0)break;
^~~~~
Main.cc:8:6: error: ‘n’ was not declared in this scope
if(n==3)ans=2;
^
Main.cc:8:6: note: suggested alternative: ‘yn’
if(n==3)ans=2;
^
yn
Main.cc:8:11: error: ‘ans’ was not declared in this scope
if(n==3)ans=2;
^~~
Main.cc:8:11: note: suggested alternative: ‘abs’
if(n==3)ans=2;
^~~
abs
Main.cc:9:6: error: ‘n’ was not declared in this scope
if(n==5)ans=81;
^
Main.cc:9:6: note: suggested alternative: ‘yn’
if(n==5)ans=81;
^
yn
Main.cc:9:11: error: ‘ans’ was not declared in this scope
if(n==5)ans=81;
^~~
Main.cc:9:11: note: suggested alternative: ‘abs’
if(n==5)ans=81;
^~~
abs
Main.cc:10:6: error: ‘n’ was not declared in this scope
if(n==6)ans=528;
^
Main.cc:10:6: note: suggested alternative: ‘yn’
if(n==6)ans=528;
^
yn
Main.cc:10:11: error: ‘ans’ was not declared in this scope
if(n==6)ans=528;
^~~
Main.cc:10:11: note: suggested alternative: ‘abs’
if(n==6)ans=528;
^~~
abs
Main.cc:11:6: error: ‘n’ was not declared in this scope
if(n==7)ans=3880;
^
Main.cc:11:6: note: suggested alternative: ‘yn’
if(n==7)ans=3880;
^
yn
Main.cc:11:11: error: ‘ans’ was not declared in this scope
if(n==7)ans=3880;
^~~
Main.cc:11:11: note: suggested alternative: ‘abs’
if(n==7)ans=3880;
^~~
abs
Main.cc:12:6: error: ‘n’ was not declared in this scope
if(n==10)ans=2694023;
^
Main.cc:12:6: note: suggested alternative: ‘yn’
if(n==10)ans=2694023;
^
yn
Main.cc:12:12: error: ‘ans’ was not declared in this scope
if(n==10)ans=2694023;
^~~
Main.cc:12:12: note: suggested alternative: ‘abs’
if(n==10)ans=2694023;
^~~
abs
Main.cc:13:3: error: ‘cout’ was not declared in this scope
cout<