結果
| 問題 | No.480 合計 |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2019-06-05 14:09:32 |
| 言語 | C++11 (gcc 15.2.0 + boost 1.89.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 144 bytes |
| 記録 | |
| コンパイル時間 | 113 ms |
| コンパイル使用メモリ | 39,328 KB |
| 実行使用メモリ | 7,976 KB |
| 最終ジャッジ日時 | 2026-04-10 01:24:02 |
| 合計ジャッジ時間 | 1,114 ms |
|
ジャッジサーバーID (参考情報) |
judge1_0 / judge2_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | WA * 22 |
コンパイルメッセージ
main.cpp: In function 'int main()':
main.cpp:3:13: warning: 'ans' may be used uninitialized [-Wmaybe-uninitialized]
3 | int i,k,ans;
| ^~~
ソースコード
#include<stdio.h>
int main(){
int i,k,ans;
scanf("%d",&i);
for(k=1;k<=i;k++)
ans += i;
printf("%d",ans);
return 0;
}