Borderou de evaluare (job #2626527)
Utilizator | Data | 6 iunie 2020 19:09:44 | |
---|---|---|---|
Problema | Aparate | Status | done |
Runda | Arhiva de probleme | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp: In function 'int32_t main()':
main.cpp:70:41: error: no matching function for call to 'std::vector<std::vector<long long int> >::resize(int, std::vector<int>)'
pref_sum.resize(n+1,vector<int>(m+1));
^
In file included from /usr/include/c++/6/vector:64:0,
from /usr/include/c++/6/queue:61,
from /usr/include/x86_64-linux-gnu/c++/6/bits/stdc++.h:86,
from main.cpp:1:
/usr/include/c++/6/bits/stl_vector.h:674:7: note: candidate: void std::vector<_Tp, _Alloc>::resize(std::vector<_Tp, _Alloc>::size_type) [with _Tp = std::vector<long long int>; _Alloc = std::allocator<std::vector<long long int> >; std::vector<_Tp, _Alloc>::size_type = long unsigned int]
resize(size_type __new_size)
^~~~~~
/usr/include/c++/6/bits/stl_vector.h:674:7: note: candidate expects 1 argument, 2 provided
/usr/include/c++/6/bits/stl_vector.h:694:7: note: candidate: void std::vector<_Tp, _Alloc>::resize(std::vector<_Tp, _Alloc>::size_type, const value_type&) [with _Tp = std::vector<long long int>; _Alloc = std::allocator<std::vector<long long int> >; std::vector<_Tp, _Alloc>::size_type = long unsigned int; std::vector<_Tp, _Alloc>::value_type = std::vector<long long int>]
resize(size_type __new_size, const value_type& __x)
^~~~~~
/usr/include/c++/6/bits/stl_vector.h:694:7: note: no known conversion for argument 2 from 'std::vector<int>' to 'const value_type& {aka const std::vector<long long int>&}'
main.cpp:66:36: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result]
freopen("aparate.in","r",stdin);
^
main.cpp:67:38: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result]
freopen("aparate.out","w",stdout);
^
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !