Borderou de evaluare (job #3344651)
| Utilizator | Data | 4 martie 2026 15:09:06 | |
|---|---|---|---|
| Problema | Eqset | Status | done |
| Runda | Arhiva ICPC | Compilator | cpp-64 | Vezi sursa |
| Scor | 0 | ||
Raport evaluator
Eroare de compilare:
main.cpp: In function 'int32_t main()':
main.cpp:48:16: error: reference to 'gcd' is ambiguous
48 | while (gcd != 1) {
| ^~~
In file included from /usr/include/c++/12.2.1/x86_64-pc-linux-gnu/bits/stdc++.h:84,
from main.cpp:1:
/usr/include/c++/12.2.1/numeric:164:5: note: candidates are: 'template<class _Mn, class _Nn> constexpr std::common_type_t<_Tp1, _Tp2> std::gcd(_Mn, _Nn)'
164 | gcd(_Mn __m, _Nn __n) noexcept
| ^~~
main.cpp:10:14: note: 'long long int gcd'
10 | int Q, x, y, gcd;
| ^~~
main.cpp:50:13: error: reference to 'gcd' is ambiguous
50 | gcd = __gcd(x, y);
| ^~~
/usr/include/c++/12.2.1/numeric:164:5: note: candidates are: 'template<class _Mn, class _Nn> constexpr std::common_type_t<_Tp1, _Tp2> std::gcd(_Mn, _Nn)'
164 | gcd(_Mn __m, _Nn __n) noexcept
| ^~~
main.cpp:10:14: note: 'long long int gcd'
10 | int Q, x, y, gcd;
| ^~~
main.cpp:52:27: error: reference to 'gcd' is ambiguous
52 | factor_out(x, gcd);
| ^~~
/usr/include/c++/12.2.1/numeric:164:5: note: candidates are: 'template<class _Mn, class _Nn> constexpr std::common_type_t<_Tp1, _Tp2> std::gcd(_Mn, _Nn)'
164 | gcd(_Mn __m, _Nn __n) noexcept
| ^~~
main.cpp:10:14: note: 'long long int gcd'
10 | int Q, x, y, gcd;
| ^~~
main.cpp:54:27: error: reference to 'gcd' is ambiguous
54 | factor_out(y, gcd);
| ^~~
/usr/include/c++/12.2.1/numeric:164:5: note: candidates are: 'template<class _Mn, class _Nn> constexpr std::common_type_t<_Tp1, _Tp2> std::gcd(_Mn, _Nn)'
164 | gcd(_Mn __m, _Nn __n) noexcept
| ^~~
main.cpp:10:14: note: 'long long int gcd'
10 | int Q, x, y, gcd;
| ^~~
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !
