Borderou de evaluare (job #3228194)

Utilizator Roxana_3Asavei Roxana Roxana_3 Data 6 mai 2024 17:39:37
Problema Euclid Status done
Runda Arhiva de probleme Compilator cpp-64 | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: main.cpp: In function 'void citesteMatrice()': main.cpp:24:20: error: reference to 'gcd' is ambiguous 24 | fin >> gcd[i][j][0][0]; | ^~~ 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:16:5: note: 'int gcd [403][403][11][11]' 16 | int gcd[N + 3][N + 3][logN + 3][logN + 3]; | ^~~ main.cpp: In function 'void prelucrare()': main.cpp:45:17: error: reference to 'gcd' is ambiguous 45 | gcd[i][j][0][k] = cmmdc(gcd[i][j][0][k - 1], gcd[i][j + (1 << (k - 1))][0][k - 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:16:5: note: 'int gcd [403][403][11][11]' 16 | int gcd[N + 3][N + 3][logN + 3][logN + 3]; | ^~~ main.cpp:45:41: error: reference to 'gcd' is ambiguous 45 | gcd[i][j][0][k] = cmmdc(gcd[i][j][0][k - 1], gcd[i][j + (1 << (k - 1))][0][k - 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:16:5: note: 'int gcd [403][403][11][11]' 16 | int gcd[N + 3][N + 3][logN + 3][logN + 3]; | ^~~ main.cpp:45:62: error: reference to 'gcd' is ambiguous 45 | gcd[i][j][0][k] = cmmdc(gcd[i][j][0][k - 1], gcd[i][j + (1 << (k - 1))][0][k - 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:16:5: note: 'int gcd [403][403][11][11]' 16 | int gcd[N + 3][N + 3][logN + 3][logN + 3]; | ^~~ main.cpp:54:17: error: reference to 'gcd' is ambiguous 54 | gcd[i][j][p][0] = cmmdc(gcd[i][j][p - 1][0], gcd[i + (1 << (p - 1))][j][p][0]); | ^~~ /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:16:5: note: 'int gcd [403][403][11][11]' 16 | int gcd[N + 3][N + 3][logN + 3][logN + 3]; | ^~~ main.cpp:54:41: error: reference to 'gcd' is ambiguous Non zero exit status: 1

Ceva nu functioneaza?