結果
問題 |
No.480 合計
|
ユーザー |
|
提出日時 | 2023-01-22 11:22:45 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 62 bytes |
コンパイル時間 | 710 ms |
コンパイル使用メモリ | 62,104 KB |
実行使用メモリ | 6,948 KB |
最終ジャッジ日時 | 2024-06-24 16:09:20 |
合計ジャッジ時間 | 1,534 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
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;}