Borderou de evaluare (job #2739653)
Utilizator | Data | 9 aprilie 2021 10:07:22 | |
---|---|---|---|
Problema | Loto | Status | done |
Runda | Arhiva de probleme | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp: In function 'int main()':
main.cpp:36:73: error: 'make_tuple' was not declared in this scope
v_hash[poz].push_back(make_tuple(s, v[i], v[j], v[k]));
^
main.cpp:40:23: warning: suggest parentheses around comparison in operand of '&' [-Wparentheses]
for( int i = 0; i < nr & !gasit; i++)
~~^~~~
main.cpp:41:26: warning: suggest parentheses around comparison in operand of '&' [-Wparentheses]
for(int j = i; j < nr & !gasit; j++)
~~^~~~
main.cpp:42:30: warning: suggest parentheses around comparison in operand of '&' [-Wparentheses]
for(int k = j; k < nr & !gasit; k++)
~~^~~~
main.cpp:48:35: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for (int l = 0; l < v_hash[poz].size(); l++)
~~^~~~~~~~~~~~~~~~~~~~
main.cpp:50:32: error: 'get' was not declared in this scope
int val = get<0>(v_hash[poz][l]);
^~~
main.cpp:52:88: error: no match for 'operator<<' (operand types are '__gnu_cxx::__alloc_traits<std::allocator<std::tuple<int, int, int, int> > >::value_type {aka std::tuple<int, int, int, int>}' and 'const char [2]')
output<<v[i]<<" "<<v[j]<<" "<<v[k]<<" "<<get<1>(v_hash[poz][l])<<" "<<get<2>(v_hash[poz][l])<<" "<<get<3>(v_hash[poz][l]);
In file included from /usr/include/c++/6/string:52:0,
from /usr/include/c++/6/bits/locale_classes.h:40,
from /usr/include/c++/6/bits/ios_base.h:41,
from /usr/include/c++/6/ios:42,
from /usr/include/c++/6/ostream:38,
from /usr/include/c++/6/iostream:39,
from main.cpp:8:
/usr/include/c++/6/bits/basic_string.h:5343:5: note: candidate: template<class _CharT, class _Traits, class _Alloc> std::basic_ostream<_CharT, _Traits>& std::operator<<(std::basic_ostream<_CharT, _Traits>&, const std::__cxx11::basic_string<_CharT, _Traits, _Alloc>&)
operator<<(basic_ostream<_CharT, _Traits>& __os,
^~~~~~~~
/usr/include/c++/6/bits/basic_string.h:5343:5: note: template argument deduction/substitution failed:
main.cpp:52:90: note: '__gnu_cxx::__alloc_traits<std::allocator<std::tuple<int, int, int, int> > >::value_type {aka std::tuple<int, int, int, int>}' is not derived from 'std::basic_ostream<_CharT, _Traits>'
output<<v[i]<<" "<<v[j]<<" "<<v[k]<<" "<<get<1>(v_hash[poz][l])<<" "<<get<2>(v_hash[poz][l])<<" "<<get<3>(v_hash[poz][l]);
^~~
In file included from /usr/include/c++/6/bits/ios_base.h:46:0,
from /usr/include/c++/6/ios:42,
from /usr/include/c++/6/ostream:38,
from /usr/include/c++/6/iostream:39,
from main.cpp:8:
/usr/include/c++/6/system_error:209:5: note: candidate: template<class _CharT, class _Traits> std::basic_ostream<_CharT, _Traits>& std::operator<<(std::basic_ostream<_CharT, _Traits>&, const std::error_code&)
operator<<(basic_ostream<_CharT, _Traits>& __os, const error_code& __e)
^~~~~~~~
/usr/include/c++/6/system_error:209:5: note: template argument deduction/substitution failed:
main.cpp:52:90: note: '__gnu_cxx::__alloc_traits<std::allocator<std::tuple<int, int, int, int> > >::value_type {aka std::tuple<int, int, int, int>}' is not derived from 'std::basic_ostream<_CharT, _Traits>'
output<<v[i]<<" "<<v[j]<<" "<<v[k]<<" "<<get<1>(v_hash[poz][l])<<" "<<get<2>(v_hash[poz][l])<<" "<<get<3>(v_hash[poz][l]);
^~~
In file included from /usr/include/c++/6/iostream:39:0,
from main.cpp:8:
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !