結果
| 問題 |
No.692 square1001 and Permutation 1
|
| ユーザー |
|
| 提出日時 | 2018-06-08 22:24:57 |
| 言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 222 bytes |
| コンパイル時間 | 1,471 ms |
| コンパイル使用メモリ | 164,540 KB |
| 実行使用メモリ | 6,944 KB |
| 最終ジャッジ日時 | 2024-06-30 10:46:31 |
| 合計ジャッジ時間 | 1,932 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 WA * 1 |
| other | AC * 4 WA * 1 |
コンパイルメッセージ
main.cpp: In function 'int main()':
main.cpp:8:3: warning: 'n' is used uninitialized [-Wuninitialized]
8 | if(n==1) cout << "square1001" << endl;
| ^~
main.cpp:7:7: note: 'n' was declared here
7 | int n;
| ^
ソースコード
#include <bits/stdc++.h>
using namespace std;
#define ll long long
#define rep(i,n) for(int (i)=0;(i)<(n);(i)++)
int main() {
int n;
if(n==1) cout << "square1001" << endl;
else cout << "Petr" << endl;
return 0;
}