結果
| 問題 |
No.750 Frac #1
|
| コンテスト | |
| ユーザー |
sasa
|
| 提出日時 | 2025-03-10 10:45:54 |
| 言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
RE
|
| 実行時間 | - |
| コード長 | 251 bytes |
| コンパイル時間 | 430 ms |
| コンパイル使用メモリ | 28,416 KB |
| 実行使用メモリ | 7,328 KB |
| 最終ジャッジ日時 | 2025-03-10 10:45:58 |
| 合計ジャッジ時間 | 3,670 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | WA * 1 RE * 2 |
| other | WA * 16 RE * 14 |
コンパイルメッセージ
main.cpp: In function ‘int main()’:
main.cpp:11:33: warning: format ‘%d’ expects argument of type ‘int*’, but argument 2 has type ‘double*’ [-Wformat=]
11 | scanf("%d",&value[i][j]);
| ~^ ~~~~~~~~~~~~
| | |
| | double*
| int*
| %le
main.cpp:12:34: warning: format ‘%d’ expects argument of type ‘int’, but argument 2 has type ‘double’ [-Wformat=]
12 | printf("%d ",value[i][j]);
| ~^ ~~~~~~~~~~~
| | |
| int double
| %f
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("%d",&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("%d",&value[i][j]);
printf("%d ",value[i][j]);
}
printf("\n");
}
}
sasa