結果
問題 |
No.480 合計
|
ユーザー |
![]() |
提出日時 | 2020-08-04 14:23:54 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 2 ms / 2,000 ms |
コード長 | 147 bytes |
コンパイル時間 | 281 ms |
コンパイル使用メモリ | 30,848 KB |
実行使用メモリ | 5,376 KB |
最終ジャッジ日時 | 2024-09-14 15:27:29 |
合計ジャッジ時間 | 1,171 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 22 |
コンパイルメッセージ
main.cpp: In function 'int main()': main.cpp:8:11: warning: 's' may be used uninitialized [-Wmaybe-uninitialized] 8 | printf("%d",s); | ~~~~~~^~~~~~~~ main.cpp:3:13: note: 's' was declared here 3 | int N,i,s; | ^
ソースコード
#include<stdio.h> int main(void){ int N,i,s; scanf("%d",&N); for(i=1;i<=N;i++){ s+=i; } printf("%d",s); return 0; }