結果
問題 | No.163 cAPSlOCK |
ユーザー |
![]() |
提出日時 | 2015-03-24 15:57:50 |
言語 | C90 (gcc 12.3.0) |
結果 |
AC
|
実行時間 | 1 ms / 5,000 ms |
コード長 | 56 bytes |
コンパイル時間 | 70 ms |
コンパイル使用メモリ | 18,944 KB |
実行使用メモリ | 5,376 KB |
最終ジャッジ日時 | 2024-06-29 00:31:38 |
合計ジャッジ時間 | 856 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 20 |
コンパイルメッセージ
main.c:1:1: warning: data definition has no type or storage class 1 | r;main(c){for(;r=read(0,&c,1);write(1,&c,1))c^=c/64<<5;} | ^ main.c:1:1: warning: type defaults to ‘int’ in declaration of ‘r’ [-Wimplicit-int] main.c:1:3: warning: return type defaults to ‘int’ [-Wimplicit-int] 1 | r;main(c){for(;r=read(0,&c,1);write(1,&c,1))c^=c/64<<5;} | ^~~~ main.c: In function ‘main’: main.c:1:3: warning: type of ‘c’ defaults to ‘int’ [-Wimplicit-int] main.c:1:18: warning: implicit declaration of function ‘read’ [-Wimplicit-function-declaration] 1 | r;main(c){for(;r=read(0,&c,1);write(1,&c,1))c^=c/64<<5;} | ^~~~ main.c:1:31: warning: implicit declaration of function ‘write’ [-Wimplicit-function-declaration] 1 | r;main(c){for(;r=read(0,&c,1);write(1,&c,1))c^=c/64<<5;} | ^~~~~
ソースコード
r;main(c){for(;r=read(0,&c,1);write(1,&c,1))c^=c/64<<5;}