Submission #385123


Source Code Expand

int main(int argc, char* argv[])
{
        int X, Y;

        scanf("%d %d", &X, &Y);

        if( 
                        !(
                                (0 < X) && (X < 1e9) 
                                &&
                                (0 < Y) && (Y < 1e9) 
                                &&
                                (X != Y)
                         )
          )
        {
                printf("error\n");
                exit(EXIT_FAILURE);
        }


        if(X > Y)       {printf("%d\n", X);}
        else            {printf("%d\n", Y);}

        return 0;
}

Submission Info

Submission Time
Task A - 正直者
User mingori3
Language C++ (G++ 4.6.4)
Score 0
Code Size 615 Byte
Status CE

Compile Error

./Main.cpp: In function ‘int main(int, char**)’:
./Main.cpp:5:30: error: ‘scanf’ was not declared in this scope
./Main.cpp:17:33: error: ‘printf’ was not declared in this scope
./Main.cpp:18:22: error: ‘EXIT_FAILURE’ was not declared in this scope
./Main.cpp:18:34: error: ‘exit’ was not declared in this scope
./Main.cpp:22:42: error: ‘printf’ was not declared in this scope
./Main.cpp:23:42: error: ‘printf’ was not declared in this scope