Borderou de evaluare (job #2972797)
Utilizator | Data | 30 ianuarie 2023 13:12:34 | |
---|---|---|---|
Problema | Flux maxim | Status | done |
Runda | Arhiva educationala | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp: In member function 'int MaxFlow::dfs(int, int)':
main.cpp:74:36: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
74 | for(int &i = ptr[node] ; i < G[node].size() ; i++)
| ~~^~~~~~~~~~~~~~~~
main.cpp: In function 'int main()':
main.cpp:3:64: error: no matching function for call to 'std::basic_istream<char>::tie(bool)'
3 | #define FastIO ios_base::sync_with_stdio(false) , cin.tie(false) , cout.tie(false)
| ^
main.cpp:115:17: note: in expansion of macro 'FastIO'
115 | FILES , FastIO;
| ^~~~~~
In file included from /usr/include/c++/10/ios:44,
from /usr/include/c++/10/istream:38,
from /usr/include/c++/10/sstream:38,
from /usr/include/c++/10/complex:45,
from /usr/include/c++/10/ccomplex:39,
from /usr/include/x86_64-linux-gnu/c++/10/bits/stdc++.h:54,
from main.cpp:1:
/usr/include/c++/10/bits/basic_ios.h:295:7: note: candidate: 'std::basic_ostream<_CharT, _Traits>* std::basic_ios<_CharT, _Traits>::tie() const [with _CharT = char; _Traits = std::char_traits<char>]'
295 | tie() const
| ^~~
/usr/include/c++/10/bits/basic_ios.h:295:7: note: candidate expects 0 arguments, 1 provided
/usr/include/c++/10/bits/basic_ios.h:307:7: note: candidate: 'std::basic_ostream<_CharT, _Traits>* std::basic_ios<_CharT, _Traits>::tie(std::basic_ostream<_CharT, _Traits>*) [with _CharT = char; _Traits = std::char_traits<char>]'
307 | tie(basic_ostream<_CharT, _Traits>* __tiestr)
| ^~~
/usr/include/c++/10/bits/basic_ios.h:307:43: note: no known conversion for argument 1 from 'bool' to 'std::basic_ostream<char>*'
307 | tie(basic_ostream<_CharT, _Traits>* __tiestr)
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~
main.cpp:3:82: error: no matching function for call to 'std::basic_ostream<char>::tie(bool)'
3 | #define FastIO ios_base::sync_with_stdio(false) , cin.tie(false) , cout.tie(false)
| ^
main.cpp:115:17: note: in expansion of macro 'FastIO'
115 | FILES , FastIO;
| ^~~~~~
In file included from /usr/include/c++/10/ios:44,
from /usr/include/c++/10/istream:38,
from /usr/include/c++/10/sstream:38,
from /usr/include/c++/10/complex:45,
from /usr/include/c++/10/ccomplex:39,
from /usr/include/x86_64-linux-gnu/c++/10/bits/stdc++.h:54,
from main.cpp:1:
/usr/include/c++/10/bits/basic_ios.h:295:7: note: candidate: 'std::basic_ostream<_CharT, _Traits>* std::basic_ios<_CharT, _Traits>::tie() const [with _CharT = char; _Traits = std::char_traits<char>]'
295 | tie() const
| ^~~
/usr/include/c++/10/bits/basic_ios.h:295:7: note: candidate expects 0 arguments, 1 provided
/usr/include/c++/10/bits/basic_ios.h:307:7: note: candidate: 'std::basic_ostream<_CharT, _Traits>* std::basic_ios<_CharT, _Traits>::tie(std::basic_ostream<_CharT, _Traits>*) [with _CharT = char; _Traits = std::char_traits<char>]'
307 | tie(basic_ostream<_CharT, _Traits>* __tiestr)
| ^~~
/usr/include/c++/10/bits/basic_ios.h:307:43: note: no known conversion for argument 1 from 'bool' to 'std::basic_ostream<char>*'
307 | tie(basic_ostream<_CharT, _Traits>* __tiestr)
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !