結果

問題 No.2920 Blood Type
コンテスト
ユーザー 👑 p-adic
提出日時 2024-10-14 11:30:54
言語 cLay
(20250308-1 + boost 1.92.0 + ACL)
コンパイル:
clayc _filename_
実行:
./a.out
結果
CE  
実行時間 -
コード長 108 bytes
記録
記録タグの例:
初AC ショートコード 純ショートコード 純主流ショートコード 最速実行時間
コンパイル時間 1,516 ms
コンパイル使用メモリ 188,064 KB
最終ジャッジ日時 2026-09-16 14:37:32
合計ジャッジ時間 2,905 ms
ジャッジサーバーID
(参考情報)
judge1_1 / judge2_1
このコードへのチャレンジ
(要ログイン)
コンパイルエラー時のメッセージ・ソースコードは、提出者また管理者しか表示できないようにしております。(リジャッジ後のコンパイルエラーは公開されます)
ただし、clay言語の場合は開発者のデバッグのため、公開されます。

コンパイルメッセージ
main.cpp: In function 'int main()':
main.cpp:96:14: error: no match for 'operator<' (operand types are 'int' and 'std::string' {aka 'std::__cxx11::basic_string<char>'})
   96 |   for(s=(0);s<(S);s++){
      |             ~^~~~
      |             |  |
      |             |  std::string {aka std::__cxx11::basic_string<char>}
      |             int
main.cpp:96:14: note: there are 47 candidates
   96 |   for(s=(0);s<(S);s++){
      |             ~^~~~
In file included from /home/linuxbrew/.linuxbrew/Cellar/gcc@15/15.3.0/include/c++/15/regex:69,
                 from /home/linuxbrew/.linuxbrew/Cellar/gcc@15/15.3.0/include/c++/15/x86_64-pc-linux-gnu/bits/stdc++.h:184,
                 from main.cpp:4:
/home/linuxbrew/.linuxbrew/Cellar/gcc@15/15.3.0/include/c++/15/bits/regex.h:1165:5: note: candidate 1: 'template<class _BiIter> bool std::__cxx11::operator<(const sub_match<_BiIter>&, const sub_match<_BiIter>&)'
 1165 |     operator<(const sub_match<_BiIter>& __lhs, const sub_match<_BiIter>& __rhs)
      |     ^~~~~~~~
/home/linuxbrew/.linuxbrew/Cellar/gcc@15/15.3.0/include/c++/15/bits/regex.h:1165:5: note: template argument deduction/substitution failed:
main.cpp:96:17: note:   mismatched types 'const std::__cxx11::sub_match<_BiIter>' and 'int'
   96 |   for(s=(0);s<(S);s++){
      |                 ^
/home/linuxbrew/.linuxbrew/Cellar/gcc@15/15.3.0/include/c++/15/bits/regex.h:1246:5: note: candidate 2: 'template<class _Bi_iter, class _Ch_traits, class _Ch_alloc> bool std::__cxx11::operator<(__sub_match_string<_Bi_iter, _Ch_traits, _Ch_alloc>&, const sub_match<_BiIter>&)'
 1246 |     operator<(const __sub_match_string<_Bi_iter, _Ch_traits, _Ch_alloc>& __lhs,
      |     ^~~~~~~~
/home/linuxbrew/.linuxbrew/Cellar/gcc@15/15.3.0/include/c++/15/bits/regex.h:1246:5: note: template argument deduction/substitution failed:
main.cpp:96:17: note:   mismatched types 'std::__cxx11::__sub_match_string<_Bi_iter, _Ch_traits, _Ch_alloc>' and 'int'
   96 |   for(s=(0);s<(S);s++){
      |  

ソースコード

diff #
raw source code

string@S,@T,a[4]{};rep(s,S)rep(t,T){set<char>X{s,t};a[X.count('A')*2+X.count('B')]++;}wt(a[2],a[1],a[3],*a);
0