제출 #5331

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

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

sqrt1.cpp: In function 'int main()':
sqrt1.cpp:7:25: error: 'sqrt' was not declared in this scope
sqrt1.cpp:6:19: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]