fork download
  1. /* Helloプログラム */
  2.  
  3. #include <stdio.h>
  4.  
  5. main()
  6. {
  7. int a=-1;
  8.  
  9. if(a<0){
  10. printf("入力エラー\n");
  11. }
  12.  
  13. int b=1;
  14.  
  15. if(b=1){
  16. printf("大吉\n");
  17. }else{if(b=2){
  18. printf("中吉\n");
  19. }else{if(b=3){
  20. printf("小吉\n");
  21. }
  22.  
  23. }
  24. }
  25.  
  26. int c=2024;
  27.  
  28.  
  29. if ((c%100==0)&&(c%400!=0)){
  30. printf("うるう年\n");
  31. }else if(c%4==0){
  32. printf("うるう年\n");
  33. }else{
  34. printf("うるう年じゃな\n");
  35. }
  36.  
  37.  
  38. }
Success #stdin #stdout 0s 5268KB
stdin
Standard input is empty
stdout
入力エラー
大吉
うるう年