結果

問題 No.2707 Bag of Words Encryption
ユーザー 👑 p-adicp-adic
提出日時 2024-04-04 21:23:30
言語 cLay
(20240420-1)
結果
CE  
実行時間 -
コード長 57 bytes
コンパイル時間 2,023 ms
コンパイル使用メモリ 166,224 KB
最終ジャッジ日時 2024-04-04 21:23:33
合計ジャッジ時間 3,125 ms
ジャッジサーバーID
(参考情報)
judge14 / judge15
このコードへのチャレンジ
(要ログイン)
コンパイルエラー時のメッセージ・ソースコードは、提出者また管理者しか表示できないようにしております。(リジャッジ後のコンパイルエラーは公開されます)
ただし、clay言語の場合は開発者のデバッグのため、公開されます。

コンパイルメッセージ
main.cpp: In function ‘int main()’:
main.cpp:106:28: error: no match for ‘operator<’ (operand types are ‘int’ and ‘std::string’ {aka ‘std::__cxx11::basic_string<char>’})
  106 |   for(Nzj9Y0kE=(0);Nzj9Y0kE<(N);Nzj9Y0kE++){
      |                    ~~~~~~~~^~~~
      |                    |         |
      |                    int       std::string {aka std::__cxx11::basic_string<char>}
In file included from /usr/include/c++/11/regex:63,
                 from /usr/include/x86_64-linux-gnu/c++/11/bits/stdc++.h:110,
                 from main.cpp:4:
/usr/include/c++/11/bits/regex.h:1099:5: note: candidate: ‘template<class _BiIter> bool std::__cxx11::operator<(const std::__cxx11::sub_match<_BiIter>&, const std::__cxx11::sub_match<_BiIter>&)’
 1099 |     operator<(const sub_match<_BiIter>& __lhs, const sub_match<_BiIter>& __rhs)
      |     ^~~~~~~~
/usr/include/c++/11/bits/regex.h:1099:5: note:   template argument deduction/substitution failed:
main.cpp:106:31: note:   mismatched types ‘const std::__cxx11::sub_match<_BiIter>’ and ‘int’
  106 |   for(Nzj9Y0kE=(0);Nzj9Y0kE<(N);Nzj9Y0kE++){
      |                               ^
In file included from /usr/include/c++/11/regex:63,
                 from /usr/include/x86_64-linux-gnu/c++/11/bits/stdc++.h:110,
                 from main.cpp:4:
/usr/include/c++/11/bits/regex.h:1180:5: note: candidate: ‘template<class _Bi_iter, class _Ch_traits, class _Ch_alloc> bool std::__cxx11::operator<(std::__cxx11::__sub_match_string<_Bi_iter, _Ch_traits, _Ch_alloc>&, const std::__cxx11::sub_match<_BiIter>&)’
 1180 |     operator<(const __sub_match_string<_Bi_iter, _Ch_traits, _Ch_alloc>& __lhs,
      |     ^~~~~~~~
/usr/include/c++/11/bits/regex.h:1180:5: note:   template argument deduction/substitution failed:
main.cpp:106:31: note:   mismatched types ‘std::__cxx11::__sub_match_string<_Bi_iter, _Ch_traits, _Ch_alloc>’ and ‘int’
  106 |   for(Nzj9Y0kE=(0);Nzj9Y0kE<(N);Nzj9Y0kE++){
      |     

ソースコード

diff #

string@N,@S;ll A[26]{};rep[S](s,N)A[s-'a']++;wtSp(A(26));
0