結果

問題 No.46 はじめのn歩
ユーザー 簡野圭太簡野圭太
提出日時 2021-08-07 08:33:07
言語 C++14
(gcc 12.3.0 + boost 1.83.0)
結果
RE  
実行時間 -
コード長 104 bytes
コンパイル時間 358 ms
コンパイル使用メモリ 29,644 KB
実行使用メモリ 4,348 KB
最終ジャッジ日時 2023-10-17 14:39:21
合計ジャッジ時間 2,152 ms
ジャッジサーバーID
(参考情報)
judge11 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 RE -
testcase_01 RE -
testcase_02 RE -
testcase_03 RE -
testcase_04 RE -
testcase_05 RE -
testcase_06 RE -
testcase_07 RE -
testcase_08 RE -
testcase_09 RE -
権限があれば一括ダウンロードができます
コンパイルメッセージ
main.cpp: In function 'int main()':
main.cpp:5:26: warning: 'b' is used uninitialized [-Wuninitialized]
    5 |         printf("%d\n",(b + a - 1) / a);
      |                        ~~^~~
main.cpp:4:11: note: 'b' was declared here
    4 |     int a,b;
      |           ^
main.cpp:5:26: warning: 'a' is used uninitialized [-Wuninitialized]
    5 |         printf("%d\n",(b + a - 1) / a);
      |                        ~~^~~
main.cpp:4:9: note: 'a' was declared here
    4 |     int a,b;
      |         ^

ソースコード

diff #

#include <stdio.h>

int main(void){
    int a,b;
        printf("%d\n",(b + a - 1) / a);
    return 0;
}
0