結果
| 問題 | No.257 N言っちゃダメゲーム (3) |
| コンテスト | |
| ユーザー |
testestest
|
| 提出日時 | 2016-03-08 23:14:28 |
| 言語 | C90 (gcc 12.4.0) |
| 結果 |
RE
|
| 実行時間 | - |
| コード長 | 96 bytes |
| 記録 | |
| コンパイル時間 | 274 ms |
| コンパイル使用メモリ | 28,616 KB |
| 最終ジャッジ日時 | 2026-02-23 20:51:07 |
|
ジャッジサーバーID (参考情報) |
judge3 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| 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/cc4bz3Za.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