結果
問題 |
No.531 エヌスクミ島の平和協定
|
ユーザー |
![]() |
提出日時 | 2017-06-23 22:25:31 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 453 bytes |
コンパイル時間 | 842 ms |
コンパイル使用メモリ | 91,896 KB |
実行使用メモリ | 5,248 KB |
最終ジャッジ日時 | 2024-10-05 11:12:20 |
合計ジャッジ時間 | 2,042 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 1 WA * 1 |
other | AC * 6 WA * 31 |
コンパイルメッセージ
main.cpp: In function 'int main()': main.cpp:21:27: warning: 'n' is used uninitialized [-Wuninitialized] 21 | cout << (n <= m ? 1 : -1) << endl; | ^ main.cpp:20:7: note: 'n' was declared here 20 | int n, m; | ^ main.cpp:21:27: warning: 'm' is used uninitialized [-Wuninitialized] 21 | cout << (n <= m ? 1 : -1) << endl; | ^ main.cpp:20:10: note: 'm' was declared here 20 | int n, m; | ^
ソースコード
#include <algorithm> #include <cstdio> #include <iostream> #include <iomanip> #include <map> #include <cmath> #include <queue> #include <set> #include <sstream> #include <stack> #include <string> #include <vector> #include <stdlib.h> #include <stdio.h> #include <bitset> using namespace std; #define FOR(I,A,B) for(int I = (A); I < (B); ++I) //全員乗れるか乗れないか int main(){ int n, m; cout << (n <= m ? 1 : -1) << endl; return 0; }