結果
問題 | No.1505 Zero-Product Ranges |
ユーザー | harurun |
提出日時 | 2021-05-14 23:17:39 |
言語 | cLay (20240420-1) |
結果 |
CE
|
実行時間 | - |
コード長 | 65 bytes |
コンパイル時間 | 1,801 ms |
コンパイル使用メモリ | 150,772 KB |
最終ジャッジ日時 | 2023-09-19 02:23:28 |
合計ジャッジ時間 | 2,467 ms |
ジャッジサーバーID (参考情報) |
judge15 / judge13 |
(要ログイン)
コンパイルエラー時のメッセージ・ソースコードは、提出者また管理者しか表示できないようにしております。(リジャッジ後のコンパイルエラーは公開されます)
ただし、clay言語の場合は開発者のデバッグのため、公開されます。
ただし、clay言語の場合は開発者のデバッグのため、公開されます。
コンパイルメッセージ
main.cpp: In function ‘int main()’: main.cpp:139:7: error: expected ‘}’ before ‘else’ else b+=(c=i+1); ^~~~ main.cpp:137:13: note: to match this ‘{’ if(a[i]){ ^ main.cpp: At global scope: main.cpp:142:7: error: expected constructor, destructor, or type conversion before ‘(’ token wt_L(b); ^ main.cpp:143:7: error: expected constructor, destructor, or type conversion before ‘(’ token wt_L('\n'); ^ main.cpp:144:3: error: expected unqualified-id before ‘return’ return 0; ^~~~~~ main.cpp:145:1: error: expected declaration before ‘}’ token } ^
ソースコード
ll b,c;{ll@n;VI@a(n);rep(i,n)if(a[i])b+=c,else b+=(c=i+1);wt(b);}