結果
| 問題 | No.480 合計 |
| コンテスト | |
| ユーザー |
berry8192
|
| 提出日時 | 2019-04-18 00:25:46 |
| 言語 | C++11 (gcc 15.3.0 + boost 1.92.0) |
| 結果 |
WA
不安定
|
| 実行時間 | - |
| コード長 | 147 bytes |
| 記録 | |
| コンパイル時間 | 244 ms |
| コンパイル使用メモリ | 69,112 KB |
| 実行使用メモリ | 9,812 KB |
| 最終ジャッジ日時 | 2026-09-02 08:33:02 |
| 合計ジャッジ時間 | 1,445 ms |
|
ジャッジサーバーID (参考情報) |
judge3_0 / judge2_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | WA * 22 |
コンパイルメッセージ
main.cpp: In function 'int main()':
main.cpp:6:12: warning: 'n' is used uninitialized [-Wuninitialized]
6 | while(0<n){
| ~^~
main.cpp:4:9: note: 'n' was declared here
4 | int n, sum=0;
| ^
ソースコード
#include <iostream>
int main(){
int n, sum=0;
while(0<n){
sum+=n;
n--;
}
std::cout<< sum << "\n";
}
berry8192