結果
| 問題 | No.46 はじめのn歩 |
| コンテスト | |
| ユーザー |
Elizack
|
| 提出日時 | 2020-01-20 14:00:27 |
| 言語 | C++14 (gcc 15.2.0 + boost 1.89.0) |
| 結果 |
RE
|
| 実行時間 | - |
| コード長 | 143 bytes |
| 記録 | |
| コンパイル時間 | 367 ms |
| コンパイル使用メモリ | 71,552 KB |
| 実行使用メモリ | 6,144 KB |
| 最終ジャッジ日時 | 2026-03-24 06:12:50 |
| 合計ジャッジ時間 | 2,233 ms |
|
ジャッジサーバーID (参考情報) |
judge3_0 / judge2_1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| 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;
| ^
ソースコード
#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;
}
Elizack