Submission #10116

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

Compilation message

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