結果
| 問題 | No.1217 せしすせそ |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2021-06-05 01:57:05 |
| 言語 | C(gnu17) (gcc 15.2.0) |
| 結果 |
CE
(最新)
AC
(最初)
|
| 実行時間 | - |
| コード長 | 67 bytes |
| 記録 | |
| コンパイル時間 | 91 ms |
| コンパイル使用メモリ | 24,760 KB |
| 最終ジャッジ日時 | 2026-02-22 07:19:05 |
|
ジャッジサーバーID (参考情報) |
judge3 / judge5 |
(要ログイン)
コンパイルエラー時のメッセージ・ソースコードは、提出者また管理者しか表示できないようにしております。(リジャッジ後のコンパイルエラーは公開されます)
ただし、clay言語の場合は開発者のデバッグのため、公開されます。
ただし、clay言語の場合は開発者のデバッグのため、公開されます。
コンパイルメッセージ
main.c:1:1: error: return type defaults to 'int' [-Wimplicit-int]
1 | main(i,c){for(;c=getchar(),c==96+i;i++);printf("%cto%c\n",96+i,c);}
| ^~~~
main.c: In function 'main':
main.c:1:1: warning: old-style function definition [-Wold-style-definition]
main.c:1:1: error: type of 'i' defaults to 'int' [-Wimplicit-int]
main.c:1:1: error: type of 'c' defaults to 'int' [-Wimplicit-int]
main.c:1:18: error: implicit declaration of function 'getchar' [-Wimplicit-function-declaration]
1 | main(i,c){for(;c=getchar(),c==96+i;i++);printf("%cto%c\n",96+i,c);}
| ^~~~~~~
main.c:1:1: note: 'getchar' is defined in header '<stdio.h>'; this is probably fixable by adding '#include <stdio.h>'
+++ |+#include <stdio.h>
1 | main(i,c){for(;c=getchar(),c==96+i;i++);printf("%cto%c\n",96+i,c);}
main.c:1:41: error: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
1 | main(i,c){for(;c=getchar(),c==96+i;i++);printf("%cto%c\n",96+i,c);}
| ^~~~~~
main.c:1:41: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:1:41: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
main.c:1:41: note: include '<stdio.h>' or provide a declaration of 'printf'
ソースコード
main(i,c){for(;c=getchar(),c==96+i;i++);printf("%cto%c\n",96+i,c);}