結果

問題 No.46 はじめのn歩
ユーザー LondLond
提出日時 2024-01-07 12:24:38
言語 C++14
(gcc 12.3.0 + boost 1.83.0)
結果
RE  
実行時間 -
コード長 102 bytes
コンパイル時間 283 ms
コンパイル使用メモリ 29,696 KB
実行使用メモリ 6,676 KB
最終ジャッジ日時 2024-01-07 12:24:40
合計ジャッジ時間 2,311 ms
ジャッジサーバーID
(参考情報)
judge13 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
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:14: warning: 'a' is used uninitialized [-Wuninitialized]
    5 |         scanf("%s",a);
      |         ~~~~~^~~~~~~~
main.cpp:4:13: note: 'a' was declared here
    4 |         int a,b;
      |             ^
main.cpp:6:14: warning: 'b' is used uninitialized [-Wuninitialized]
    6 |         scanf("%s",b);
      |         ~~~~~^~~~~~~~
main.cpp:4:15: note: 'b' was declared here
    4 |         int a,b;
      |               ^

ソースコード

diff #

#include <stdio.h>

int main(void){
	int a,b;
	scanf("%s",a);
	scanf("%s",b);
	
	printf("%d",b/a+1);
}
0