結果
問題 |
No.750 Frac #1
|
ユーザー |
![]() |
提出日時 | 2025-03-10 10:53:52 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
RE
|
実行時間 | - |
コード長 | 257 bytes |
コンパイル時間 | 152 ms |
コンパイル使用メモリ | 27,904 KB |
実行使用メモリ | 7,328 KB |
最終ジャッジ日時 | 2025-03-10 10:53:56 |
合計ジャッジ時間 | 3,421 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
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(void){ 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"); } }