結果

問題 No.2773 Wake up Record 1
コンテスト
ユーザー p-adic
提出日時 2024-06-07 22:49:20
言語 cLay
(20250308-1 + boost 1.90.0)
コンパイル:
clayc _filename_
実行:
./a.out
結果
CE  
実行時間 -
コード長 72 bytes
記録
記録タグの例:
初AC ショートコード 純ショートコード 純主流ショートコード 最速実行時間
コンパイル時間 3,039 ms
コンパイル使用メモリ 180,216 KB
最終ジャッジ日時 2026-06-01 07:02:51
合計ジャッジ時間 3,777 ms
ジャッジサーバーID
(参考情報)
judge3_0 / judge2_0
このコードへのチャレンジ
(要ログイン)
コンパイルエラー時のメッセージ・ソースコードは、提出者また管理者しか表示できないようにしております。(リジャッジ後のコンパイルエラーは公開されます)
ただし、clay言語の場合は開発者のデバッグのため、公開されます。

コンパイルメッセージ
main.cpp: In function ‘int main()’:
main.cpp:125:10: error: no ‘operator++(int)’ declared for postfix ‘++’ [-fpermissive]
  125 |       A[a++]=i;
      |         ~^~
main.cpp:132:9: error: no match for ‘operator==’ (operand types are ‘std::string’ {aka ‘std::__cxx11::basic_string<char>’} and ‘int’)
  132 |     if(a==0){
      |        ~^~~
      |        |  |
      |        |  int
      |        std::string {aka std::__cxx11::basic_string<char>}
In file included from /usr/include/c++/14/regex:68,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:181,
                 from main.cpp:4:
/usr/include/c++/14/bits/regex.h:1103:5: note: candidate: ‘template<class _BiIter> bool std::__cxx11::operator==(const sub_match<_BiIter>&, const sub_match<_BiIter>&)’
 1103 |     operator==(const sub_match<_BiIter>& __lhs, const sub_match<_BiIter>& __rhs)
      |     ^~~~~~~~
/usr/include/c++/14/bits/regex.h:1103:5: note:   template argument deduction/substitution failed:
main.cpp:132:11: note:   ‘std::string’ {aka ‘std::__cxx11::basic_string<char>’} is not derived from ‘const std::__cxx11::sub_match<_BiIter>’
  132 |     if(a==0){
      |           ^
/usr/include/c++/14/bits/regex.h:1199:5: note: candidate: ‘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>&)’
 1199 |     operator==(const __sub_match_string<_Bi_iter, _Ch_traits, _Ch_alloc>& __lhs,
      |     ^~~~~~~~
/usr/include/c++/14/bits/regex.h:1199:5: note:   template argument deduction/substitution failed:
main.cpp:132:11: note:   mismatched types ‘const std::__cxx11::sub_match<_BiIter>’ and ‘int’
  132 |     if(a==0){
      |           ^
/usr/include/c++/14/bits/regex.h:1274:5: note: candidate: ‘template<class _Bi_iter, class _Ch_traits, class _Ch_alloc> bool std::__cxx11::operator==(const sub_match<_BiIter>&, __sub_match_string<

ソースコード

diff #
raw source code

ll@N;string@S,a=0,A[N];rep(i,1,N)if(S[i-1]<S[i])A[a++]=i;wt(a);wt(A(a));
0