fork download
  1. #include <stdio.h>
  2.  
  3. int main(void) {
  4. int a;
  5. scanf("%d",&a);
  6. if(a>=1,a<=100;){
  7. printf("%d는 참입니다.");
  8.  
  9. }
  10. return 0;
  11. }
  12.  
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
prog.c: In function ‘main’:
prog.c:6:9: warning: left-hand operand of comma expression has no effect [-Wunused-value]
  if(a>=1,a<=100;){
         ^
prog.c:6:16: error: expected ‘)’ before ‘;’ token
  if(a>=1,a<=100;){
                ^
prog.c:7:12: warning: format ‘%d’ expects a matching ‘int’ argument [-Wformat=]
   printf("%d는 참입니다.");
            ^
stdout
Standard output is empty