結果
| 問題 | No.700 LOVE |
| コンテスト | |
| ユーザー |
testestest
|
| 提出日時 | 2018-07-04 04:08:12 |
| 言語 | C (gcc 15.2.0) |
| 結果 |
CE
(最新)
AC
(最初)
|
| 実行時間 | - |
| コード長 | 67 bytes |
| 記録 | |
| コンパイル時間 | 91 ms |
| コンパイル使用メモリ | 25,016 KB |
| 最終ジャッジ日時 | 2026-02-16 02:36:23 |
| 合計ジャッジ時間 | 1,086 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge5 |
(要ログイン)
コンパイルエラー時のメッセージ・ソースコードは、提出者また管理者しか表示できないようにしております。(リジャッジ後のコンパイルエラーは公開されます)
ただし、clay言語の場合は開発者のデバッグのため、公開されます。
ただし、clay言語の場合は開発者のデバッグのため、公開されます。
コンパイルメッセージ
main.c:1:1: warning: data definition has no type or storage class
1 | s,f;main(){for(;gets(&s);f+=strstr(&s,"LOVE"));puts(f?"YES":"NO");}
| ^
main.c:1:1: error: type defaults to 'int' in declaration of 's' [-Wimplicit-int]
main.c:1:3: error: type defaults to 'int' in declaration of 'f' [-Wimplicit-int]
1 | s,f;main(){for(;gets(&s);f+=strstr(&s,"LOVE"));puts(f?"YES":"NO");}
| ^
main.c:1:5: error: return type defaults to 'int' [-Wimplicit-int]
1 | s,f;main(){for(;gets(&s);f+=strstr(&s,"LOVE"));puts(f?"YES":"NO");}
| ^~~~
main.c: In function 'main':
main.c:1:17: error: implicit declaration of function 'gets' [-Wimplicit-function-declaration]
1 | s,f;main(){for(;gets(&s);f+=strstr(&s,"LOVE"));puts(f?"YES":"NO");}
| ^~~~
main.c:1:29: error: implicit declaration of function 'strstr' [-Wimplicit-function-declaration]
1 | s,f;main(){for(;gets(&s);f+=strstr(&s,"LOVE"));puts(f?"YES":"NO");}
| ^~~~~~
main.c:1:1: note: include '<string.h>' or provide a declaration of 'strstr'
+++ |+#include <string.h>
1 | s,f;main(){for(;gets(&s);f+=strstr(&s,"LOVE"));puts(f?"YES":"NO");}
main.c:1:29: warning: incompatible implicit declaration of built-in function 'strstr' [-Wbuiltin-declaration-mismatch]
1 | s,f;main(){for(;gets(&s);f+=strstr(&s,"LOVE"));puts(f?"YES":"NO");}
| ^~~~~~
main.c:1:29: note: include '<string.h>' or provide a declaration of 'strstr'
main.c:1:36: error: passing argument 1 of 'strstr' from incompatible pointer type [-Wincompatible-pointer-types]
1 | s,f;main(){for(;gets(&s);f+=strstr(&s,"LOVE"));puts(f?"YES":"NO");}
| ^~
| |
| int *
main.c:1:36: note: expected 'const char *' but argument is of type 'int *'
main.c:1:27: error: assignment to 'int' from 'char *' makes integer from pointer without a cast [-
ソースコード
s,f;main(){for(;gets(&s);f+=strstr(&s,"LOVE"));puts(f?"YES":"NO");}
testestest