結果

問題 No.8124 A+B
コンテスト
ユーザー kirameku
提出日時 2026-04-01 21:36:37
言語 C++23
(gcc 15.2.0 + boost 1.89.0)
コンパイル:
g++-15 -O2 -lm -std=c++23 -Wuninitialized -DONLINE_JUDGE -o a.out _filename_
実行:
./a.out
結果
WA  
実行時間 -
コード長 526 bytes
記録
記録タグの例:
初AC ショートコード 純ショートコード 純主流ショートコード 最速実行時間
コンパイル時間 6,333 ms
コンパイル使用メモリ 374,828 KB
実行使用メモリ 382,668 KB
最終ジャッジ日時 2026-04-01 21:36:49
合計ジャッジ時間 11,014 ms
ジャッジサーバーID
(参考情報)
judge1_1 / judge2_0
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample WA * 3
other WA * 6
権限があれば一括ダウンロードができます
コンパイルメッセージ
main.cpp: In function 'int main()':
main.cpp:21:17: warning: 'A' is used uninitialized [-Wuninitialized]
   21 |     cout << A + B;
      |                 ^
main.cpp:20:8: note: 'A' was declared here
   20 |     ll A, B;
      |        ^
main.cpp:21:17: warning: 'B' is used uninitialized [-Wuninitialized]
   21 |     cout << A + B;
      |                 ^
main.cpp:20:11: note: 'B' was declared here
   20 |     ll A, B;
      |           ^

ソースコード

diff #
raw source code

#include <bits/stdc++.h>
using namespace std;
#include <atcoder/all>
using namespace atcoder;

typedef unsigned int uint;
typedef long long int ll;
typedef unsigned long long ull;
typedef long double ld;

#define loop while(1)
#define rep(i,n) for(ll i=0;(i)<(n);(i)++)
#define REP(i,a,n) for(ll i=(a);(i)<(n);(i)++)
#define modi(a,b) (a%b+b)%b
#define all(x) x.begin(), x.end()
#define debug(x) cerr << #x << " = " << x << endl
#define dout()  cout << fixed << setprecision(20)

int main(){
    ll A, B;
    cout << A + B;
}
0