Submission #02267
ソースコード
ステータス
コンパイルメッセージ
./Main.cpp:8:2: error: ‘h’ does not name a type
h[111111], h2[111111];
^
./Main.cpp: In function ‘int main()’:
./Main.cpp:18:12: error: ‘h’ was not declared in this scope
cin >> h[i] >> flag[i];
^
./Main.cpp:41:2: error: ‘h’ was not declared in this scope
h[i] += t;
^
./Main.cpp:44:2: error: ‘h’ was not declared in this scope
h[i] -= t;
^
./Main.cpp:46:11: error: ‘h’ was not declared in this scope
if (h[i-1] > h[i] && flag[i-1] == 0 && i != 0) {
^
./Main.cpp:56:13: error: ‘h’ was not declared in this scope
cout << h[p[i]-1] << endl;
^
セット
テストケース