zalmoxis.cpp:20:10: error: 'int y1' redeclared as different kind of entity
20 | int x1 , y1;
| ^~
In file included from /usr/include/features.h:461,
from /usr/include/x86_64-linux-gnu/c++/10/bits/os_defines.h:39,
from /usr/include/x86_64-linux-gnu/c++/10/bits/c++config.h:518,
from /usr/include/c++/10/cassert:43,
from /usr/include/x86_64-linux-gnu/c++/10/bits/stdc++.h:33,
from zalmoxis.cpp:1:
/usr/include/x86_64-linux-gnu/bits/mathcalls.h:221:1: note: previous declaration 'double y1(double)'
221 | __MATHCALL (y1,, (_Mdouble_));
| ^~~~~~~~~~
zalmoxis.cpp: In function 'void solve(int, int, int)':
zalmoxis.cpp:42:12: error: assignment of function 'double y1(double)'
42 | y1 = num - g3 - 1;
| ~~~^~~~~~~~~~~~~~
zalmoxis.cpp: In function 'int main()':
zalmoxis.cpp:84:15: warning: the address of 'double y1(double)' will never be NULL [-Waddress]
84 | cout<<y1<<" ";
| ^~