expgorl.cpp: In function 'void solve(int)':
expgorl.cpp:45:7: warning: unused variable 'l' [-Wunused-variable]
45 | int l = 0 , r = k;
| ^
expgorl.cpp:45:15: warning: unused variable 'r' [-Wunused-variable]
45 | int l = 0 , r = k;
| ^
expgorl.cpp:46:10: warning: unused variable 'ans' [-Wunused-variable]
46 | double ans = 0;
| ^~~
expgorl.cpp: At global scope:
expgorl.cpp:58:1: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type]
58 | main() {
| ^~~~
expgorl.cpp: In function 'int main()':
expgorl.cpp:4:48: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)' declared with attribute 'warn_unused_result' [-Wunused-result]
4 | #define file(s) if (fopen(s".in", "r")) freopen(s".in", "r", stdin), freopen(s".out", "w", stdout)
| ~~~~~~~^~~~~~~~~~~~~~~~~~~~
expgorl.cpp:59:2: note: in expansion of macro 'file'
59 | file("expgorl");
| ^~~~
expgorl.cpp:4:77: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)' declared with attribute 'warn_unused_result' [-Wunused-result]
4 | #define file(s) if (fopen(s".in", "r")) freopen(s".in", "r", stdin), freopen(s".out", "w", stdout)
| ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~
expgorl.cpp:59:2: note: in expansion of macro 'file'
59 | file("expgorl");
| ^~~~