0_0_27796994_26482.cpp: In function 'long long int comf(long long int)':
0_0_27796994_26482.cpp:6:8: error: 'k' was not declared in this scope
if(k%2==0)
^
0_0_27796994_26482.cpp: In function 'long long int sum(long long int)':
0_0_27796994_26482.cpp:35:14: error: 'k' was not declared in this scope
ans*=k;
^
0_0_27796994_26482.cpp: In function 'long long int f(long long int)':
0_0_27796994_26482.cpp:55:20: error: 'k' was not declared in this scope
while((temp-1)/k>0)
^
0_0_27796994_26482.cpp:63:8: error: 'k' was not declared in this scope
rn=k-temp;
^
0_0_27796994_26482.cpp: In function 'int main()':
0_0_27796994_26482.cpp:82:190: error: 'scanf' was not declared in this scope
int test=0;int main(){ /*test long long int ans=0; for(int i=1;i<=10000;i++) { ans=ans^i; printf("%d %lld\n",i,ans); } */ scanf("%d",&test); while(test--) { scanf("%lld%lld",&n,&k); if(k!=1)printf("%lld\n",f(n)); else printf("%lld\n",n%4==1?1:(n%4==2?n+1:(n%4==3?0:n))); }}
^
0_0_27796994_26482.cpp:82:243: error: 'n' was not declared in this scope
int test=0;int main(){ /*test long long int ans=0; for(int i=1;i<=10000;i++) { ans=ans^i; printf("%d %lld\n",i,ans); } */ scanf("%d",&test); while(test--) { scanf("%lld%lld",&n,&k); if(k!=1)printf("%lld\n",f(n)); else printf("%lld\n",n%4==1?1:(n%4==2?n+1:(n%4==3?0:n))); }}
^
0_0_27796994_26482.cpp:82:246: error: 'k' was not declared in this scope
int test=0;int main(){ /*test long long int ans=0; for(int i=1;i<=10000;i++) { ans=ans^i; printf("%d %lld\n",i,ans); } */ scanf("%d",&test); while(test--) { scanf("%lld%lld",&n,&k); if(k!=1)printf("%lld\n",f(n)); else printf("%lld\n",n%4==1?1:(n%4==2?n+1:(n%4==3?0:n))); }}
^
0_0_27796994_26482.cpp:82:286: error: 'printf' was not declared in this scope
int test=0;int main(){ /*test long long int ans=0; for(int i=1;i<=10000;i++) { ans=ans^i; printf("%d %lld\n",i,ans); } */ scanf("%d",&test); while(test--) { scanf("%lld%lld",&n,&k); if(k!=1)printf("%lld\n",f(n)); else printf("%lld\n",n%4==1?1:(n%4==2?n+1:(n%4==3?0:n))); }}
^
0_0_27796994_26482.cpp:82:352: error: 'printf' was not declared in this scope
int test=0;int main(){ /*test long long int ans=0; for(int i=1;i<=10000;i++) { ans=ans^i; printf("%d %lld\n",i,ans); } */ scanf("%d",&test); while(test--) { scanf("%lld%lld",&n,&k); if(k!=1)printf("%lld\n",f(n)); else printf("%lld\n",n%4==1?1:(n%4==2?n+1:(n%4==3?0:n))); }}
^
|