Submission #3629901


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 429 Byte
Status CE

Compile Error

./Main.c: In function ‘main’:
./Main.c:19:40: error: ‘check’ undeclared (first use in this function)
     if(check_a == 1 && check_b == 1 && check _ c == 1){
                                        ^
./Main.c:19:40: note: each undeclared identifier is reported only once for each function it appears in
./Main.c:19:46: error: expected ‘)’ before ‘_’
     if(check_a == 1 && check_b == 1 && check _ c == 1){
                                              ^
./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);
   ^