Submission #1792409


Source Code Expand

main(a,b,c,d){scanf("%d%d%d%d",&a,&b,&c,&d);printf("%d",a*b>c*d?a*b:c*d);}

Submission Info

Submission Time
Task A - Two Rectangles
User riantkb
Language C (GCC 5.4.1)
Score 100
Code Size 74 Byte
Status AC
Exec Time 1 ms
Memory 128 KB

Compile Error

./Main.c:1:1: warning: return type defaults to ‘int’ [-Wimplicit-int]
 main(a,b,c,d){scanf("%d%d%d%d",&a,&b,&c,&d);printf("%d",a*b>c*d?a*b:c*d);}
 ^
./Main.c: In function ‘main’:
./Main.c:1:1: warning: type of ‘a’ defaults to ‘int’ [-Wimplicit-int]
./Main.c:1:1: warning: type of ‘b’ defaults to ‘int’ [-Wimplicit-int]
./Main.c:1:1: warning: type of ‘c’ defaults to ‘int’ [-Wimplicit-int]
./Main.c:1:1: warning: type of ‘d’ defaults to ‘int’ [-Wimplicit-int]
./Main.c:1:15: warning: implicit declaration of function ‘scanf’ [-Wimplicit-function-declaration]
 main(a,b,c,d){scanf("%d%d%d%d",&a,&b,&c,&d);printf("%d",a*b>c*d?a*b:c*d);}
               ^
./Main.c:1:15: warning: incompatible implicit declaration of built-in function ‘scanf’
./Main.c:1:15: note: include ‘<stdio.h>’ or provide a declaration of ‘scanf’
./Main.c:1:45: warning: implicit declaration of function ‘printf’ [-Wimplicit-function-declaration]
 main(a,b,c,d){scanf("%d%d%d%d",&a,&b,&c,&d);printf("%d",a*b>c*d?a*b:c*d);}
                                 ...

Judge Result

Set Name Sample All
Score / Max Score 0 / 0 100 / 100
Status
AC × 2
AC × 10
Set Name Test Cases
Sample sample_01.txt, sample_02.txt
All sample_01.txt, sample_02.txt, subtask_1_abmax_01.txt, subtask_1_allmax_01.txt, subtask_1_cdmax_01.txt, subtask_1_rand_01.txt, subtask_1_rand_02.txt, subtask_1_rand_03.txt, subtask_1_same_01.txt, subtask_1_same_02.txt
Case Name Status Exec Time Memory
sample_01.txt AC 1 ms 128 KB
sample_02.txt AC 1 ms 128 KB
subtask_1_abmax_01.txt AC 1 ms 128 KB
subtask_1_allmax_01.txt AC 1 ms 128 KB
subtask_1_cdmax_01.txt AC 1 ms 128 KB
subtask_1_rand_01.txt AC 1 ms 128 KB
subtask_1_rand_02.txt AC 1 ms 128 KB
subtask_1_rand_03.txt AC 1 ms 128 KB
subtask_1_same_01.txt AC 1 ms 128 KB
subtask_1_same_02.txt AC 1 ms 128 KB