sequence.cpp: In function 'void sol()':
sequence.cpp:76:24: error: no matching function for call to '__gcd(int)'
76 | ans = n+m-__gcd(m+n)-1;
| ^
In file included from /usr/include/c++/10/algorithm:62,
from /usr/include/x86_64-linux-gnu/c++/10/bits/stdc++.h:65,
from sequence.cpp:1:
/usr/include/c++/10/bits/stl_algo.h:1219:5: note: candidate: 'template<class _EuclideanRingElement> _EuclideanRingElement std::__gcd(_EuclideanRingElement, _EuclideanRingElement)'
1219 | __gcd(_EuclideanRingElement __m, _EuclideanRingElement __n)
| ^~~~~
/usr/include/c++/10/bits/stl_algo.h:1219:5: note: template argument deduction/substitution failed:
sequence.cpp:76:24: note: candidate expects 2 arguments, 1 provided
76 | ans = n+m-__gcd(m+n)-1;
| ^
sequence.cpp:78:13: error: 'r' was not declared in this scope
78 | cout << r << '\n';
| ^
sequence.cpp: In function 'int main()':
sequence.cpp:90:10: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)' declared with attribute 'warn_unused_result' [-Wunused-result]
90 | freopen(task".inp", "r", stdin);
| ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~
sequence.cpp:91:10: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)' declared with attribute 'warn_unused_result' [-Wunused-result]
91 | freopen(task".out", "w", stdout);
| ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~