結果

問題 No.494 yukicoder
ユーザー sk3388607083
提出日時 2018-06-24 12:53:26
言語 C++11(廃止可能性あり)
(gcc 13.3.0)
結果
WA  
実行時間 -
コード長 198 bytes
コンパイル時間 112 ms
コンパイル使用メモリ 22,528 KB
実行使用メモリ 6,944 KB
最終ジャッジ日時 2024-06-30 22:25:50
合計ジャッジ時間 636 ms
ジャッジサーバーID
(参考情報)
judge5 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample WA * 2
other WA * 7
権限があれば一括ダウンロードができます
コンパイルメッセージ
main.cpp: In function ‘int main()’:
main.cpp:7:8: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
    7 |   scanf("%s", S);
      |   ~~~~~^~~~~~~~~

ソースコード

diff #

#include<stdio.h>

int main(void){
  int i;
  char S[10];
  char s[10] = "yukicoder";
  scanf("%s", S);
  for(i = 0; s[i] != '\0'; i++){
    if(S[i] != s[i]) printf("%c\n", S[i]);
  }
  return 0;
}
0