/ SeriousOJ /

Record Detail

Compile Error

foo.c: In function 'main':
foo.c:15:21: error: expected ';' before 'return'
   15 |     printf("%d\n",j)
      |                     ^
      |                     ;
......
   18 |     return 0;
      |     ~~~~~~           

Code

#include <stdio.h>
#include<math.h>

int main() {
    int a,b,c,d,e,f,g,h,i,j;
    scanf("%d %d %d %d",&a,&b,&c,&d);
    e=min(a,b);
    f=min(c,d);
    g=min(e,f);
    h=max(a,b);
    i=max(c,d);
    j=max(h,i);
    
    printf("%d\n",g);
    printf("%d\n",j)
    

    return 0;
}

Information

Submit By
Type
Submission
Problem
P1022 Minmax
Contest
Brain booster - 1
Language
C99 (GCC 13.2.0)
Submit At
2023-12-31 13:42:08
Judged At
2024-10-03 14:06:32
Judged By
Score
0
Total Time
0ms
Peak Memory
0 Bytes