結果
| 問題 | No.244 ★1のグラフの問題 |
| コンテスト | |
| ユーザー |
gotutiyan
|
| 提出日時 | 2017-09-29 16:19:45 |
| 言語 | C++14 (gcc 13.3.0 + boost 1.89.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 461 bytes |
| 記録 | |
| コンパイル時間 | 872 ms |
| コンパイル使用メモリ | 77,708 KB |
| 実行使用メモリ | 5,248 KB |
| 最終ジャッジ日時 | 2024-11-15 19:54:54 |
| 合計ジャッジ時間 | 1,408 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | WA * 3 |
| other | WA * 7 |
コンパイルメッセージ
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;
| ^
ソースコード
#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;
}
gotutiyan