結果

問題 No.244 ★1のグラフの問題
ユーザー gotutiyangotutiyan
提出日時 2017-09-29 16:19:45
言語 C++14
(gcc 12.3.0 + boost 1.83.0)
結果
WA  
実行時間 -
コード長 461 bytes
コンパイル時間 568 ms
コンパイル使用メモリ 77,888 KB
実行使用メモリ 6,948 KB
最終ジャッジ日時 2024-04-27 16:20:13
合計ジャッジ時間 1,036 ms
ジャッジサーバーID
(参考情報)
judge4 / judge1
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
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: In function 'int main()':
main.cpp:30:18: warning: 'n' is used uninitialized [-Wuninitialized]
   30 |         cout << n-- << endl;
      |                  ^~
main.cpp:29:13: note: 'n' was declared here
   29 |         int n;
      |             ^

ソースコード

diff #

#include <iostream>
#include <string>
#include <vector>
#include <cmath>
#include <fstream>
#include <set>
#include <utility>
#include <algorithm>

#define rep(i,p,n) for(int i=p;i<n;i++)
#define lli long long int
#define vi vector<int> 

using namespace std;

int max(int x, int y) {
	int a;
	(x > y) ? a = x : a = y;
	return a;
}

int min(int x, int y) {
	int a;
	(x < y) ? a = x : a = y;
	return a;
}

int main() {
	int n;
	cout << n-- << endl;
	return 0;
}
0