結果

問題 No.926 休日の平均
コンテスト
ユーザー ei13337
提出日時 2019-11-22 21:22:25
言語 C++14
(gcc 15.2.0 + boost 1.89.0)
コンパイル:
g++-15 -O2 -lm -std=c++14 -Wuninitialized -DONLINE_JUDGE -o a.out _filename_
実行:
./a.out
結果
WA  
実行時間 -
コード長 257 bytes
記録
記録タグの例:
初AC ショートコード 純ショートコード 純主流ショートコード 最速実行時間
コンパイル時間 450 ms
コンパイル使用メモリ 92,944 KB
実行使用メモリ 7,976 KB
最終ジャッジ日時 2026-04-27 08:44:53
合計ジャッジ時間 1,560 ms
ジャッジサーバーID
(参考情報)
judge2_0 / judge1_1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other WA * 24
権限があれば一括ダウンロードができます
コンパイルメッセージ
main.cpp: In function 'int main()':
main.cpp:13:15: warning: 'a' is used uninitialized [-Wuninitialized]
   13 |     cout << a * c / ((long double)b) << endl;
      |             ~~^~~
main.cpp:12:9: note: 'a' was declared here
   12 |     int a, b, c;
      |         ^
main.cpp:13:15: warning: 'c' is used uninitialized [-Wuninitialized]
   13 |     cout << a * c / ((long double)b) << endl;
      |             ~~^~~
main.cpp:12:15: note: 'c' was declared here
   12 |     int a, b, c;
      |               ^
main.cpp:13:22: warning: 'b' is used uninitialized [-Wuninitialized]
   13 |     cout << a * c / ((long double)b) << endl;
      |                     ~^~~~~~~~~~~~~~~
main.cpp:12:12: note: 'b' was declared here
   12 |     int a, b, c;
      |            ^

ソースコード

diff #
raw source code

#include <iostream>
#include <vector>
#include <queue>
#include <stack>
#include <set>
#include <map>
#include <iomanip>
using namespace std;
using ll = long long;

int main() {
    int a, b, c;
    cout << a * c / ((long double)b) << endl;
    return 0;
}
0