結果
問題 | No.646 逆ピラミッド |
ユーザー | extelo |
提出日時 | 2018-02-12 17:58:55 |
言語 | C++17 (gcc 12.3.0 + boost 1.83.0) |
結果 |
RE
|
実行時間 | - |
コード長 | 171 bytes |
コンパイル時間 | 846 ms |
コンパイル使用メモリ | 66,092 KB |
実行使用メモリ | 4,384 KB |
最終ジャッジ日時 | 2023-08-16 08:12:11 |
合計ジャッジ時間 | 3,157 ms |
ジャッジサーバーID (参考情報) |
judge12 / judge14 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
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:6:6: 警告: ‘num’ is used uninitialized [-Wuninitialized] 6 | scanf("%d\n", num); | ~~~~~^~~~~~~~~~~~~ main.cpp:5:5: 備考: ‘num’ はここで定義されています 5 | int num; | ^~~
ソースコード
#include <iostream> int main(void) { int num; scanf("%d\n", num); for(int i = num; i>0; i--) { for(int j = i; j>0; j--){ printf("%d", num); } printf("\n"); } return 0; }