Submission #5331

# Submission time Handle Problem Language Result Execution time Memory
5331 2014-03-29T07:33:59 Z jspark19990205 제곱근 구하기 1 (gs13068_sqrt1) C++
Compilation error
0 ms 0 KB
#include<stdio.h>

int main()
{
    int n;
    scanf("%d",&n);
    printf("%f\n",sqrt(n));
    return 0;
}

Compilation message

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]