結果
| 問題 | No.395 永遠の17歳 |
| コンテスト | |
| ユーザー |
takun0131
|
| 提出日時 | 2016-07-31 00:06:46 |
| 言語 | C90(gcc12) (gcc 12.4.0) |
| 結果 |
RE
|
| 実行時間 | - |
| コード長 | 138 bytes |
| 記録 | |
| コンパイル時間 | 171 ms |
| コンパイル使用メモリ | 28,100 KB |
| 最終ジャッジ日時 | 2026-02-23 22:10:27 |
|
ジャッジサーバーID (参考情報) |
judge3 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | RE * 17 |
コンパイルメッセージ
main.c: In function ‘main’:
main.c:5:17: warning: format ‘%d’ expects argument of type ‘int *’, but argument 2 has type ‘int’ [-Wformat=]
5 | scanf("%d",num);
| ~^ ~~~
| | |
| | int
| int *
main.c:5:9: warning: ignoring return value of ‘scanf’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
5 | scanf("%d",num);
| ^~~~~~~~~~~~~~~
ソースコード
#include <stdio.h>
int main(void) {
int num;
scanf("%d",num);
if(num<8){
printf("-1");
}else{
printf("%d",num-7);
}
return 0;
}
takun0131