結果
| 問題 |
No.2559 眩しい数直線
|
| コンテスト | |
| ユーザー |
👑 |
| 提出日時 | 2023-12-02 14:35:24 |
| 言語 | cLay (20241019-1) |
| 結果 |
CE
|
| 実行時間 | - |
| コード長 | 70 bytes |
| コンパイル時間 | 2,702 ms |
| コンパイル使用メモリ | 162,980 KB |
| 最終ジャッジ日時 | 2024-09-26 16:54:44 |
| 合計ジャッジ時間 | 3,102 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge2 |
(要ログイン)
コンパイルエラー時のメッセージ・ソースコードは、提出者また管理者しか表示できないようにしております。(リジャッジ後のコンパイルエラーは公開されます)
ただし、clay言語の場合は開発者のデバッグのため、公開されます。
ただし、clay言語の場合は開発者のデバッグのため、公開されます。
コンパイルメッセージ
main.cpp: In function ‘int main()’:
main.cpp:239:7: error: expected unqualified-id before numeric constant
239 | int 1;
| ^
main.cpp:253:7: error: lvalue required as left operand of assignment
253 | for(1=(0);1<(X+1);1++){
| ^
main.cpp:253:21: error: lvalue required as increment operand
253 | for(1=(0);1<(X+1);1++){
| ^
main.cpp:255:47: error: ‘x’ was not declared in this scope
255 | remove_reference<decltype(B[bs24PFPc]-abs(x-A[bs24PFPc]))>::type R5MtCiij;
| ^
main.cpp:255:62: error: template argument 1 is invalid
255 | remove_reference<decltype(B[bs24PFPc]-abs(x-A[bs24PFPc]))>::type R5MtCiij;
| ^
main.cpp:255:70: error: expected initializer before ‘R5MtCiij’
255 | remove_reference<decltype(B[bs24PFPc]-abs(x-A[bs24PFPc]))>::type R5MtCiij;
| ^~~~~~~~
main.cpp:258:7: error: ‘R5MtCiij’ was not declared in this scope
258 | R5MtCiij = 0;
| ^~~~~~~~
main.cpp:263:11: error: ‘R5MtCiij’ was not declared in this scope
263 | R5MtCiij =max_L(B[bs24PFPc]-abs(x-A[bs24PFPc]), 0);
| ^~~~~~~~
main.cpp:267:9: error: ‘R5MtCiij’ was not declared in this scope
267 | R5MtCiij +=max_L(B[bs24PFPc]-abs(x-A[bs24PFPc]), 0);
| ^~~~~~~~
main.cpp:270:9: error: ‘R5MtCiij’ was not declared in this scope
270 | R5MtCiij = 0;
| ^~~~~~~~
main.cpp:273:11: error: ‘R5MtCiij’ was not declared in this scope
273 | wt_L((R5MtCiij));
| ^~~~~~~~
ソースコード
ll@N,@X,@(A,B)[N];rep(1,X+1)wtSp(sum[i,0,N](max(B[i]-abs(x-A[i]),0)));