結果
問題 |
No.464 PPAP
|
ユーザー |
![]() |
提出日時 | 2016-12-17 02:07:02 |
言語 | C90 (gcc 12.3.0) |
結果 |
RE
(最新)
AC
(最初)
|
実行時間 | - |
コード長 | 240 bytes |
コンパイル時間 | 231 ms |
コンパイル使用メモリ | 20,992 KB |
実行使用メモリ | 5,248 KB |
最終ジャッジ日時 | 2024-12-23 15:05:15 |
合計ジャッジ時間 | 4,029 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | RE * 4 |
other | RE * 22 |
コンパイルメッセージ
main.c:1:9: warning: ISO C99 requires whitespace after the macro name 1 | #define I{long p=0,q=0,r=1;for(j=i | ^ main.c:4:14: warning: data definition has no type or storage class 4 | char s[5010];b[5010];long c;main(m,i,j,l){m|=time(0);I=l=strlen(gets(s));i--;b[i]+=b[i+1])J++b[i];}K K c+=b[i+2];i=j;}}c=!printf("%ld",c);} | ^ main.c:4:14: warning: type defaults to ‘int’ in declaration of ‘b’ [-Wimplicit-int] main.c:4:29: warning: return type defaults to ‘int’ [-Wimplicit-int] 4 | char s[5010];b[5010];long c;main(m,i,j,l){m|=time(0);I=l=strlen(gets(s));i--;b[i]+=b[i+1])J++b[i];}K K c+=b[i+2];i=j;}}c=!printf("%ld",c);} | ^~~~ main.c: In function ‘main’: main.c:4:29: warning: type of ‘m’ defaults to ‘int’ [-Wimplicit-int] main.c:4:29: warning: type of ‘i’ defaults to ‘int’ [-Wimplicit-int] main.c:4:29: warning: type of ‘j’ defaults to ‘int’ [-Wimplicit-int] main.c:4:29: warning: type of ‘l’ defaults to ‘int’ [-Wimplicit-int] main.c:4:46: warning: implicit declaration of function ‘time’ [-Wimplicit-function-declaration] 4 | char s[5010];b[5010];long c;main(m,i,j,l){m|=time(0);I=l=strlen(gets(s));i--;b[i]+=b[i+1])J++b[i];}K K c+=b[i+2];i=j;}}c=!printf("%ld",c);} | ^~~~ main.c:4:58: warning: implicit declaration of function ‘strlen’ [-Wimplicit-function-declaration] 4 | char s[5010];b[5010];long c;main(m,i,j,l){m|=time(0);I=l=strlen(gets(s));i--;b[i]+=b[i+1])J++b[i];}K K c+=b[i+2];i=j;}}c=!printf("%ld",c);} | ^~~~~~ main.c:1:1: note: include ‘<string.h>’ or provide a declaration of ‘strlen’ +++ |+#include <string.h> 1 | #define I{long p=0,q=0,r=1;for(j=i main.c:4:58: warning: incompatible implicit declaration of built-in function ‘strlen’ [-Wbuiltin-declaration-mismatch] 4 | char s[5010];b[5010];lo
ソースコード
#define I{long p=0,q=0,r=1;for(j=i #define J if(p=p*m+s[i],q+=r*s[i],r*=m,p==q) #define K I;++i<l;)J char s[5010];b[5010];long c;main(m,i,j,l){m|=time(0);I=l=strlen(gets(s));i--;b[i]+=b[i+1])J++b[i];}K K c+=b[i+2];i=j;}}c=!printf("%ld",c);}