Submission #10116

#TimeUsernameProblemLanguageResultExecution timeMemory
10116lavataste제곱근 구하기 1 (gs13068_sqrt1)C11
Compilation error
0 ms0 KiB
#include<stdio.h> #include<math.h> int main() { float N; scanf("d", &N); printf("%f", sqrt(N)); return 0; }

Compilation message (stderr)

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