結果
| 問題 |
No.383 レーティング
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2024-11-15 10:45:49 |
| 言語 | C++23 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 182 bytes |
| コンパイル時間 | 996 ms |
| コンパイル使用メモリ | 78,928 KB |
| 実行使用メモリ | 6,824 KB |
| 最終ジャッジ日時 | 2024-11-15 10:45:51 |
| 合計ジャッジ時間 | 1,952 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 1 WA * 13 |
コンパイルメッセージ
main.cpp: In function 'int main()':
main.cpp:9:11: warning: 'b' is used uninitialized [-Wuninitialized]
9 | b -= a;
| ~~^~~~
main.cpp:7:15: note: 'b' was declared here
7 | int a,b;
| ^
main.cpp:9:11: warning: 'a' is used uninitialized [-Wuninitialized]
9 | b -= a;
| ~~^~~~
main.cpp:7:13: note: 'a' was declared here
7 | int a,b;
| ^
ソースコード
#include <iostream>
using namespace std;
int main() {
int a,b;
b -= a;
if(b == 0) {
cout << 0;
} else if(b > 0) {
cout << "+" << b;
} else {
cout << "-" << b;
}
}