結果
| 問題 |
No.750 Frac #1
|
| コンテスト | |
| ユーザー |
sasa
|
| 提出日時 | 2025-03-10 10:32:52 |
| 言語 | C (gcc 13.3.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 220 bytes |
| コンパイル時間 | 270 ms |
| コンパイル使用メモリ | 25,472 KB |
| 実行使用メモリ | 7,328 KB |
| 最終ジャッジ日時 | 2025-03-10 10:32:53 |
| 合計ジャッジ時間 | 1,477 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| 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[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