結果
| 問題 | No.2708 Jewel holder |
| コンテスト | |
| ユーザー |
👑 |
| 提出日時 | 2024-04-04 21:42:31 |
| 言語 | cLay (20241019-1 + boost 1.89.0) |
| 結果 |
CE
|
| 実行時間 | - |
| コード長 | 233 bytes |
| 記録 | |
| コンパイル時間 | 2,425 ms |
| コンパイル使用メモリ | 165,032 KB |
| 最終ジャッジ日時 | 2024-10-01 00:34:05 |
| 合計ジャッジ時間 | 2,797 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge1 |
(要ログイン)
コンパイルエラー時のメッセージ・ソースコードは、提出者また管理者しか表示できないようにしております。(リジャッジ後のコンパイルエラーは公開されます)
ただし、clay言語の場合は開発者のデバッグのため、公開されます。
ただし、clay言語の場合は開発者のデバッグのため、公開されます。
コンパイルメッセージ
main.cpp: In function ‘int main()’:
main.cpp:253:3: error: ‘a’ was not declared in this scope
253 | a[H][W][L]{{{0,1}}};
| ^
main.cpp:254:3: error: ‘d’ was not declared in this scope
254 | d;
| ^
main.cpp:272:51: error: template argument 1 is invalid
272 | remove_reference<decltype(a[H-1][W-1][ATMZloZo])>::type pyHJGNQc;
| ^
main.cpp:272:59: error: expected initializer before ‘pyHJGNQc’
272 | remove_reference<decltype(a[H-1][W-1][ATMZloZo])>::type pyHJGNQc;
| ^~~~~~~~
main.cpp:275:5: error: ‘pyHJGNQc’ was not declared in this scope
275 | pyHJGNQc = 0;
| ^~~~~~~~
main.cpp:280:9: error: ‘pyHJGNQc’ was not declared in this scope
280 | pyHJGNQc = a[H-1][W-1][ATMZloZo];
| ^~~~~~~~
main.cpp:284:7: error: ‘pyHJGNQc’ was not declared in this scope
284 | pyHJGNQc += a[H-1][W-1][ATMZloZo];
| ^~~~~~~~
main.cpp:287:7: error: ‘pyHJGNQc’ was not declared in this scope
287 | pyHJGNQc = 0;
| ^~~~~~~~
main.cpp:290:9: error: ‘pyHJGNQc’ was not declared in this scope
290 | wt_L((pyHJGNQc));
| ^~~~~~~~
ソースコード
ll@H,@W,L=2d4;a[H][W][L]{{{0,1}}},d;string@A[H];rep(i,H)rep(j,W)rep(c,L)d=A[i][j]=='o'?c-1:A[i][j]=='x'?d+1:-1,a[i][j][c]+=0<=d<L?(i&&A[i-1][j]!='#'?a[i-1][j][d]:0)+(j&&A[i][j-1]!='#'?a[i][j-1][d]:0):0;wt(sum[c,0,L](a[H-1][W-1][c]));