結果
| 問題 | No.48 ロボットの操縦 |
| コンテスト | |
| ユーザー |
testestest
|
| 提出日時 | 2015-08-07 15:08:36 |
| 言語 | C90(gcc12) (gcc 12.4.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 111 bytes |
| 記録 | |
| コンパイル時間 | 250 ms |
| コンパイル使用メモリ | 29,224 KB |
| 最終ジャッジ日時 | 2026-02-23 18:59:53 |
|
ジャッジサーバーID (参考情報) |
judge2 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 22 WA * 3 |
コンパイルメッセージ
main.c:1:1: warning: data definition has no type or storage class
1 | b,c;main(a){scanf("%d%d%d",&b,&a,&c);b=!printf("%d",(a>0?(a-1)/c:~a/c+1)+(b>0?(b-1)/c:~b/c)+!!a+!!b*2+(a&!b));}
| ^
main.c: In function ‘main’:
main.c:1:13: warning: incompatible implicit declaration of built-in function ‘scanf’ [-Wbuiltin-declaration-mismatch]
1 | b,c;main(a){scanf("%d%d%d",&b,&a,&c);b=!printf("%d",(a>0?(a-1)/c:~a/c+1)+(b>0?(b-1)/c:~b/c)+!!a+!!b*2+(a&!b));}
| ^~~~~
main.c:1:1: note: include ‘<stdio.h>’ or provide a declaration of ‘scanf’
+++ |+#include <stdio.h>
1 | b,c;main(a){scanf("%d%d%d",&b,&a,&c);b=!printf("%d",(a>0?(a-1)/c:~a/c+1)+(b>0?(b-1)/c:~b/c)+!!a+!!b*2+(a&!b));}
main.c:1:41: warning: incompatible implicit declaration of built-in function ‘printf’ [-Wbuiltin-declaration-mismatch]
1 | b,c;main(a){scanf("%d%d%d",&b,&a,&c);b=!printf("%d",(a>0?(a-1)/c:~a/c+1)+(b>0?(b-1)/c:~b/c)+!!a+!!b*2+(a&!b));}
| ^~~~~~
main.c:1:41: note: include ‘<stdio.h>’ or provide a declaration of ‘printf’
ソースコード
b,c;main(a){scanf("%d%d%d",&b,&a,&c);b=!printf("%d",(a>0?(a-1)/c:~a/c+1)+(b>0?(b-1)/c:~b/c)+!!a+!!b*2+(a&!b));}
testestest