結果
問題 | No.700 LOVE |
ユーザー | testestest |
提出日時 | 2020-10-23 17:37:23 |
言語 | C (gcc 12.3.0) |
結果 |
RE
|
実行時間 | - |
コード長 | 66 bytes |
コンパイル時間 | 1,129 ms |
コンパイル使用メモリ | 26,456 KB |
実行使用メモリ | 4,504 KB |
最終ジャッジ日時 | 2023-09-28 15:36:43 |
合計ジャッジ時間 | 3,148 ms |
ジャッジサーバーID (参考情報) |
judge12 / judge11 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 0 ms
4,376 KB |
testcase_01 | RE | - |
testcase_02 | RE | - |
testcase_03 | RE | - |
testcase_04 | AC | 1 ms
4,376 KB |
testcase_05 | AC | 1 ms
4,376 KB |
testcase_06 | RE | - |
testcase_07 | RE | - |
testcase_08 | AC | 1 ms
4,376 KB |
testcase_09 | RE | - |
testcase_10 | RE | - |
testcase_11 | AC | 1 ms
4,376 KB |
testcase_12 | AC | 0 ms
4,380 KB |
testcase_13 | AC | 0 ms
4,376 KB |
testcase_14 | RE | - |
testcase_15 | RE | - |
testcase_16 | RE | - |
testcase_17 | AC | 1 ms
4,380 KB |
testcase_18 | AC | 0 ms
4,376 KB |
コンパイルメッセージ
main.c:1:1: 警告: データ定義が型または記憶域クラスを持っていません 1 | s;main(f){for(;f-=!!strstr(gets(&s),"LOVE"););puts(f?"NO":"YES");} | ^ main.c:1:1: 警告: 型がデフォルトの ‘int’ に ‘s’ の宣言内でなります [-Wimplicit-int] main.c:1:3: 警告: 戻り値の型をデフォルトの ‘int’ にします [-Wimplicit-int] 1 | s;main(f){for(;f-=!!strstr(gets(&s),"LOVE"););puts(f?"NO":"YES");} | ^~~~ main.c: 関数 ‘main’ 内: main.c:1:3: 警告: ‘f’ の型をデフォルトの ‘int’ にします [-Wimplicit-int] main.c:1:21: 警告: 関数 ‘strstr’ の暗黙的な宣言です [-Wimplicit-function-declaration] 1 | s;main(f){for(;f-=!!strstr(gets(&s),"LOVE"););puts(f?"NO":"YES");} | ^~~~~~ main.c:1:1: 備考: include ‘<string.h>’ or provide a declaration of ‘strstr’ +++ |+#include <string.h> 1 | s;main(f){for(;f-=!!strstr(gets(&s),"LOVE"););puts(f?"NO":"YES");} main.c:1:21: 警告: 組み込み関数 ‘strstr’ の互換性がない暗黙的な宣言です [-Wbuiltin-declaration-mismatch] 1 | s;main(f){for(;f-=!!strstr(gets(&s),"LOVE"););puts(f?"NO":"YES");} | ^~~~~~ main.c:1:21: 備考: include ‘<string.h>’ or provide a declaration of ‘strstr’ main.c:1:28: 警告: 関数 ‘gets’ の暗黙的な宣言です [-Wimplicit-function-declaration] 1 | s;main(f){for(;f-=!!strstr(gets(&s),"LOVE"););puts(f?"NO":"YES");} | ^~~~ main.c:1:28: 警告: 1 番目の ‘strstr’ の引数へ渡すときに整数からキャスト無しにポインタを作成しています [-Wint-conversion] 1 | s;main(f){for(;f-=!!strstr(gets(&s),"LOVE"););puts(f?"NO":"YES");} | ^~~~~~~~ | | | int main.c:1:28: 備考: expected ‘const char *’ but argument is of type ‘int’ main.c:1:
ソースコード
s;main(f){for(;f-=!!strstr(gets(&s),"LOVE"););puts(f?"NO":"YES");}