結果
| 問題 | No.52 よくある文字列の問題 |
| コンテスト | |
| ユーザー |
testestest
|
| 提出日時 | 2017-07-25 17:28:56 |
| 言語 | C90(gcc12) (gcc 12.4.0) |
| 結果 |
RE
(最新)
AC
(最初)
|
| 実行時間 | - |
| コード長 | 193 bytes |
| 記録 | |
| コンパイル時間 | 108 ms |
| コンパイル使用メモリ | 29,764 KB |
| 実行使用メモリ | 7,844 KB |
| 最終ジャッジ日時 | 2026-03-08 16:12:29 |
| 合計ジャッジ時間 | 687 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | RE * 11 |
コンパイルメッセージ
main.c:1:22: warning: data definition has no type or storage class
1 | char s[],a[1030][11];r,t,i,n;c(a,b){r=strcmp(a,b);}main(l){for(n=read(0,s)-1;i--?a[t][i]=s[t&1<<i?l++:--r]:!(i=r=n,l=t++>>n););for(qsort(a,t,11,c);t;l+=!!strcmp(a[t],a[t--]));printf("%d",l-2);}
| ^
main.c: In function ‘c’:
main.c:1:46: warning: passing argument 1 of ‘strcmp’ makes pointer from integer without a cast [-Wint-conversion]
1 | char s[],a[1030][11];r,t,i,n;c(a,b){r=strcmp(a,b);}main(l){for(n=read(0,s)-1;i--?a[t][i]=s[t&1<<i?l++:--r]:!(i=r=n,l=t++>>n););for(qsort(a,t,11,c);t;l+=!!strcmp(a[t],a[t--]));printf("%d",l-2);}
| ^
| |
| int
main.c:1:46: note: expected ‘const char *’ but argument is of type ‘int’
main.c:1:48: warning: passing argument 2 of ‘strcmp’ makes pointer from integer without a cast [-Wint-conversion]
1 | char s[],a[1030][11];r,t,i,n;c(a,b){r=strcmp(a,b);}main(l){for(n=read(0,s)-1;i--?a[t][i]=s[t&1<<i?l++:--r]:!(i=r=n,l=t++>>n););for(qsort(a,t,11,c);t;l+=!!strcmp(a[t],a[t--]));printf("%d",l-2);}
| ^
| |
| int
main.c:1:48: note: expected ‘const char *’ but argument is of type ‘int’
main.c: In function ‘main’:
main.c:1:176: warning: incompatible implicit declaration of built-in function ‘printf’ [-Wbuiltin-declaration-mismatch]
1 | char s[],a[1030][11];r,t,i,n;c(a,b){r=strcmp(a,b);}main(l){for(n=read(0,s)-1;i--?a[t][i]=s[t&1<<i?l++:--r]:!(i=r=n,l=t++>>n););for(qsort(a,t,11,c);t;l+=!!strcmp(a[t],a[t--]));printf("%d",l-2);}
|
ソースコード
char s[],a[1030][11];r,t,i,n;c(a,b){r=strcmp(a,b);}main(l){for(n=read(0,s)-1;i--?a[t][i]=s[t&1<<i?l++:--r]:!(i=r=n,l=t++>>n););for(qsort(a,t,11,c);t;l+=!!strcmp(a[t],a[t--]));printf("%d",l-2);}
testestest