mobile.cpp: In function 'std::pair<long double, long double> calc(long double, int)':
mobile.cpp:11:9: warning: init-statement in selection statements only available with '-std=c++17' or '-std=gnu++17'
11 | if (r < abs(y[i]) {
| ^
mobile.cpp:11:22: error: expected ';' before '{' token
11 | if (r < abs(y[i]) {
| ^~
| ;
mobile.cpp:11:11: warning: value computed is not used [-Wunused-value]
11 | if (r < abs(y[i]) {
| ~~^~~~~~~~~~~
mobile.cpp:14:5: error: expected primary-expression before 'return'
14 | return {x[i] - sqrtl(r * r - y[i] * y[i]), x[i] + sqrtl(r * r - y[i] * y[i])};
| ^~~~~~
mobile.cpp:13:6: error: expected ')' before 'return'
13 | }
| ^
| )
14 | return {x[i] - sqrtl(r * r - y[i] * y[i]), x[i] + sqrtl(r * r - y[i] * y[i])};
| ~~~~~~
mobile.cpp:11:8: note: to match this '('
11 | if (r < abs(y[i]) {
| ^
mobile.cpp:15:1: warning: no return statement in function returning non-void [-Wreturn-type]
15 | }
| ^