Submission #423817


Source Code Expand

    #include <stdio.h>
     
    int Main(){
    	long x , y ,ans;
    	scanf("%d %d",&x, &y);
    	if(x>y ){
    	ans = x;
    	}else{
    	ans = y
    	}
    	
    	printf("%d\n",ans);
    	return 0;
    }

Submission Info

Submission Time
Task A - 正直者
User miccchi
Language C (GCC 4.6.4)
Score 0
Code Size 222 Byte
Status CE

Compile Error

./Main.c: In function ‘Main’:
./Main.c:5:6: warning: format ‘%d’ expects argument of type ‘int *’, but argument 2 has type ‘long int *’ [-Wformat]
./Main.c:5:6: warning: format ‘%d’ expects argument of type ‘int *’, but argument 3 has type ‘long int *’ [-Wformat]
./Main.c:10:6: error: expected ‘;’ before ‘}’ token
./Main.c:12:6: warning: format ‘%d’ expects argument of type ‘int’, but argument 2 has type ‘long int’ [-Wformat]
./Main.c:5:11: warning: ignoring return value of ‘scanf’, declared with attribute warn_unused_result [-Wunused-result]