結果

問題 No.46 はじめのn歩
ユーザー ElizackElizack
提出日時 2020-01-20 14:00:27
言語 C++14
(gcc 13.3.0 + boost 1.87.0)
結果
RE  
実行時間 -
コード長 143 bytes
コンパイル時間 579 ms
コンパイル使用メモリ 62,880 KB
実行使用メモリ 6,944 KB
最終ジャッジ日時 2024-07-02 22:27:20
合計ジャッジ時間 3,088 ms
ジャッジサーバーID
(参考情報)
judge4 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other RE * 10
権限があれば一括ダウンロードができます
コンパイルメッセージ
main.cpp: In function 'int main()':
main.cpp:8:14: warning: 'a' is used uninitialized [-Wuninitialized]
    8 |         scanf("%d%d",a,b);
      |         ~~~~~^~~~~~~~~~~~
main.cpp:6:13: note: 'a' was declared here
    6 |         int a,b;
      |             ^
main.cpp:8:14: warning: 'b' is used uninitialized [-Wuninitialized]
    8 |         scanf("%d%d",a,b);
      |         ~~~~~^~~~~~~~~~~~
main.cpp:6:15: note: 'b' was declared here
    6 |         int a,b;
      |               ^

ソースコード

diff #

#include <iostream>

using namespace std;

int main(){
	int a,b;
	int ans;
	scanf("%d%d",a,b);
	ans = b/a;
	cout << ans << endl;
	
	return 0;
}
0