結果
| 問題 |
No.530 年齢って毎年変わるし覚えるの難しいよね
|
| コンテスト | |
| ユーザー |
suppy193
|
| 提出日時 | 2020-03-20 14:18:27 |
| 言語 | C90 (gcc 12.3.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 128 bytes |
| コンパイル時間 | 103 ms |
| コンパイル使用メモリ | 19,712 KB |
| 実行使用メモリ | 6,824 KB |
| 最終ジャッジ日時 | 2024-12-14 04:10:39 |
| 合計ジャッジ時間 | 1,634 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 1 WA * 47 |
コンパイルメッセージ
main.c: In function ‘main’:
main.c:6:5: warning: ignoring return value of ‘scanf’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
6 | scanf("%d", &year);
| ^~~~~~~~~~~~~~~~~~
ソースコード
#include <stdio.h>
int main(void)
{
int year;
scanf("%d", &year);
printf("%d\n", year - 2017);
return 0;
}
suppy193