結果
| 問題 |
No.480 合計
|
| コンテスト | |
| ユーザー |
honkingloop
|
| 提出日時 | 2021-07-19 11:44:17 |
| 言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 102 bytes |
| コンパイル時間 | 164 ms |
| コンパイル使用メモリ | 29,824 KB |
| 実行使用メモリ | 6,948 KB |
| 最終ジャッジ日時 | 2024-07-17 03:53:53 |
| 合計ジャッジ時間 | 1,160 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | WA * 22 |
コンパイルメッセージ
main.cpp: In function 'int main()':
main.cpp:6:30: warning: 'N' is used uninitialized [-Wuninitialized]
6 | printf("%d", (N * (N + 1)) / 2);
| ~~~^~~~
main.cpp:5:13: note: 'N' was declared here
5 | int N;
| ^
ソースコード
#include <stdio.h>
int main(void)
{
int N;
printf("%d", (N * (N + 1)) / 2);
return 0;
}
honkingloop