結果
問題 |
No.8058 M + D Problem
|
ユーザー |
![]() |
提出日時 | 2020-04-01 21:25:32 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 169 bytes |
コンパイル時間 | 1,505 ms |
コンパイル使用メモリ | 164,832 KB |
実行使用メモリ | 6,944 KB |
最終ジャッジ日時 | 2024-06-27 08:06:02 |
合計ジャッジ時間 | 2,734 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 1 WA * 14 |
コンパイルメッセージ
main.cpp: In function 'int main()': main.cpp:7:15: warning: 'm' is used uninitialized [-Wuninitialized] 7 | if (m == 4 && d == 1)cout << 1000 << endl; | ~~^~~~ main.cpp:6:13: note: 'm' was declared here 6 | int m, d; | ^ main.cpp:7:25: warning: 'd' is used uninitialized [-Wuninitialized] 7 | if (m == 4 && d == 1)cout << 1000 << endl; | ~~^~~~ main.cpp:6:16: note: 'd' was declared here 6 | int m, d; | ^
ソースコード
#include<bits/stdc++.h> #define int long long using namespace std; signed main() { int m, d; if (m == 4 && d == 1)cout << 1000 << endl; else cout << m + d << endl; }