結果

問題 No.480 合計
ユーザー nabla_delta
提出日時 2019-09-29 23:34:06
言語 C++14
(gcc 13.3.0 + boost 1.87.0)
結果
WA  
実行時間 -
コード長 163 bytes
コンパイル時間 1,462 ms
コンパイル使用メモリ 166,672 KB
実行使用メモリ 6,824 KB
最終ジャッジ日時 2024-10-03 04:43:48
合計ジャッジ時間 2,342 ms
ジャッジサーバーID
(参考情報)
judge1 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other WA * 22
権限があれば一括ダウンロードができます
コンパイルメッセージ
main.cpp: In function 'int main()':
main.cpp:10:21: warning: 'n' is used uninitialized [-Wuninitialized]
   10 |         cout << n*(n+1)/2 << endl;
      |                   ~~^~~
main.cpp:9:13: note: 'n' was declared here
    9 |         int n;
      |             ^

ソースコード

diff #

#include <bits/stdc++.h>

using namespace std;

typedef unsigned long long ull;
typedef long long ll;

int main(){
	int n;
	cout << n*(n+1)/2 << endl;
	return 0;
}
0