提出 #44347622


ソースコード 拡げる

Copy
Copy
  1. #include <stdio.h>
  2. #include <math.h>
  3.  
  4. int main(void) {
  5. int a, b, c;
  6. char s[1024];
  7. if (scanf("%d%d%d%1023s", &a, &b, &c, s) != 4) return 1;
  8. printf("%d %s\n", (int)(sqrt((a + b + c) * (c + b + a)) + 0.1), s);
  9. return 0;
  10. }
#include <stdio.h>
#include <math.h>

int main(void) {
	int a, b, c;
	char s[1024];
	if (scanf("%d%d%d%1023s", &a, &b, &c, s) != 4) return 1;
	printf("%d %s\n", (int)(sqrt((a + b + c) * (c + b + a)) + 0.1), s);
	return 0;
}

提出情報

提出日時
問題 PracticeA - Welcome to AtCoder
ユーザ mikecat
言語 C (gcc 12.2.0)
得点 0
コード長 234 Byte
結果 CE

コンパイルエラー

/usr/bin/ld: /tmp/cc8VpyJz.o: in function `main':
Main.c:(.text.startup+0x8b): undefined reference to `sqrt'
collect2: error: ld returned 1 exit status


2023-08-06 (日)
22:07:16 +00:00