結果
| 問題 | No.2922 Rose Garden |
| コンテスト | |
| ユーザー |
👑 |
| 提出日時 | 2024-10-14 11:42:47 |
| 言語 | cLay (20241019-1 + boost 1.89.0) |
| 結果 |
CE
|
| 実行時間 | - |
| コード長 | 63 bytes |
| 記録 | |
| コンパイル時間 | 3,371 ms |
| コンパイル使用メモリ | 163,256 KB |
| 最終ジャッジ日時 | 2024-10-14 11:42:52 |
| 合計ジャッジ時間 | 4,319 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge5 |
(要ログイン)
コンパイルエラー時のメッセージ・ソースコードは、提出者また管理者しか表示できないようにしております。(リジャッジ後のコンパイルエラーは公開されます)
ただし、clay言語の場合は開発者のデバッグのため、公開されます。
ただし、clay言語の場合は開発者のデバッグのため、公開されます。
コンパイルメッセージ
main.cpp: In function ‘int main()’:
main.cpp:238:20: error: expected ‘)’ before ‘:’ token
238 | t>h+S?N=chmax(0:h, t);
| ~ ^
| )
main.cpp:238:19: error: cannot bind non-const lvalue reference of type ‘int&’ to an rvalue of type ‘int’
238 | t>h+S?N=chmax(0:h, t);
| ^
main.cpp:6:46: note: initializing argument 1 of ‘S chmax(S&, T) [with S = int; T = long long int]’
6 | template<class S, class T> inline S chmax(S &a, T b){
| ~~~^
main.cpp:238:26: error: expected ‘:’ before ‘;’ token
238 | t>h+S?N=chmax(0:h, t);
| ^
| :
main.cpp:238:26: error: expected primary-expression before ‘;’ token
ソースコード
ll@(N,S,B,h);REP(i,N-1){ll@t;t>h+S?N=0:h>?=t;}wt(N?"Yes":"No");