Borderou de evaluare (job #3316184)
| Utilizator | Data | 17 octombrie 2025 19:01:30 | |
|---|---|---|---|
| Problema | Problema Damelor | Status | done |
| Runda | Arhiva educationala | Compilator | cpp-64 | Vezi sursa |
| Scor | 0 | ||
Raport evaluator
Eroare de compilare:
main.cpp:24:9: error: reference to 'size' is ambiguous
24 | int sol[size + 1]; // sol[i] = coloana pe care e dama de pe linia i
| ^~~~
In file included from /usr/include/c++/12.2.1/string:52,
from /usr/include/c++/12.2.1/bits/locale_classes.h:40,
from /usr/include/c++/12.2.1/bits/ios_base.h:41,
from /usr/include/c++/12.2.1/ios:42,
from /usr/include/c++/12.2.1/istream:38,
from /usr/include/c++/12.2.1/sstream:38,
from /usr/include/c++/12.2.1/complex:45,
from /usr/include/c++/12.2.1/ccomplex:39,
from /usr/include/c++/12.2.1/x86_64-pc-linux-gnu/bits/stdc++.h:54,
from main.cpp:15:
/usr/include/c++/12.2.1/bits/range_access.h:274:5: note: candidates are: 'template<class _Tp, long unsigned int _Nm> constexpr std::size_t std::size(const _Tp (&)[_Nm])'
274 | size(const _Tp (&)[_Nm]) noexcept
| ^~~~
/usr/include/c++/12.2.1/bits/range_access.h:264:5: note: 'template<class _Container> constexpr decltype (__cont.size()) std::size(const _Container&)'
264 | size(const _Container& __cont) noexcept(noexcept(__cont.size()))
| ^~~~
main.cpp:22:11: note: 'const int size'
22 | const int size = 13;
| ^~~~
main.cpp:25:14: error: reference to 'size' is ambiguous
25 | int firstsol[size + 1]; // retinem prima solutie gasita (lexicografic)
| ^~~~
/usr/include/c++/12.2.1/bits/range_access.h:274:5: note: candidates are: 'template<class _Tp, long unsigned int _Nm> constexpr std::size_t std::size(const _Tp (&)[_Nm])'
274 | size(const _Tp (&)[_Nm]) noexcept
| ^~~~
/usr/include/c++/12.2.1/bits/range_access.h:264:5: note: 'template<class _Container> constexpr decltype (__cont.size()) std::size(const _Container&)'
264 | size(const _Container& __cont) noexcept(noexcept(__cont.size()))
| ^~~~
main.cpp:22:11: note: 'const int size'
22 | const int size = 13;
| ^~~~
main.cpp: In function 'void bk(int)':
main.cpp:36:17: error: 'firstsol' was not declared in this scope
36 | firstsol[i] = sol[i];
| ^~~~~~~~
main.cpp:36:31: error: 'sol' was not declared in this scope
36 | firstsol[i] = sol[i];
| ^~~
main.cpp:48:17: error: 'sol' was not declared in this scope
48 | if (sol[i] == c || abs(sol[i] - c) == abs(i - r)) {
| ^~~
main.cpp:55:13: error: 'sol' was not declared in this scope
55 | sol[r] = c;
| ^~~
main.cpp: In function 'int main()':
main.cpp:65:17: error: 'firstsol' was not declared in this scope
65 | fout << firstsol[i] + 1 << " ";
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !
