結果
| 問題 | No.700 LOVE |
| コンテスト | |
| ユーザー |
testestest
|
| 提出日時 | 2018-07-04 04:08:12 |
| 言語 | C90(gcc12) (gcc 12.4.0) |
| 結果 |
RE
(最新)
AC
(最初)
|
| 実行時間 | - |
| コード長 | 67 bytes |
| 記録 | |
| コンパイル時間 | 88 ms |
| コンパイル使用メモリ | 28,232 KB |
| 実行使用メモリ | 7,848 KB |
| 最終ジャッジ日時 | 2026-03-08 16:17:41 |
| 合計ジャッジ時間 | 877 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | RE * 3 |
| other | RE * 16 |
コンパイルメッセージ
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: In function ‘main’:
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: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:36: warning: 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: warning: assignment to ‘int’ from ‘char *’ makes integer from pointer without a cast [-Wint-conversion]
1 | s,f;main(){for(;gets(&s);f+=strstr(&s,"LOVE"));puts(f?"YES":"NO");}
| ^~
/usr/bin/ld: /tmp/ccg2AlS2.o: in function `main':
main.c:(.text.startup+0x37): 警告: the `gets' function is dangerous and should not be used.
ソースコード
s,f;main(){for(;gets(&s);f+=strstr(&s,"LOVE"));puts(f?"YES":"NO");}
testestest