結果
問題 | No.98 円を描こう |
ユーザー | mosmos_21 |
提出日時 | 2016-10-11 13:04:36 |
言語 | C90 (gcc 11.4.0) |
結果 |
CE
(最新)
AC
(最初)
|
実行時間 | - |
コード長 | 174 bytes |
コンパイル時間 | 896 ms |
コンパイル使用メモリ | 22,656 KB |
最終ジャッジ日時 | 2024-05-01 19:15:52 |
合計ジャッジ時間 | 1,345 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge3 |
(要ログイン)
コンパイルエラー時のメッセージ・ソースコードは、提出者また管理者しか表示できないようにしております。(リジャッジ後のコンパイルエラーは公開されます)
ただし、clay言語の場合は開発者のデバッグのため、公開されます。
ただし、clay言語の場合は開発者のデバッグのため、公開されます。
コンパイルメッセージ
main.c: In function ‘main’: main.c:6:3: warning: ignoring return value of ‘scanf’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 6 | scanf("%d%d", &x, &y); | ^~~~~~~~~~~~~~~~~~~~~ /usr/bin/ld: /tmp/cc4y5rl8.o: in function `main': main.c:(.text.startup+0x8c): undefined reference to `sqrt' collect2: error: ld returned 1 exit status
ソースコード
#include <stdio.h> #include <math.h> int main(){ int x,y; double r; scanf("%d%d", &x, &y); r = sqrt(x * x + y * y); printf("%d\n", (int)(r * 2 + 1)); return 0; }