0_0_33984461_25428.cpp:3:22: error: expected initializer before 'll'
typedef long long ll ll;
^
0_0_33984461_25428.cpp:4:7: error: 'll' does not name a type
const ll N = 1e6+5;
^
0_0_33984461_25428.cpp:5:1: error: 'll' does not name a type
ll prime[N],vis[N];
^
0_0_33984461_25428.cpp:6:1: error: 'll' does not name a type
ll cnt;
^
0_0_33984461_25428.cpp: In function 'void init()':
0_0_33984461_25428.cpp:8:6: error: 'll' was not declared in this scope
for(ll i=2;i<=sqrt(N);i++){
^
0_0_33984461_25428.cpp:8:13: error: 'i' was not declared in this scope
for(ll i=2;i<=sqrt(N);i++){
^
0_0_33984461_25428.cpp:8:21: error: 'N' was not declared in this scope
for(ll i=2;i<=sqrt(N);i++){
^
0_0_33984461_25428.cpp:9:6: error: 'vis' was not declared in this scope
if(vis[i]==0){
^
0_0_33984461_25428.cpp:10:4: error: 'prime' was not declared in this scope
prime[cnt++]=i;
^
0_0_33984461_25428.cpp:10:10: error: 'cnt' was not declared in this scope
prime[cnt++]=i;
^
0_0_33984461_25428.cpp:11:11: error: expected ';' before 'j'
for(ll j=i*i;j<N;j+=i){
^
0_0_33984461_25428.cpp:11:17: error: 'j' was not declared in this scope
for(ll j=i*i;j<N;j+=i){
^
0_0_33984461_25428.cpp: In function 'int main()':
0_0_33984461_25428.cpp:20:5: error: 'll' was not declared in this scope
ll t,n,pnum,num,ans,flag;
^
0_0_33984461_25428.cpp:22:10: error: 't' was not declared in this scope
cin>>t;
^
0_0_33984461_25428.cpp:24:11: error: 'n' was not declared in this scope
cin>>n;
^
0_0_33984461_25428.cpp:25:3: error: 'ans' was not declared in this scope
ans=0;
^
0_0_33984461_25428.cpp:26:13: error: expected ';' before 'i'
for(ll i=0;i<n;i++){
^
0_0_33984461_25428.cpp:26:17: error: 'i' was not declared in this scope
for(ll i=0;i<n;i++){
^
0_0_33984461_25428.cpp:27:12: error: 'num' was not declared in this scope
cin>>num;
^
0_0_33984461_25428.cpp:28:7: error: 'pnum' was not declared in this scope
pnum=0;
^
0_0_33984461_25428.cpp:30:8: error: 'flag' was not declared in this scope
flag=1;
^
0_0_33984461_25428.cpp:33:12: error: 'flag' was not declared in this scope
else flag=0;
^
0_0_33984461_25428.cpp:34:14: error: expected ';' before 'j'
for(ll j=0;prime[j]*prime[j]<=num;j++){
^
0_0_33984461_25428.cpp:34:18: error: 'prime' was not declared in this scope
for(ll j=0;prime[j]*prime[j]<=num;j++){
^
0_0_33984461_25428.cpp:34:24: error: 'j' was not declared in this scope
for(ll j=0;prime[j]*prime[j]<=num;j++){
^
0_0_33984461_25428.cpp:42:15: error: 'flag' was not declared in this scope
ans^=(pnum+flag);
^
|