Problem | gcd |
---|---|
User | NoynYT |
Submission Time | 2023-04-28 19:34:59 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
gcd.cpp: In function ‘int main()’:
gcd.cpp:9:18: error: no matching function for call to ‘modf(int&, int&)’
9 | cout<<modf(b, a);
| ^
In file included from /usr/include/features.h:461,
from /usr/include/x86_64-linux-gnu/c++/9/bits/os_defines.h:39,
from /usr/include/x86_64-linux-gnu/c++/9/bits/c++config.h:528,
from /usr/include/c++/9/cassert:43,
from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:33,
from gcd.cpp:1:
/usr/include/x86_64-linux-gnu/bits/mathcalls.h:110:1: note: candidate: ‘double modf(double, double*)’ <near match>
110 | __MATHCALL (modf,, (_Mdouble_ __x, _Mdouble_ *__iptr)) __nonnull ((2));
| ^~~~~~~~~~
/usr/include/x86_64-linux-gnu/bits/mathcalls.h:110:1: note: conversion of argument 2 would be ill-formed:
gcd.cpp:9:17: error: invalid conversion from ‘int’ to ‘double*’ [-fpermissive]
9