Submission #5331

#TimeUsernameProblemLanguageResultExecution timeMemory
5331jspark19990205제곱근 구하기 1 (gs13068_sqrt1)C++98
Compilation error
0 ms0 KiB
#include<stdio.h>

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

Compilation message (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]