ログイン
新規登録
Summer Camp Problems Selection
Permanent Contest
Home
Tasks
Clar
Submissions
Standings
提出 7148c400-0b29-4d87-8a08-c0201871e19c
コード
#include <bits/stdc++.h> using namespace std; int main() { int n; cin >> n; assert(n == 1024); for (int i = 0; i < n; i++) { int t; cin >> t; assert(0 <= t && t <= 1000); } int q; cin >> q; assert(1 <= q <= 1000); while (q--) { int t, a, b; cin >> t >> a >> b; if (t == 1) { assert(1 <= a && a <= n); assert(0 <= b && b <= 1000); } else { assert(1 <= l && l < r && r <= n + 1); } } }
結果
問題
点数
言語
結果
実行時間
メモリ
SegTree - segment tree
0
C++
WJ
0 ms
0 KiB
コンパイルエラー
In file included from /usr/include/c++/13/cassert:44, from /usr/include/x86_64-linux-gnu/c++/13/bits/stdc++.h:106, from Main.cpp:1: Main.cpp: In function 'int main()': Main.cpp:20:25: error: 'l' was not declared in this scope 20 | assert(1 <= l && l < r && r <= n + 1); | ^ Main.cpp:20:34: error: 'r' was not declared in this scope 20 | assert(1 <= l && l < r && r <= n + 1); | ^