結果
| 問題 | No.706 多眼生物の調査 |
| コンテスト | |
| ユーザー |
testestest
|
| 提出日時 | 2018-07-05 03:28:38 |
| 言語 | C90(gcc12) (gcc 12.4.0) |
| 結果 |
RE
(最新)
AC
(最初)
|
| 実行時間 | - |
| コード長 | 95 bytes |
| 記録 | |
| コンパイル時間 | 203 ms |
| コンパイル使用メモリ | 28,740 KB |
| 実行使用メモリ | 7,844 KB |
| 最終ジャッジ日時 | 2026-03-08 16:17:44 |
| 合計ジャッジ時間 | 1,680 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | RE * 3 |
| other | RE * 5 |
コンパイルメッセージ
main.c:1:1: warning: data definition has no type or storage class
1 | k,a[999],i;main(m){for(;gets(&k)?++a[strlen(&k)]:i++<998?m=a[i]<a[m]?m:i:0;);printf("%d",m-2);}
| ^
main.c: In function ‘main’:
main.c:1:38: warning: incompatible implicit declaration of built-in function ‘strlen’ [-Wbuiltin-declaration-mismatch]
1 | k,a[999],i;main(m){for(;gets(&k)?++a[strlen(&k)]:i++<998?m=a[i]<a[m]?m:i:0;);printf("%d",m-2);}
| ^~~~~~
main.c:1:1: note: include ‘<string.h>’ or provide a declaration of ‘strlen’
+++ |+#include <string.h>
1 | k,a[999],i;main(m){for(;gets(&k)?++a[strlen(&k)]:i++<998?m=a[i]<a[m]?m:i:0;);printf("%d",m-2);}
main.c:1:45: warning: passing argument 1 of ‘strlen’ from incompatible pointer type [-Wincompatible-pointer-types]
1 | k,a[999],i;main(m){for(;gets(&k)?++a[strlen(&k)]:i++<998?m=a[i]<a[m]?m:i:0;);printf("%d",m-2);}
| ^~
| |
| int *
main.c:1:45: note: expected ‘const char *’ but argument is of type ‘int *’
main.c:1:78: warning: incompatible implicit declaration of built-in function ‘printf’ [-Wbuiltin-declaration-mismatch]
1 | k,a[999],i;main(m){for(;gets(&k)?++a[strlen(&k)]:i++<998?m=a[i]<a[m]?m:i:0;);printf("%d",m-2);}
| ^~~~~~
main.c:1:1: note: include ‘<stdio.h>’ or provide a declaration of ‘printf’
+++ |+#include <stdio.h>
1 | k,a[999],i;main(m){for(;gets(&k)?++a[strlen(&k)]:i++<998?m=a[i]<a[m]?m:i:0;);printf("%d",m-2);}
/usr/bin/ld: /tmp/ccoCBqZq.o: in function `main':
main.c:(.text.startup+0x26): 警告: the `gets' function is dangerous and should not be used.
ソースコード
k,a[999],i;main(m){for(;gets(&k)?++a[strlen(&k)]:i++<998?m=a[i]<a[m]?m:i:0;);printf("%d",m-2);}
testestest