結果

問題 No.8110 WIP Editorial
ユーザー nu50218
提出日時 2024-04-01 22:45:03
言語 C++17
(gcc 13.3.0 + boost 1.87.0)
結果
RE  
実行時間 -
コード長 672 bytes
コンパイル時間 3,059 ms
コンパイル使用メモリ 215,428 KB
最終ジャッジ日時 2025-02-20 19:21:02
ジャッジサーバーID
(参考情報)
judge1 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample RE * 1
other RE * 8
権限があれば一括ダウンロードができます
コンパイルメッセージ
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:6:
main.cpp: In function ‘void solve(int)’:
main.cpp:25:19: warning: ‘t’ is used uninitialized [-Wuninitialized]
   25 |     assert(1 <= t && t <= 3);
      |            ~~~~~~~^~~~~~~~~
main.cpp:24:9: note: ‘t’ was declared here
   24 |     int t;
      |         ^

ソースコード

diff #

#ifdef LOCAL
#include <local.hpp>
#else
#pragma GCC optimize("O3,unroll-loops")
#pragma GCC target("avx2,popcnt,lzcnt,abm,bmi,bmi2")
#include <bits/stdc++.h>
#define debug(...) ((void)0)
#define postprocess(...) ((void)0)
#endif

using namespace std;
using ll = long long;
using ld = long double;

void solve([[maybe_unused]] int test) {
    int N, Q;
    cin >> N >> Q;

    for (int i = 0; i < N; i++) {
        int x;
        cin >> x;
    }

    int t;
    assert(1 <= t && t <= 3);
}

int main() {
    ios::sync_with_stdio(false);
    cin.tie(nullptr);

    int t = 1;
    // cin >> t;
    for (int i = 1; i <= t; i++) {
        solve(i);
    }

    postprocess();
}
0