运行 ID 作者 题号 测评结果 分数 时间 内存 语言 代码长度 提交时间
272762 y198 1697 - 弥明超时空(25分) 编译错误 0 0 MS 0 KB C++ 1101 3年前
暂时无法获取本题测试点详情。

Main.cc: In function ‘void solve()’:
Main.cc:41:20: error: expected ‘;’ before ‘}’ token
41 | unionT(u,v)
| ^
| ;
42 | }
| ~
Main.cc:43:23: error: no matching function for call to ‘find(int)’
43 | int allfa = find(1);
| ^
In file included from /usr/include/c++/9/bits/locale_facets.h:48,
from /usr/include/c++/9/bits/basic_ios.h:37,
from /usr/include/c++/9/ios:44,
from /usr/include/c++/9/istream:38,
from /usr/include/c++/9/sstream:38,
from /usr/include/c++/9/complex:45,
from /usr/include/c++/9/ccomplex:39,
from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:54,
from Main.cc:1:
/usr/include/c++/9/bits/streambuf_iterator.h:373:5: note: candidate: ‘template<class _CharT2> typename __gnu_cxx::__enable_if<std::__is_char<_CharT2>::__value, std::istreambuf_iterator<_CharT> >::__type std::find(std::istreambuf_iterator<_CharT>, std::istreambuf_iterator<_CharT>, const _CharT2&)’
373 | find(istreambuf_iterator<_CharT> __first,
| ^~~~
/usr/include/c++/9/bits/streambuf_iterator.h:373:5: note: template argument deduction/substitution failed:
Main.cc:43:23: note: mismatched types ‘std::istreambuf_iterator<_CharT>’ and ‘int’
43 | int allfa = find(1);
| ^
In file included from /usr/include/c++/9/algorithm:62,
from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:65,
from Main.cc:1:
/usr/include/c++/9/bits/stl_algo.h:3936:5: note: candidate: ‘template<class _IIter, class _Tp> _IIter std::find(_IIter, _IIter, const _Tp&)’
3936 | find(_InputIterator __first, _InputIterator __last,
| ^~~~
/usr/include/c++/9/bits/stl_algo.h:3936:5: note: template argument deduction/substitution failed:
Main.cc:43:23: note: candidate expects 3 arguments, 1 provided
43 | int allfa = find(1);
| ^
Main.cc:45:18: error: no matching function for call to ‘find(long long int&)’
45 | if(find(i) != allfa){
| ^
In file included from /usr/include/c++/9/bits/locale_facets.h:48,
from /usr/include/c++/9/bits/basic_ios.h:37,
from /usr/include/c++/9/ios:44,
from /usr/include/c++/9/istream:38,
from /usr/include/c++/9/sstream:38,
from /usr/include/c++/9/complex:45,
from /usr/include/c++/9/ccomplex:39,
from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:54,
from Main.cc:1:
/usr/include/c++/9/bits/streambuf_iterator.h:373:5: note: candidate: ‘template<class _CharT2> typename __gnu_cxx::__enable_if<std::__is_char<_CharT2>::__value, std::istreambuf_iterator<_CharT> >::__type std::find(std::istreambuf_iterator<_CharT>, std::istreambuf_iterator<_CharT>, const _CharT2&)’
373 | find(istreambuf_iterator<_CharT> __first,
| ^~~~
/usr/include/c++/9/bits/streambuf_iterator.h:373:5: note: template argument deduction/substitution failed:
Main.cc:45:18: note: mismatched types ‘std::istreambuf_iterator<_CharT>’ and ‘long long int’
45 | if(find(i) != allfa){
| ^
In file included from /usr/include/c++/9/algorithm:62,
from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:65,
from Main.cc:1:
/usr/include/c++/9/bits/stl_algo.h:3936:5: note: candidate: ‘template<class _IIter, class _Tp> _IIter std::find(_IIter, _IIter, const _Tp&)’
3936 | find(_InputIterator __first, _InputIterator __last,
| ^~~~
/usr/include/c++/9/bits/stl_algo.h:3936:5: note: template argument deduction/substitution failed:
Main.cc:45:18: note: candidate expects 3 arguments, 1 provided
45 | if(find(i) != allfa){
| ^