結果
問題 |
No.480 合計
|
ユーザー |
|
提出日時 | 2019-05-17 13:00:56 |
言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 234 bytes |
コンパイル時間 | 461 ms |
コンパイル使用メモリ | 58,968 KB |
実行使用メモリ | 6,948 KB |
最終ジャッジ日時 | 2024-09-17 05:53:04 |
合計ジャッジ時間 | 1,195 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge6 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | WA * 22 |
コンパイルメッセージ
main.cpp:8:1: warning: ISO C++ forbids declaration of ‘main’ with no type [-Wreturn-type] 8 | main() | ^~~~
ソースコード
#include <iostream> #include <string> #include <cmath> using namespace std; // namespace std main() { int N; cin >> N; int sum = 0; for (int i = 1; i < N; i++) { sum += i; } cout << sum << endl; }