結果
問題 |
No.480 合計
|
ユーザー |
|
提出日時 | 2023-01-22 11:24:59 |
言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 62 bytes |
コンパイル時間 | 800 ms |
コンパイル使用メモリ | 53,192 KB |
実行使用メモリ | 6,948 KB |
最終ジャッジ日時 | 2024-06-24 16:12:40 |
合計ジャッジ時間 | 1,353 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | WA * 22 |
コンパイルメッセージ
main.cpp:1:2: warning: #import is a deprecated GCC extension [-Wdeprecated] 1 | #import<iostream> | ^~~~~~ 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*++a/2;} | ^~~~ main.cpp:2:1: warning: ‘int main(int)’ takes only zero or two arguments [-Wmain]
ソースコード
#import<iostream> main(int a){std::cin>>a;std::cout<<a*++a/2;}