結果
問題 |
No.480 合計
|
ユーザー |
![]() |
提出日時 | 2018-06-03 15:11:16 |
言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
結果 |
RE
|
実行時間 | - |
コード長 | 105 bytes |
コンパイル時間 | 360 ms |
コンパイル使用メモリ | 54,548 KB |
実行使用メモリ | 6,948 KB |
最終ジャッジ日時 | 2024-06-30 09:22:19 |
合計ジャッジ時間 | 3,699 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | RE * 22 |
コンパイルメッセージ
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",n); | ~^ ~ | | | | | 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",n); | ~~~~~^~~~~~~~ main.cpp:5:10: warning: ‘n’ is used uninitialized [-Wuninitialized] 5 | scanf("%d",n); | ~~~~~^~~~~~~~
ソースコード
#include<iostream> int main(){ int n; scanf("%d",n); printf("%d",n+(n+1)/2); return 0; }