結果
| 問題 | No.480 合計 |
| コンテスト | |
| ユーザー |
projectappbird
|
| 提出日時 | 2019-07-24 00:31:34 |
| 言語 | C++11 (gcc 15.2.0 + boost 1.89.0) |
| 結果 |
WA
(最新)
AC
(最初)
|
| 実行時間 | - |
| コード長 | 158 bytes |
| 記録 | |
| コンパイル時間 | 265 ms |
| コンパイル使用メモリ | 39,872 KB |
| 実行使用メモリ | 7,716 KB |
| 最終ジャッジ日時 | 2026-03-13 18:56:06 |
| 合計ジャッジ時間 | 1,153 ms |
|
ジャッジサーバーID (参考情報) |
judge3_0 / judge1_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 9 WA * 13 |
コンパイルメッセージ
main.cpp: In function 'int main()':
main.cpp:7:13: warning: 'result' may be used uninitialized [-Wmaybe-uninitialized]
7 | result += i;
| ~~~~~~~^~~~
main.cpp:4:7: note: 'result' was declared here
4 | int result;
| ^~~~~~
ソースコード
#include <stdio.h>
int main(){
int input;
int result;
scanf("%d",&input);
for (int i=1;i<=input;i++){
result += i;
}
printf("%d",result);
}
projectappbird