結果
| 問題 |
No.530 年齢って毎年変わるし覚えるの難しいよね
|
| コンテスト | |
| ユーザー |
じゃがりこ
|
| 提出日時 | 2018-08-10 18:26:35 |
| 言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
| 結果 |
RE
|
| 実行時間 | - |
| コード長 | 96 bytes |
| コンパイル時間 | 554 ms |
| コンパイル使用メモリ | 21,632 KB |
| 実行使用メモリ | 5,376 KB |
| 最終ジャッジ日時 | 2024-09-23 05:50:21 |
| 合計ジャッジ時間 | 8,473 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | RE * 48 |
コンパイルメッセージ
main.cpp: In function ‘int main()’:
main.cpp:5:13: warning: format ‘%d’ expects argument of type ‘int*’, but argument 2 has type ‘int’ [-Wformat=]
5 | scanf("%d" ,Y);
| ~^ ~
| | |
| | int
| int*
main.cpp:5:10: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
5 | scanf("%d" ,Y);
| ~~~~~^~~~~~~~~
main.cpp:5:10: warning: ‘Y’ is used uninitialized [-Wuninitialized]
5 | scanf("%d" ,Y);
| ~~~~~^~~~~~~~~
ソースコード
#include <stdio.h>
int main(){
int Y;
scanf("%d" ,Y);
printf("%d" ,2017 - Y);
}
じゃがりこ