제출 #10117

#제출 시각아이디문제언어결과실행 시간메모리
10117lavataste제곱근 구하기 1 (gs13068_sqrt1)C11
컴파일 에러
0 ms0 KiB
#include<stdio.h>
#include<math.h>
int main()
{
  float N;
  scanf("%f", &N);
  printf("%f", sqrt(N));
  return 0;
}

컴파일 시 표준 에러 (stderr) 메시지

sqrt1.c: In function 'main':
sqrt1.c:6:8: warning: ignoring return value of 'scanf', declared with attribute warn_unused_result [-Wunused-result]
/tmp/ccwkx0dz.o: In function `main':
sqrt1.c:(.text.startup+0x48): undefined reference to `sqrt'
collect2: ld returned 1 exit status