結果
| 問題 |
No.750 Frac #1
|
| コンテスト | |
| ユーザー |
sasa
|
| 提出日時 | 2025-03-10 10:34:52 |
| 言語 | C (gcc 13.3.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 220 bytes |
| コンパイル時間 | 312 ms |
| コンパイル使用メモリ | 25,216 KB |
| 実行使用メモリ | 7,328 KB |
| 最終ジャッジ日時 | 2025-03-10 10:34:54 |
| 合計ジャッジ時間 | 1,922 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | WA * 3 |
| other | WA * 30 |
コンパイルメッセージ
main.c: In function ‘main’:
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[i][j]);
| ^~~~~~~~~~~~~~~~~~~~~~
ソースコード
#include <stdio.h>
int main(){
int num = 0;
scanf("%d",&num);
int val[num][2];
for(int i = 0;i < num;i++){
for(int j = 0;j < 2;j++){
scanf("%d",&val[i][j]);
printf("%d",val[i][j]);
}
printf("\n");
}
}
sasa