結果

問題 No.244 ★1のグラフの問題
ユーザー tokizotokizo
提出日時 2018-01-09 22:42:05
言語 C++14
(gcc 12.3.0 + boost 1.83.0)
結果
WA  
実行時間 -
コード長 423 bytes
コンパイル時間 1,137 ms
コンパイル使用メモリ 74,424 KB
実行使用メモリ 4,500 KB
最終ジャッジ日時 2023-08-25 02:27:18
合計ジャッジ時間 1,426 ms
ジャッジサーバーID
(参考情報)
judge11 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
testcase_01 WA -
testcase_02 WA -
testcase_03 WA -
testcase_04 WA -
testcase_05 WA -
testcase_06 WA -
testcase_07 WA -
testcase_08 WA -
testcase_09 WA -
権限があれば一括ダウンロードができます
コンパイルメッセージ
main.cpp: 関数 ‘int main()’ 内:
main.cpp:20:17: 警告: ‘n’ is used uninitialized [-Wuninitialized]
   20 |     cout << n - 1 << endl;
      |                 ^
main.cpp:19:9: 備考: ‘n’ はここで定義されています
   19 |     int n;
      |         ^

ソースコード

diff #

#include <iostream>
#include <math.h>
#include <algorithm>
#include <functional>
#include <vector>
#include <typeinfo>
#include <climits>
#include <ctype.h>
#include <string>
using namespace std;
#define INIT cin.tie(0); ios::sync_with_stdio(false);
#define FOR(i, a, n) for (int i = a; i < n; i++)
#define REP(i, n) for(int i = 0; i < n; i++)

int main()
{
    INIT;

    int n;
    cout << n - 1 << endl;

    return 0;
}
0