Borderou de evaluare (job #3276319)
Utilizator | Data | 13 februarie 2025 11:40:09 | |
---|---|---|---|
Problema | Randuri | Status | done |
Runda | Arhiva de probleme | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp: In function 'void solve()':
main.cpp:49:26: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<std::__cxx11::basic_string<char> >::size_type' {aka 'long unsigned int'} [-Wsign-compare]
49 | for(int poz = 2; poz < rows.size(); ++poz)
| ~~~~^~~~~~~~~~~~~
main.cpp: In function 'int lgscm(std::string, std::string)':
main.cpp:63:12: error: reference to 'lcm' is ambiguous
63 | memset(lcm, 0, sizeof(lcm));
| ^~~
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:179:5: note: candidates are: 'template<class _Mn, class _Nn> constexpr std::common_type_t<_Tp1, _Tp2> std::lcm(_Mn, _Nn)'
179 | lcm(_Mn __m, _Nn __n) noexcept
| ^~~
main.cpp:12:5: note: 'int lcm [105][105]'
12 | int lcm[SIZE][SIZE];
| ^~~
main.cpp:63:27: error: reference to 'lcm' is ambiguous
63 | memset(lcm, 0, sizeof(lcm));
| ^~~
/usr/include/c++/12.2.1/numeric:179:5: note: candidates are: 'template<class _Mn, class _Nn> constexpr std::common_type_t<_Tp1, _Tp2> std::lcm(_Mn, _Nn)'
179 | lcm(_Mn __m, _Nn __n) noexcept
| ^~~
main.cpp:12:5: note: 'int lcm [105][105]'
12 | int lcm[SIZE][SIZE];
| ^~~
main.cpp:70:17: error: reference to 'lcm' is ambiguous
70 | lcm[x][y] = lcm[x - 1][y - 1] + 1;
| ^~~
/usr/include/c++/12.2.1/numeric:179:5: note: candidates are: 'template<class _Mn, class _Nn> constexpr std::common_type_t<_Tp1, _Tp2> std::lcm(_Mn, _Nn)'
179 | lcm(_Mn __m, _Nn __n) noexcept
| ^~~
main.cpp:12:5: note: 'int lcm [105][105]'
12 | int lcm[SIZE][SIZE];
| ^~~
main.cpp:70:29: error: reference to 'lcm' is ambiguous
70 | lcm[x][y] = lcm[x - 1][y - 1] + 1;
| ^~~
/usr/include/c++/12.2.1/numeric:179:5: note: candidates are: 'template<class _Mn, class _Nn> constexpr std::common_type_t<_Tp1, _Tp2> std::lcm(_Mn, _Nn)'
179 | lcm(_Mn __m, _Nn __n) noexcept
| ^~~
main.cpp:12:5: note: 'int lcm [105][105]'
12 | int lcm[SIZE][SIZE];
| ^~~
main.cpp:72:17: error: reference to 'lcm' is ambiguous
72 | lcm[x][y] = max(lcm[x - 1][y], lcm[x][y - 1]);
| ^~~
/usr/include/c++/12.2.1/numeric:179:5: note: candidates are: 'template<class _Mn, class _Nn> constexpr std::common_type_t<_Tp1, _Tp2> std::lcm(_Mn, _Nn)'
179 | lcm(_Mn __m, _Nn __n) noexcept
| ^~~
main.cpp:12:5: note: 'int lcm [105][105]'
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !