結果
| 問題 |
No.750 Frac #1
|
| コンテスト | |
| ユーザー |
sasa
|
| 提出日時 | 2025-03-10 10:32:02 |
| 言語 | C (gcc 13.3.0) |
| 結果 |
RE
|
| 実行時間 | - |
| コード長 | 219 bytes |
| コンパイル時間 | 255 ms |
| コンパイル使用メモリ | 25,472 KB |
| 実行使用メモリ | 7,328 KB |
| 最終ジャッジ日時 | 2025-03-10 10:32:07 |
| 合計ジャッジ時間 | 4,961 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | RE * 3 |
| other | RE * 30 |
コンパイルメッセージ
main.c: In function ‘main’:
main.c:10:33: warning: format ‘%d’ expects argument of type ‘int *’, but argument 2 has type ‘int’ [-Wformat=]
10 | scanf("%d",val[j][i]);
| ~^ ~~~~~~~~~
| | |
| int * int
main.c:5:9: warning: ignoring return value of ‘scanf’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
5 | scanf("%d",&num);
| ^~~~~~~~~~~~~~~~
main.c:10:25: warning: ignoring return value of ‘scanf’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
10 | scanf("%d",val[j][i]);
| ^~~~~~~~~~~~~~~~~~~~~
ソースコード
#include <stdio.h>
int main(){
int num = 0;
scanf("%d",&num);
int val[2][num];
for(int i = 0;i < num;i++){
for(int j = 0;j < 2;j++){
scanf("%d",val[j][i]);
printf("%d",val[j][i]);
}
printf("\n");
}
}
sasa