結果
問題 |
No.480 合計
|
ユーザー |
|
提出日時 | 2021-08-10 19:52:42 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 104 bytes |
コンパイル時間 | 480 ms |
コンパイル使用メモリ | 63,228 KB |
実行使用メモリ | 6,948 KB |
最終ジャッジ日時 | 2024-09-22 22:04:08 |
合計ジャッジ時間 | 1,272 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | WA * 22 |
コンパイルメッセージ
main.cpp: In function 'int main()': main.cpp:5:17: warning: 'N' is used uninitialized [-Wuninitialized] 5 | cout << ((N + 1) * N) / 2 << endl; | ~~~^~~~ main.cpp:4:9: note: 'N' was declared here 4 | int N; | ^
ソースコード
#include <iostream> using namespace std; int main(){ int N; cout << ((N + 1) * N) / 2 << endl; }