結果

問題 No.46 はじめのn歩
コンテスト
ユーザー 山田悠二(Miozaki)
提出日時 2024-02-19 22:14:29
言語 C(gnu17)
(gcc 15.2.0)
コンパイル:
gcc-15 -O2 -std=gnu17 -Wno-error=implicit-function-declaration -Wno-error=implicit-int -Wno-error=incompatible-pointer-types -Wno-error=int-conversion -DONLINE_JUDGE -o a.out _filename_ -lm
実行:
./a.out
結果
TLE  
実行時間 -
コード長 108 bytes
記録
記録タグの例:
初AC ショートコード 純ショートコード 純主流ショートコード 最速実行時間
コンパイル時間 40 ms
コンパイル使用メモリ 31,232 KB
実行使用メモリ 12,160 KB
最終ジャッジ日時 2026-07-23 11:40:55
合計ジャッジ時間 12,890 ms
ジャッジサーバーID
(参考情報)
judge1_0 / judge3_0
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other TLE * 1 -- * 9
権限があれば一括ダウンロードができます
コンパイルメッセージ
main.c: In function 'main':
main.c:9:9: warning: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
    9 |         printf("%d歩", (a/a));
      |         ^~~~~~
main.c:1:1: note: include '<stdio.h>' or provide a declaration of 'printf'
  +++ |+#include <stdio.h>
    1 | 
main.c:9:9: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
    9 |         printf("%d歩", (a/a));
      |         ^~~~~~
main.c:9:9: note: include '<stdio.h>' or provide a declaration of 'printf'

ソースコード

diff #
raw source code

int main(void){
	int a, b;
	a = 2;
	b = 5;
	for (a=2;a<=5;a+a){
		
	}
	printf("%d歩", (a/a));
	return 0;
}
0