結果
問題 | No.98 円を描こう |
ユーザー | koyumeishi |
提出日時 | 2014-12-09 23:49:38 |
言語 | C90 (gcc 11.4.0) |
結果 |
RE
|
実行時間 | - |
コード長 | 80 bytes |
コンパイル時間 | 575 ms |
コンパイル使用メモリ | 25,020 KB |
実行使用メモリ | 4,508 KB |
最終ジャッジ日時 | 2023-09-02 12:24:33 |
合計ジャッジ時間 | 1,071 ms |
ジャッジサーバーID (参考情報) |
judge13 / judge15 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | RE | - |
testcase_01 | RE | - |
testcase_02 | RE | - |
testcase_03 | RE | - |
testcase_04 | RE | - |
testcase_05 | RE | - |
testcase_06 | RE | - |
testcase_07 | RE | - |
testcase_08 | RE | - |
testcase_09 | RE | - |
コンパイルメッセージ
main.c:1:1: warning: data definition has no type or storage class x;main(y){scanf("%d%d",&x,&y);exit(printf("%d\n",x=ceil(sqrt(x*x+y*y)*2+.01)));} ^ main.c:1:1: warning: type defaults to ‘int’ in declaration of ‘x’ [-Wimplicit-int] main.c:1:3: warning: return type defaults to ‘int’ [-Wimplicit-int] x;main(y){scanf("%d%d",&x,&y);exit(printf("%d\n",x=ceil(sqrt(x*x+y*y)*2+.01)));} ^~~~ main.c: In function ‘main’: main.c:1:3: warning: type of ‘y’ defaults to ‘int’ [-Wimplicit-int] main.c:1:11: warning: implicit declaration of function ‘scanf’ [-Wimplicit-function-declaration] x;main(y){scanf("%d%d",&x,&y);exit(printf("%d\n",x=ceil(sqrt(x*x+y*y)*2+.01)));} ^~~~~ main.c:1:11: warning: incompatible implicit declaration of built-in function ‘scanf’ main.c:1:11: note: include ‘<stdio.h>’ or provide a declaration of ‘scanf’ +#include <stdio.h> x;main(y){scanf("%d%d",&x,&y);exit(printf("%d\n",x=ceil(sqrt(x*x+y*y)*2+.01)));} ^~~~~ main.c:1:31: warning: implicit declaration of function ‘exit’ [-Wimplicit-function-declaration] x;main(y){scanf("%d%d",&x,&y);exit(printf("%d\n",x=ceil(sqrt(x*x+y*y)*2+.01)));} ^~~~ main.c:1:31: warning: incompatible implicit declaration of built-in function ‘exit’ main.c:1:31: note: include ‘<stdlib.h>’ or provide a declaration of ‘exit’ +#include <stdlib.h> x;main(y){scanf("%d%d",&x,&y);exit(printf("%d\n",x=ceil(sqrt(x*x+y*y)*2+.01)));} ^~~~ main.c:1:36: warning: implicit declaration of function ‘printf’ [-Wimplicit-function-declaration] x;main(y){scanf("%d%d",&x,&y);exit(printf("%d\n",x=ceil(sqrt(x*x+y*y)*2+.01)));} ^~~~~~ main.c:1:36: warning: incompatible implicit declaration of built-in function ‘printf’ main.c:1:36: note: include ‘<stdio.h>’ or provide a declaration of ‘printf’ main.c:1:52: warning: implicit declaration of function ‘ceil’ [-
ソースコード
x;main(y){scanf("%d%d",&x,&y);exit(printf("%d\n",x=ceil(sqrt(x*x+y*y)*2+.01)));}