結果
| 問題 |
No.5 数字のブロック
|
| コンテスト | |
| ユーザー |
sasa
|
| 提出日時 | 2025-02-28 16:11:10 |
| 言語 | C (gcc 13.3.0) |
| 結果 |
RE
|
| 実行時間 | - |
| コード長 | 210 bytes |
| コンパイル時間 | 651 ms |
| コンパイル使用メモリ | 23,552 KB |
| 実行使用メモリ | 8,236 KB |
| 最終ジャッジ日時 | 2025-02-28 16:11:15 |
| 合計ジャッジ時間 | 5,171 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | RE * 34 |
コンパイルメッセージ
main.c: In function ‘main’:
main.c:6:13: warning: format ‘%d’ expects argument of type ‘int *’, but argument 2 has type ‘int’ [-Wformat=]
6 | scanf("%d", bigbox);
| ~^ ~~~~~~
| | |
| | int
| int *
main.c:9:13: warning: format ‘%d’ expects argument of type ‘int *’, but argument 2 has type ‘int’ [-Wformat=]
9 | scanf("%d", len);
| ~^ ~~~
| | |
| | int
| int *
main.c:6:5: warning: ignoring return value of ‘scanf’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
6 | scanf("%d", bigbox);
| ^~~~~~~~~~~~~~~~~~~
main.c:9:5: warning: ignoring return value of ‘scanf’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
9 | scanf("%d", len);
| ^~~~~~~~~~~~~~~~
ソースコード
#include <stdio.h>
#include <stdlib.h>
int main(void){
// 大きい箱
int bigbox = 0;
scanf("%d", bigbox);
printf("%d",bigbox);
int len = 0;
scanf("%d", len);
printf("%d",bigbox);
}
sasa