strange_device.cpp:23:48: error: 'void add(std::set<std::pair<long long int, long long int> >&, long long int, long long int)' redeclared as different kind of entity
23 | void add (set<pair<int, int>>& st, int l, int r)
| ^
strange_device.cpp:19:5: note: previous declaration 'long long int add'
19 | int add = 0;
| ^~~
strange_device.cpp: In function 'int32_t main()':
strange_device.cpp:49:10: error: 'gcd' was not declared in this scope
49 | if (a / gcd(a, b+1) > inf / b) mod = inf;
| ^~~
strange_device.cpp:63:22: error: 'add' cannot be used as a function
63 | add(st, 0, r % mod);
| ^
strange_device.cpp:64:26: error: 'add' cannot be used as a function
64 | add(st, l % mod, mod-1);
| ^
strange_device.cpp:65:34: error: 'add' cannot be used as a function
65 | } else add(st, l % mod, r % mod);
| ^
strange_device.cpp:68:13: warning: structured bindings only available with '-std=c++17' or '-std=gnu++17'
68 | for (auto& [l, r] : st) ans += r-l+1;
| ^