Submission #10118

# Submission time Handle Problem Language Result Execution time Memory
10118 2014-10-15T10:48:49 Z lavataste 제곱근 구하기 1 (gs13068_sqrt1) C
Compilation error
0 ms 0 KB
#include<stdio.h>
#include<math.h>
int main()
{
  float N;
  scanf("%f", &N);
  N=sqrt(N);
  printf("%f", N);
  return 0;
}

Compilation message

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