結果
問題 | No.395 永遠の17歳 |
ユーザー |
![]() |
提出日時 | 2016-11-02 16:02:38 |
言語 | C90 (gcc 12.3.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 140 bytes |
コンパイル時間 | 99 ms |
コンパイル使用メモリ | 20,096 KB |
実行使用メモリ | 6,820 KB |
最終ジャッジ日時 | 2024-11-25 01:30:04 |
合計ジャッジ時間 | 721 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 15 WA * 2 |
コンパイルメッセージ
main.c: In function ‘main’: main.c:8:9: warning: ignoring return value of ‘scanf’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 8 | scanf("%d", &age); | ^~~~~~~~~~~~~~~~~
ソースコード
#include <stdio.h> int main() { int age; scanf("%d", &age); if(age < 17) printf("-1"); else printf("%d", age-7); return 0; }