結果
問題 |
No.305 鍵(2)
|
ユーザー |
👑 ![]() |
提出日時 | 2015-12-17 11:37:52 |
言語 | C90 (gcc 12.3.0) |
結果 |
TLE
(最新)
AC
(最初)
|
実行時間 | - |
コード長 | 105 bytes |
コンパイル時間 | 81 ms |
コンパイル使用メモリ | 19,456 KB |
実行使用メモリ | 59,732 KB |
最終ジャッジ日時 | 2024-07-16 22:04:45 |
合計ジャッジ時間 | 6,452 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | TLE * 1 -- * 12 |
コンパイルメッセージ
main.c:1:10: warning: data definition has no type or storage class 1 | char s[];i,k,p;main(t){for(;~t<k&&(t=~k,s[i++]=48)||s[i-1]++,p=i<11;scanf("%d%*s",&k))puts(s),fflush(0);} | ^ main.c:1:10: warning: type defaults to ‘int’ in declaration of ‘i’ [-Wimplicit-int] main.c:1:12: warning: type defaults to ‘int’ in declaration of ‘k’ [-Wimplicit-int] 1 | char s[];i,k,p;main(t){for(;~t<k&&(t=~k,s[i++]=48)||s[i-1]++,p=i<11;scanf("%d%*s",&k))puts(s),fflush(0);} | ^ main.c:1:14: warning: type defaults to ‘int’ in declaration of ‘p’ [-Wimplicit-int] 1 | char s[];i,k,p;main(t){for(;~t<k&&(t=~k,s[i++]=48)||s[i-1]++,p=i<11;scanf("%d%*s",&k))puts(s),fflush(0);} | ^ main.c:1:16: warning: return type defaults to ‘int’ [-Wimplicit-int] 1 | char s[];i,k,p;main(t){for(;~t<k&&(t=~k,s[i++]=48)||s[i-1]++,p=i<11;scanf("%d%*s",&k))puts(s),fflush(0);} | ^~~~ main.c: In function ‘main’: main.c:1:16: warning: type of ‘t’ defaults to ‘int’ [-Wimplicit-int] main.c:1:69: warning: implicit declaration of function ‘scanf’ [-Wimplicit-function-declaration] 1 | char s[];i,k,p;main(t){for(;~t<k&&(t=~k,s[i++]=48)||s[i-1]++,p=i<11;scanf("%d%*s",&k))puts(s),fflush(0);} | ^~~~~ main.c:1:1: note: include ‘<stdio.h>’ or provide a declaration of ‘scanf’ +++ |+#include <stdio.h> 1 | char s[];i,k,p;main(t){for(;~t<k&&(t=~k,s[i++]=48)||s[i-1]++,p=i<11;scanf("%d%*s",&k))puts(s),fflush(0);} main.c:1:69: warning: incompatible implicit declaration of built-in function ‘scanf’ [-Wbuiltin-declaration-mismatch] 1 | char s[];i,k,p;main(t){for(;~t<k&&(t=~k,s[i++]=48)||s[i-1]++,p=i<11;scanf("%d%*s",&k))puts(s),fflush(0);} | ^~~~~ main.c:1:69: note: include ‘<stdio.h>’ or provide a declaration of ‘scanf’ main.c:
ソースコード
char s[];i,k,p;main(t){for(;~t<k&&(t=~k,s[i++]=48)||s[i-1]++,p=i<11;scanf("%d%*s",&k))puts(s),fflush(0);}