mobile.cpp:62:14: error: 'pdd' was not declared in this scope
62 | double dist2(pdd a, pdd b) {
| ^~~
mobile.cpp:62:21: error: 'pdd' was not declared in this scope
62 | double dist2(pdd a, pdd b) {
| ^~~
mobile.cpp:62:26: error: expression list treated as compound expression in initializer [-fpermissive]
62 | double dist2(pdd a, pdd b) {
| ^
mobile.cpp: In function 'int main()':
mobile.cpp:76:2: error: 'pdd' was not declared in this scope
76 | pdd s[N];
| ^~~
mobile.cpp:77:37: error: 's' was not declared in this scope
77 | for (int i = 0; i < N; i++) cin >> s[i].first >> s[i].second;
| ^
mobile.cpp:85:23: error: 's' was not declared in this scope
85 | if (dist2({x, 0}, {s[i]}) > mid*mid) continue;
| ^
mobile.cpp:85:28: error: 'dist2' cannot be used as a function
85 | if (dist2({x, 0}, {s[i]}) > mid*mid) continue;
| ^
mobile.cpp:93:8: error: 's' was not declared in this scope
93 | x = s[i].first + sqrt(mid*mid - s[i].second * s[i].second);
| ^
mobile.cpp: In function 'void setIO(std::string)':
mobile.cpp:22:9: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)' declared with attribute 'warn_unused_result' [-Wunused-result]
22 | freopen((s + ".in").c_str(), "r", stdin);
| ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
mobile.cpp:23:9: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)' declared with attribute 'warn_unused_result' [-Wunused-result]
23 | freopen((s + ".out").c_str(), "w", stdout);
| ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~