Borderou de evaluare (job #2308650)

Utilizator rebecca0312Andrei Rebecca rebecca0312 Data 27 decembrie 2018 15:18:28
Problema Big Four Status done
Runda Arhiva ICPC Compilator cpp-64 | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: main.cpp: In function 'bool backt(std::vector<int>)': main.cpp:15:38: error: no matching function for call to 'std::vector<int>::swap(__gnu_cxx::__alloc_traits<std::allocator<int> >::value_type&, __gnu_cxx::__alloc_traits<std::allocator<int> >::value_type&)' v.swap(v[j], v.back()); ^ In file included from /usr/include/c++/6/vector:64:0, from main.cpp:2: /usr/include/c++/6/bits/stl_vector.h:1195:7: note: candidate: void std::vector<_Tp, _Alloc>::swap(std::vector<_Tp, _Alloc>&) [with _Tp = int; _Alloc = std::allocator<int>] swap(vector& __x) _GLIBCXX_NOEXCEPT ^~~~ /usr/include/c++/6/bits/stl_vector.h:1195:7: note: candidate expects 1 argument, 2 provided main.cpp: In function 'int main()': main.cpp:25:36: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result] freopen("bigfour.in","r",stdin); ^ main.cpp:26:38: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result] freopen("bigfour.out","w",stdout); ^ main.cpp:28:20: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result] scanf("%d", &t); ^ main.cpp:32:24: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result] scanf("%d", &d); ^ main.cpp:34:31: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result] scanf("%d", &v[j]); ^ Non zero exit status: 1

Ceva nu functioneaza?