結果
| 問題 |
No.1485 運賃
|
| コンテスト | |
| ユーザー |
iwa_choco_168
|
| 提出日時 | 2019-12-01 17:17:21 |
| 言語 | C (gcc 13.3.0) |
| 結果 |
RE
|
| 実行時間 | - |
| コード長 | 117 bytes |
| コンパイル時間 | 114 ms |
| コンパイル使用メモリ | 27,008 KB |
| 実行使用メモリ | 5,376 KB |
| 最終ジャッジ日時 | 2024-07-04 07:18:56 |
| 合計ジャッジ時間 | 1,667 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | RE * 2 |
| other | RE * 5 |
コンパイルメッセージ
main.c: In function 'main':
main.c:7:14: warning: passing argument 1 of 'printf' makes pointer from integer without a cast [-Wint-conversion]
7 | printf(a + b);
| ~~^~~
| |
| int
In file included from main.c:1:
/usr/include/stdio.h:356:43: note: expected 'const char * restrict' but argument is of type 'int'
356 | extern int printf (const char *__restrict __format, ...);
| ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~
ソースコード
#include <stdio.h>
int main() {
int a;
int b;
scanf("%d %d", &a, &b);
printf(a + b);
return 0;
}
iwa_choco_168