結果
問題 |
No.480 合計
|
ユーザー |
![]() |
提出日時 | 2018-07-19 20:17:24 |
言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
結果 |
WA
(最新)
AC
(最初)
|
実行時間 | - |
コード長 | 190 bytes |
コンパイル時間 | 483 ms |
コンパイル使用メモリ | 54,100 KB |
実行使用メモリ | 5,248 KB |
最終ジャッジ日時 | 2024-12-24 11:37:18 |
合計ジャッジ時間 | 1,414 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | WA * 22 |
コンパイルメッセージ
main.cpp: In function ‘int main()’: main.cpp:10:18: warning: ‘answer’ may be used uninitialized in this function [-Wmaybe-uninitialized] 10 | std::cout << answer << std::endl; | ^~~~~~
ソースコード
#include<iostream> int main() { int n; int answer; std::cin >> n; for(int line = 1;line < n+1;line++) { answer += line; } std::cout << answer << std::endl; }