Borderou de evaluare (job #3122564)
Utilizator | Data | 19 aprilie 2023 16:47:41 | |
---|---|---|---|
Problema | Domino | Status | done |
Runda | Arhiva de probleme | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp:15:12: error: template argument 1 is invalid
15 | vector<data>g[NMAX + 5];
| ^
main.cpp:15:12: error: template argument 2 is invalid
main.cpp: In function 'bool check(int)':
main.cpp:25:22: error: request for member 'size' in 'g[v]', which is of non-class type 'int'
25 | if (int(g[v].size()) % 2 == 1)
| ^~~~
main.cpp: At global scope:
main.cpp:34:19: error: reference to 'data' is ambiguous
34 | void lant (int u, data d)
| ^~~~
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:1:
/usr/include/c++/12.2.1/bits/range_access.h:343:5: note: candidates are: 'template<class _Tp> constexpr const _Tp* std::data(initializer_list<_Tp>)'
343 | data(initializer_list<_Tp> __il) noexcept
| ^~~~
/usr/include/c++/12.2.1/bits/range_access.h:333:5: note: 'template<class _Tp, long unsigned int _Nm> constexpr _Tp* std::data(_Tp (&)[_Nm])'
333 | data(_Tp (&__array)[_Nm]) noexcept
| ^~~~
/usr/include/c++/12.2.1/bits/range_access.h:322:5: note: 'template<class _Container> constexpr decltype (__cont.data()) std::data(const _Container&)'
322 | data(const _Container& __cont) noexcept(noexcept(__cont.data()))
| ^~~~
/usr/include/c++/12.2.1/bits/range_access.h:311:5: note: 'template<class _Container> constexpr decltype (__cont.data()) std::data(_Container&)'
311 | data(_Container& __cont) noexcept(noexcept(__cont.data()))
| ^~~~
main.cpp:8:8: note: 'struct data'
8 | struct data
| ^~~~
main.cpp:34:19: error: 'data' has not been declared
34 | void lant (int u, data d)
| ^~~~
main.cpp: In function 'void lant(int, int)':
main.cpp:36:18: error: request for member 'empty' in 'g[u]', which is of non-class type 'int'
36 | while (!g[u].empty())
| ^~~~~
main.cpp:38:23: error: request for member 'back' in 'g[u]', which is of non-class type 'int'
38 | auto x = g[u].back();
| ^~~~
main.cpp:39:14: error: request for member 'pop_back' in 'g[u]', which is of non-class type 'int'
39 | g[u].pop_back();
| ^~~~~~~~
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !