F.A.Q
Hand In Hand
Online Acmers
Problem Archive
Realtime Judge Status
Authors Ranklist
 
     C/C++/Java Exams     
ACM Steps
Go to Job
Contest LiveCast
ICPC@China
Best Coder beta
VIP | STD Contests
    DIY | Web-DIY beta
Author ID 
Password 
 Register new ID

View Compilation Error

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)));    }}
                                                                                                                                                                                                                                                                                                                                                                ^


Hangzhou Dianzi University Online Judge 3.0
Copyright © 2005-2024 HDU ACM Team. All Rights Reserved.
Designer & Developer : Wang Rongtao LinLe GaoJie GanLu
Total 0.000000(s) query 1, Server time : 2024-11-26 09:25:03, Gzip enabled