結果
問題 |
No.410 出会い
|
ユーザー |
![]() |
提出日時 | 2016-08-29 13:41:02 |
言語 | C90 (gcc 12.3.0) |
結果 |
RE
|
実行時間 | - |
コード長 | 176 bytes |
コンパイル時間 | 171 ms |
コンパイル使用メモリ | 20,480 KB |
実行使用メモリ | 6,824 KB |
最終ジャッジ日時 | 2024-11-14 06:44:26 |
合計ジャッジ時間 | 3,975 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | RE * 4 |
other | RE * 19 |
コンパイルメッセージ
main.c: In function ‘main’: main.c:8:17: warning: format ‘%d’ expects argument of type ‘int *’, but argument 2 has type ‘int’ [-Wformat=] 8 | scanf("%d %d %d %d",Px,Py,Qx,Qy); | ~^ ~~ | | | | int * int main.c:8:20: warning: format ‘%d’ expects argument of type ‘int *’, but argument 3 has type ‘int’ [-Wformat=] 8 | scanf("%d %d %d %d",Px,Py,Qx,Qy); | ~^ ~~ | | | | int * int main.c:8:23: warning: format ‘%d’ expects argument of type ‘int *’, but argument 4 has type ‘int’ [-Wformat=] 8 | scanf("%d %d %d %d",Px,Py,Qx,Qy); | ~^ ~~ | | | | int * int main.c:8:26: warning: format ‘%d’ expects argument of type ‘int *’, but argument 5 has type ‘int’ [-Wformat=] 8 | scanf("%d %d %d %d",Px,Py,Qx,Qy); | ~^ ~~ | | | | int * int main.c:8:9: warning: ignoring return value of ‘scanf’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 8 | scanf("%d %d %d %d",Px,Py,Qx,Qy); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
ソースコード
#include<stdio.h> #include<stdlib.h> int main(void){ int Px,Py,Qx,Qy; scanf("%d %d %d %d",Px,Py,Qx,Qy); printf("%d",(abs(Px)+abs(Qx)+abs(Py)+abs(Qy))/2); return 0; }