結果
問題 |
No.480 合計
|
ユーザー |
|
提出日時 | 2022-12-12 10:20:31 |
言語 | C (gcc 13.3.0) |
結果 |
RE
|
実行時間 | - |
コード長 | 163 bytes |
コンパイル時間 | 295 ms |
コンパイル使用メモリ | 28,928 KB |
実行使用メモリ | 6,824 KB |
最終ジャッジ日時 | 2024-11-06 09:07:22 |
合計ジャッジ時間 | 3,916 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | RE * 22 |
コンパイルメッセージ
main.c: In function 'main': main.c:9:12: warning: passing argument 1 of 'printf' makes pointer from integer without a cast [-Wint-conversion] 9 | printf(ans); | ^~~ | | | int In file included from main.c:1: /usr/include/stdio.h:356:43: note: expected 'const char * restrict' but argument is of type 'int' 356 | extern int printf (const char *__restrict __format, ...); | ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~
ソースコード
#include <stdio.h> int main(){ int x; int ans; scanf("%d",&x); for(int i=0;i<=x;i++){ ans = ans + i; } printf(ans); return 0; }