結果

問題 No.1003 サイコロの実装 (1)
ユーザー subsn
提出日時 2023-06-20 14:08:59
言語 C
(gcc 13.3.0)
結果
WA  
実行時間 -
コード長 51 bytes
コンパイル時間 95 ms
コンパイル使用メモリ 27,392 KB
実行使用メモリ 5,376 KB
最終ジャッジ日時 2024-06-28 01:12:06
合計ジャッジ時間 962 ms
ジャッジサーバーID
(参考情報)
judge2 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 1 WA * 2
other AC * 7 WA * 18
権限があれば一括ダウンロードができます
コンパイルメッセージ
main.c:1:1: warning: return type defaults to 'int' [-Wimplicit-int]
    1 | main(i){scanf("%n",&i);i%6?puts("No"):puts("Yes");}
      | ^~~~
main.c: In function 'main':
main.c:1:1: warning: type of 'i' defaults to 'int' [-Wimplicit-int]
main.c:1:9: warning: implicit declaration of function 'scanf' [-Wimplicit-function-declaration]
    1 | main(i){scanf("%n",&i);i%6?puts("No"):puts("Yes");}
      |         ^~~~~
main.c:1:1: note: include '<stdio.h>' or provide a declaration of 'scanf'
  +++ |+#include <stdio.h>
    1 | main(i){scanf("%n",&i);i%6?puts("No"):puts("Yes");}
main.c:1:9: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch]
    1 | main(i){scanf("%n",&i);i%6?puts("No"):puts("Yes");}
      |         ^~~~~
main.c:1:9: note: include '<stdio.h>' or provide a declaration of 'scanf'
main.c:1:28: warning: implicit declaration of function 'puts' [-Wimplicit-function-declaration]
    1 | main(i){scanf("%n",&i);i%6?puts("No"):puts("Yes");}
      |                            ^~~~
main.c:1:28: note: include '<stdio.h>' or provide a declaration of 'puts'

ソースコード

diff #

main(i){scanf("%n",&i);i%6?puts("No"):puts("Yes");}
0