結果
| 問題 |
No.395 永遠の17歳
|
| コンテスト | |
| ユーザー |
ugis_prog
|
| 提出日時 | 2018-11-14 15:58:36 |
| 言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
| 結果 |
AC
|
| 実行時間 | 2 ms / 1,000 ms |
| コード長 | 76 bytes |
| コンパイル時間 | 626 ms |
| コンパイル使用メモリ | 52,596 KB |
| 実行使用メモリ | 5,248 KB |
| 最終ジャッジ日時 | 2024-12-24 13:43:14 |
| 合計ジャッジ時間 | 1,555 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 17 |
コンパイルメッセージ
main.cpp:2:1: warning: ISO C++ forbids declaration of ‘main’ with no type [-Wreturn-type]
2 | main(int a){std::cin>>a;std::cout<<(a>14?a-7:-1)<<"\n";}
| ^~~~
main.cpp:2:1: warning: ‘int main(int)’ takes only zero or two arguments [-Wmain]
ソースコード
#include <iostream>
main(int a){std::cin>>a;std::cout<<(a>14?a-7:-1)<<"\n";}
ugis_prog