結果
| 問題 | No.257 N言っちゃダメゲーム (3) |
| コンテスト | |
| ユーザー |
testestest
|
| 提出日時 | 2016-03-08 23:14:28 |
| 言語 | C90(gcc12) (gcc 12.4.0) |
| 結果 |
RE
|
| 実行時間 | - |
| コード長 | 96 bytes |
| 記録 | |
| コンパイル時間 | 40 ms |
| コンパイル使用メモリ | 28,032 KB |
| 実行使用メモリ | 5,888 KB |
| 平均クエリ数 | 1.00 |
| 最終ジャッジ日時 | 2026-07-24 07:53:40 |
| 合計ジャッジ時間 | 7,216 ms |
|
ジャッジサーバーID (参考情報) |
judge2_1 / judge3_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | RE * 30 |
コンパイルメッセージ
main.c:1:1: warning: data definition has no type or storage class
1 | t,s,k;main(n){for(scanf("%d%d",&n,&k);atoi(gets(&t))<n;)fflush(!printf("%d\n",s++*-~k+~-n%~k));}
| ^
main.c: In function ‘main’:
main.c:1:19: warning: incompatible implicit declaration of built-in function ‘scanf’ [-Wbuiltin-declaration-mismatch]
1 | t,s,k;main(n){for(scanf("%d%d",&n,&k);atoi(gets(&t))<n;)fflush(!printf("%d\n",s++*-~k+~-n%~k));}
| ^~~~~
main.c:1:1: note: include ‘<stdio.h>’ or provide a declaration of ‘scanf’
+++ |+#include <stdio.h>
1 | t,s,k;main(n){for(scanf("%d%d",&n,&k);atoi(gets(&t))<n;)fflush(!printf("%d\n",s++*-~k+~-n%~k));}
main.c:1:65: warning: incompatible implicit declaration of built-in function ‘printf’ [-Wbuiltin-declaration-mismatch]
1 | t,s,k;main(n){for(scanf("%d%d",&n,&k);atoi(gets(&t))<n;)fflush(!printf("%d\n",s++*-~k+~-n%~k));}
| ^~~~~~
main.c:1:65: note: include ‘<stdio.h>’ or provide a declaration of ‘printf’
/usr/bin/ld: /tmp/ccr2S09g.o: in function `main':
main.c:(.text.startup+0x87): 警告: the `gets' function is dangerous and should not be used.
ソースコード
t,s,k;main(n){for(scanf("%d%d",&n,&k);atoi(gets(&t))<n;)fflush(!printf("%d\n",s++*-~k+~-n%~k));}
testestest