結果
| 問題 |
No.750 Frac #1
|
| コンテスト | |
| ユーザー |
sasa
|
| 提出日時 | 2025-03-10 10:46:49 |
| 言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
RE
|
| 実行時間 | - |
| コード長 | 252 bytes |
| コンパイル時間 | 380 ms |
| コンパイル使用メモリ | 28,032 KB |
| 実行使用メモリ | 7,328 KB |
| 最終ジャッジ日時 | 2025-03-10 10:46:53 |
| 合計ジャッジ時間 | 4,022 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | WA * 1 RE * 2 |
| other | WA * 11 RE * 19 |
コンパイルメッセージ
main.cpp: In function ‘int main()’:
main.cpp:5:14: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
5 | scanf("%d",&num);
| ~~~~~^~~~~~~~~~~
main.cpp:11:30: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
11 | scanf("%lf",&value[i][j]);
| ~~~~~^~~~~~~~~~~~~~~~~~~~
ソースコード
#include <stdio.h>
int main(){
int num = 0;
scanf("%d",&num);
printf("%d\n",num);
double value[2][num];
for(int i = 0;i < num;i++){
for(int j = 0;j < 2;j++){
scanf("%lf",&value[i][j]);
printf("%f ",value[i][j]);
}
printf("\n");
}
}
sasa