Submission #3629906


Source Code Expand

#include<stdio.h>

int main(){
  char s[4];
  int check_a = 0, check_b = 0, check_c = 0, i;
  
  scanf("%s", s);
  for (i = 0; i < 3; i++){
    if(s[i] == 'a'){
      check_a = 1;
    }
    if(s[i] == 'b'){
      check_b = 1;
    }
    if(s[i] == 'c'){
      check_c = 1;
    }
    
    if(check_a == 1 && check_b == 1 && check_c == 1){
      printf("Yes\n");
    } else {
      printf("No\n");
    }
  }

Submission Info

Submission Time
Task A - abc of ABC
User karma19
Language C (GCC 5.4.1)
Score 0
Code Size 427 Byte
Status CE

Compile Error

./Main.c: In function ‘main’:
./Main.c:24:3: error: expected declaration or statement at end of input
   }
   ^
./Main.c:7:3: warning: ignoring return value of ‘scanf’, declared with attribute warn_unused_result [-Wunused-result]
   scanf("%s", s);
   ^