Borderou de evaluare (job #3190648)
Utilizator | Data | 7 ianuarie 2024 19:46:47 | |
---|---|---|---|
Problema | Negot | Status | done |
Runda | Arhiva de probleme | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp: In function 'int maxFlow(int, int)':
main.cpp:67:21: error: no matching function for call to 'swap(int&, int)'
67 | swap(p, 0);
| ~~~~^~~~~~
In file included from /usr/include/c++/12.2.1/x86_64-pc-linux-gnu/bits/stdc++.h:126,
from main.cpp:1:
/usr/include/c++/12.2.1/any:429:15: note: candidate: 'void std::swap(any&, any&)' (near match)
429 | inline void swap(any& __x, any& __y) noexcept { __x.swap(__y); }
| ^~~~
/usr/include/c++/12.2.1/any:429:15: note: conversion of argument 2 would be ill-formed:
main.cpp:67:25: error: cannot bind non-const lvalue reference of type 'std::any&' to an rvalue of type 'std::any'
67 | swap(p, 0);
| ^
/usr/include/c++/12.2.1/any:190:7: note: after user-defined conversion: 'std::any::any(_Tp&&) [with _Tp = int; _VTp = int; _Mgr = _Manager_internal<int>; typename std::enable_if<(is_copy_constructible_v<_VTp> && (! __is_in_place_type_v<_VTp>)), bool>::type <anonymous> = true]'
190 | any(_Tp&& __value)
| ^~~
In file included 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:
/usr/include/c++/12.2.1/sstream:1185:5: note: candidate: 'template<class _CharT, class _Traits, class _Allocator> void std::__cxx11::swap(basic_stringbuf<_CharT, _Traits, _Alloc>&, basic_stringbuf<_CharT, _Traits, _Alloc>&)'
1185 | swap(basic_stringbuf<_CharT, _Traits, _Allocator>& __x,
| ^~~~
/usr/include/c++/12.2.1/sstream:1185:5: note: template argument deduction/substitution failed:
main.cpp:67:21: note: mismatched types 'std::__cxx11::basic_stringbuf<_CharT, _Traits, _Alloc>' and 'int'
67 | swap(p, 0);
| ~~~~^~~~~~
/usr/include/c++/12.2.1/sstream:1193:5: note: candidate: 'template<class _CharT, class _Traits, class _Allocator> void std::__cxx11::swap(basic_istringstream<_CharT, _Traits, _Allocator>&, basic_istringstream<_CharT, _Traits, _Allocator>&)'
1193 | swap(basic_istringstream<_CharT, _Traits, _Allocator>& __x,
| ^~~~
/usr/include/c++/12.2.1/sstream:1193:5: note: template argument deduction/substitution failed:
main.cpp:67:21: note: mismatched types 'std::__cxx11::basic_istringstream<_CharT, _Traits, _Allocator>' and 'int'
67 | swap(p, 0);
| ~~~~^~~~~~
/usr/include/c++/12.2.1/sstream:1200:5: note: candidate: 'template<class _CharT, class _Traits, class _Allocator> void std::__cxx11::swap(basic_ostringstream<_CharT, _Traits, _Allocator>&, basic_ostringstream<_CharT, _Traits, _Allocator>&)'
1200 | swap(basic_ostringstream<_CharT, _Traits, _Allocator>& __x,
| ^~~~
/usr/include/c++/12.2.1/sstream:1200:5: note: template argument deduction/substitution failed:
main.cpp:67:21: note: mismatched types 'std::__cxx11::basic_ostringstream<_CharT, _Traits, _Allocator>' and 'int'
67 | swap(p, 0);
| ~~~~^~~~~~
/usr/include/c++/12.2.1/sstream:1207:5: note: candidate: 'template<class _CharT, class _Traits, class _Allocator> void std::__cxx11::swap(basic_stringstream<_CharT, _Traits, _Allocator>&, basic_stringstream<_CharT, _Traits, _Allocator>&)'
1207 | swap(basic_stringstream<_CharT, _Traits, _Allocator>& __x,
| ^~~~
/usr/include/c++/12.2.1/sstream:1207:5: note: template argument deduction/substitution failed:
main.cpp:67:21: note: mismatched types 'std::__cxx11::basic_stringstream<_CharT, _Traits, _Allocator>' and 'int'
67 | swap(p, 0);
| ~~~~^~~~~~
In file included from /usr/include/c++/12.2.1/regex:66,
from /usr/include/c++/12.2.1/x86_64-pc-linux-gnu/bits/stdc++.h:110:
/usr/include/c++/12.2.1/bits/regex.h:880:5: note: candidate: 'template<class _Ch_type, class _Rx_traits> void std::__cxx11::swap(basic_regex<_Ch_type, _Rx_traits>&, basic_regex<_Ch_type, _Rx_traits>&)'
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !