Submission #6397548


Source Code Expand

#include<stdio.h>
#include<string.h>

int main(){
  char s[11];
  char m[5];
  scanf("%s",s);
 //strncpy(m,s,5);
  if(strcmp(s,"MUJIN",5)== 0){
    printf("Yes\n");
    return 0;
  }
  else
  printf("No\n");
  return 0;
  

}

Submission Info

Submission Time
Task A - コンテスト名
User mikan8green
Language C (GCC 5.4.1)
Score 0
Code Size 242 Byte
Status CE

Compile Error

./Main.c: In function ‘main’:
./Main.c:9:24: error: macro "strcmp" passed 3 arguments, but takes just 2
   if(strcmp(s,"MUJIN",5)== 0){
                        ^
./Main.c:7:3: warning: ignoring return value of ‘scanf’, declared with attribute warn_unused_result [-Wunused-result]
   scanf("%s",s);
   ^