結果
問題 | No.46 はじめのn歩 |
ユーザー | Elizack |
提出日時 | 2020-01-20 14:00:27 |
言語 | C++14 (gcc 12.3.0 + boost 1.83.0) |
結果 |
RE
|
実行時間 | - |
コード長 | 143 bytes |
コンパイル時間 | 554 ms |
コンパイル使用メモリ | 62,616 KB |
実行使用メモリ | 4,500 KB |
最終ジャッジ日時 | 2023-09-15 20:54:31 |
合計ジャッジ時間 | 2,691 ms |
ジャッジサーバーID (参考情報) |
judge13 / judge15 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
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: 関数 ‘int main()’ 内: main.cpp:8:14: 警告: ‘a’ is used uninitialized [-Wuninitialized] 8 | scanf("%d%d",a,b); | ~~~~~^~~~~~~~~~~~ main.cpp:6:13: 備考: ‘a’ はここで定義されています 6 | int a,b; | ^ main.cpp:8:14: 警告: ‘b’ is used uninitialized [-Wuninitialized] 8 | scanf("%d%d",a,b); | ~~~~~^~~~~~~~~~~~ main.cpp:6:15: 備考: ‘b’ はここで定義されています 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; }