結果
| 問題 | No.434 占い |
| コンテスト | |
| ユーザー |
testestest
|
| 提出日時 | 2017-06-19 17:17:26 |
| 言語 | C(gnu17) (gcc 15.2.0) |
| 結果 |
CE
(最新)
AC
(最初)
|
| 実行時間 | - |
| コード長 | 216 bytes |
| 記録 | |
| コンパイル時間 | 69 ms |
| コンパイル使用メモリ | 26,040 KB |
| 最終ジャッジ日時 | 2026-02-21 23:57:57 |
|
ジャッジサーバーID (参考情報) |
judge5 / judge2 |
(要ログイン)
コンパイルエラー時のメッセージ・ソースコードは、提出者また管理者しか表示できないようにしております。(リジャッジ後のコンパイルエラーは公開されます)
ただし、clay言語の場合は開発者のデバッグのため、公開されます。
ただし、clay言語の場合は開発者のデバッグのため、公開されます。
コンパイルメッセージ
main.c:1:15: warning: data definition has no type or storage class
1 | char s[1<<17];i,t,a,p,x,g;f(n){g=!n|n%3?x=n%9,0:f(n/3)+1;}main(c){for(gets(s);gets(s);t=a=p=i=!printf("%d\n",a%9?:t?9:0))for(c=1;s[i];p+=f(i),c=c*x*x*x*x*x%9)t+=s[i]-=48,a+=c*(~p?!p:3)*s[i],p-=f(strlen(++i+s)),c*=x;}
| ^
main.c:1:15: error: type defaults to 'int' in declaration of 'i' [-Wimplicit-int]
main.c:1:17: error: type defaults to 'int' in declaration of 't' [-Wimplicit-int]
1 | char s[1<<17];i,t,a,p,x,g;f(n){g=!n|n%3?x=n%9,0:f(n/3)+1;}main(c){for(gets(s);gets(s);t=a=p=i=!printf("%d\n",a%9?:t?9:0))for(c=1;s[i];p+=f(i),c=c*x*x*x*x*x%9)t+=s[i]-=48,a+=c*(~p?!p:3)*s[i],p-=f(strlen(++i+s)),c*=x;}
| ^
main.c:1:19: error: type defaults to 'int' in declaration of 'a' [-Wimplicit-int]
1 | char s[1<<17];i,t,a,p,x,g;f(n){g=!n|n%3?x=n%9,0:f(n/3)+1;}main(c){for(gets(s);gets(s);t=a=p=i=!printf("%d\n",a%9?:t?9:0))for(c=1;s[i];p+=f(i),c=c*x*x*x*x*x%9)t+=s[i]-=48,a+=c*(~p?!p:3)*s[i],p-=f(strlen(++i+s)),c*=x;}
| ^
main.c:1:21: error: type defaults to 'int' in declaration of 'p' [-Wimplicit-int]
1 | char s[1<<17];i,t,a,p,x,g;f(n){g=!n|n%3?x=n%9,0:f(n/3)+1;}main(c){for(gets(s);gets(s);t=a=p=i=!printf("%d\n",a%9?:t?9:0))for(c=1;s[i];p+=f(i),c=c*x*x*x*x*x%9)t+=s[i]-=48,a+=c*(~p?!p:3)*s[i],p-=f(strlen(++i+s)),c*=x;}
| ^
main.c:1:23: error: type defaults to 'int' in declaration of 'x' [-Wimplicit-int]
1 | char s[1<<17];i,t,a,p,x,g;f(n){g=!n|n%3?x=n%9,0:f(n/3)+1;}main(c){for(gets(s);gets(s);t=a=p=i=!printf("%d\n",a%9?:t?9:0))for(c=1;s[i];p+=f(i),c=c*x*x*x*x*x%9)t+=s[i]-=48,a+=c*(~p?!p:3)*s[i],p-=f(strlen(++i+s)),c*=x;}
| ^
main.c:1:25: error: type defaults to 'int' in declaration of 'g' [-Wimplicit-int]
1 | char s[1<<17];i,t,a,p,x,g;f(n){g=!n|n%3?x=n%9,0:f(n/3)+1;}main(c){for(gets(s);gets(s);t=a=p=i=!printf("%d\n",a%9?:t?9:0))for(c=1;s[i];p+=f(i),c=c*x*x*x*x*x%9)t+=s[i]-=4
ソースコード
char s[1<<17];i,t,a,p,x,g;f(n){g=!n|n%3?x=n%9,0:f(n/3)+1;}main(c){for(gets(s);gets(s);t=a=p=i=!printf("%d\n",a%9?:t?9:0))for(c=1;s[i];p+=f(i),c=c*x*x*x*x*x%9)t+=s[i]-=48,a+=c*(~p?!p:3)*s[i],p-=f(strlen(++i+s)),c*=x;}
testestest