結果
問題 |
No.36 素数が嫌い!
|
ユーザー |
👑 ![]() |
提出日時 | 2016-10-17 10:58:22 |
言語 | C90 (gcc 12.3.0) |
結果 |
RE
|
実行時間 | - |
コード長 | 91 bytes |
コンパイル時間 | 145 ms |
コンパイル使用メモリ | 19,328 KB |
実行使用メモリ | 5,248 KB |
最終ジャッジ日時 | 2024-11-22 12:55:53 |
合計ジャッジ時間 | 4,998 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | RE * 4 |
other | RE * 26 |
コンパイルメッセージ
main.c:1:10: warning: return type defaults to ‘int’ [-Wimplicit-int] 1 | long a,i;main(t){for(scanf("%ld",&a);a/i/i;i++)t+=a%(i*i)?a%i<1:2;a=!puts(t>3?"YES":"NO");} | ^~~~ main.c: In function ‘main’: main.c:1:10: warning: type of ‘t’ defaults to ‘int’ [-Wimplicit-int] main.c:1:22: warning: implicit declaration of function ‘scanf’ [-Wimplicit-function-declaration] 1 | long a,i;main(t){for(scanf("%ld",&a);a/i/i;i++)t+=a%(i*i)?a%i<1:2;a=!puts(t>3?"YES":"NO");} | ^~~~~ main.c:1:1: note: include ‘<stdio.h>’ or provide a declaration of ‘scanf’ +++ |+#include <stdio.h> 1 | long a,i;main(t){for(scanf("%ld",&a);a/i/i;i++)t+=a%(i*i)?a%i<1:2;a=!puts(t>3?"YES":"NO");} main.c:1:22: warning: incompatible implicit declaration of built-in function ‘scanf’ [-Wbuiltin-declaration-mismatch] 1 | long a,i;main(t){for(scanf("%ld",&a);a/i/i;i++)t+=a%(i*i)?a%i<1:2;a=!puts(t>3?"YES":"NO");} | ^~~~~ main.c:1:22: note: include ‘<stdio.h>’ or provide a declaration of ‘scanf’ main.c:1:70: warning: implicit declaration of function ‘puts’ [-Wimplicit-function-declaration] 1 | long a,i;main(t){for(scanf("%ld",&a);a/i/i;i++)t+=a%(i*i)?a%i<1:2;a=!puts(t>3?"YES":"NO");} | ^~~~ main.c:1:70: note: include ‘<stdio.h>’ or provide a declaration of ‘puts’
ソースコード
long a,i;main(t){for(scanf("%ld",&a);a/i/i;i++)t+=a%(i*i)?a%i<1:2;a=!puts(t>3?"YES":"NO");}