Borderou de evaluare (job #3138963)
Utilizator | Data | 23 iunie 2023 16:34:11 | |
---|---|---|---|
Problema | Algoritmul lui Euclid | Status | done |
Runda | Arhiva educationala | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
In function 'constexpr int gcd(const int&, const int&)',
inlined from 'constexpr int gcd(const int&, const int&)' at main.cpp:13:16,
inlined from 'constexpr int gcd(const int&, const int&)' at main.cpp:13:16:
main.cpp:11:29: error: inlining failed in call to 'always_inline' 'constexpr int gcd(const int&, const int&)': recursive inlining
11 | ALWAYS_INLINE constexpr int gcd(const int& a, const int& b) {
| ^~~
main.cpp:13:16: note: called from here
13 | return gcd(b, a % b);
| ~~~^~~~~~~~~~
In function 'constexpr int gcd(const int&, const int&)',
inlined from 'constexpr int gcd(const int&, const int&)' at main.cpp:13:16,
inlined from 'constexpr int gcd(const int&, const int&)' at main.cpp:13:16,
inlined from 'constexpr int gcd(const int&, const int&)' at main.cpp:13:16,
inlined from 'constexpr int gcd(const int&, const int&)' at main.cpp:13:16,
inlined from 'constexpr int gcd(const int&, const int&)' at main.cpp:13:16,
inlined from 'constexpr int gcd(const int&, const int&)' at main.cpp:13:16,
inlined from 'constexpr int gcd(const int&, const int&)' at main.cpp:13:16,
inlined from 'constexpr int gcd(const int&, const int&)' at main.cpp:13:16,
inlined from 'constexpr int gcd(const int&, const int&)' at main.cpp:13:16,
inlined from 'constexpr int gcd(const int&, const int&)' at main.cpp:13:16,
inlined from 'int main()' at main.cpp:28:27:
main.cpp:11:29: error: inlining failed in call to 'always_inline' 'constexpr int gcd(const int&, const int&)': recursive inlining
11 | ALWAYS_INLINE constexpr int gcd(const int& a, const int& b) {
| ^~~
main.cpp:13:16: note: called from here
13 | return gcd(b, a % b);
| ~~~^~~~~~~~~~
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !