input/code.cpp: In function 'int main(int, char**)':
input/code.cpp:9:21: warning: format '%i' expects argument of type 'int*', but argument 2 has type 'int_fast64_t* {aka long int*}' [-Wformat=]
std::scanf("%i", &n);
~~^
input/code.cpp:10:42: error: 'sqrt' was not declared in this scope
int_fast64_t viimeinen = (int_fast64_t)(sqrt((8*n+1)/4)-0.5);
^~~~
input/code.cpp:10:42: note: suggested alternative: 'qsort'
int_fast64_t viimeinen = (int_fast64_t)(sqrt((8*n+1)/4)-0.5);
^~~~
qsort
input/code.cpp:11:32: warning: format '%i' expects argument of type 'int', but argument 2 has type 'int_fast64_t {aka long int}' [-Wformat=]
std::printf("%i \n", viimeinen);
^
input/code.cpp:15:23: warning: format '%i' expects argument of type 'int', but argument 2 has type 'int_fast64_t {aka long int}' [-Wformat=]
std...