/ SeriousOJ /

Record Detail

Compile Error

foo.c: In function 'main':
foo.c:7:1: error: expected '}' before 'else'
    7 | else{
      | ^~~~

Code

#include<stdio.h>
int main(){
int x;
scanf("%d",&x);
if(2*x <= 100){
  printf("YES");
else{
  printf("NO");
}
return 0;
}

Information

Submit By
Type
Submission
Problem
P1056 Grown up boy sunny
Contest
Brain Booster #3
Language
C99 (GCC 13.2.0)
Submit At
2024-05-06 15:12:23
Judged At
2024-10-03 13:52:43
Judged By
Score
0
Total Time
0ms
Peak Memory
0 Bytes