結果
| 問題 |
No.10 +か×か
|
| コンテスト | |
| ユーザー |
👑 testestest
|
| 提出日時 | 2016-10-11 22:46:39 |
| 言語 | C90 (gcc 12.3.0) |
| 結果 |
AC
|
| 実行時間 | 74 ms / 5,000 ms |
| コード長 | 159 bytes |
| コンパイル時間 | 213 ms |
| コンパイル使用メモリ | 20,224 KB |
| 実行使用メモリ | 44,160 KB |
| 最終ジャッジ日時 | 2024-12-14 15:37:41 |
| 合計ジャッジ時間 | 1,041 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 12 |
コンパイルメッセージ
main.c:1:1: warning: data definition has no type or storage class
1 | x[1<<26];char p[60];f(i,s){x[i]?s>*x|x[i<<20|s]++||f(i+1,s+x[i],p[i]=43)+f(i+1,s*x[i],p[i]--):s==*x?*x=~puts(p+2):0;}main(i){for(;~scanf("%d",x-i--););f(1,0);}
| ^
main.c:1:1: warning: type defaults to ‘int’ in declaration of ‘x’ [-Wimplicit-int]
main.c:1:21: warning: return type defaults to ‘int’ [-Wimplicit-int]
1 | x[1<<26];char p[60];f(i,s){x[i]?s>*x|x[i<<20|s]++||f(i+1,s+x[i],p[i]=43)+f(i+1,s*x[i],p[i]--):s==*x?*x=~puts(p+2):0;}main(i){for(;~scanf("%d",x-i--););f(1,0);}
| ^
main.c: In function ‘f’:
main.c:1:21: warning: type of ‘i’ defaults to ‘int’ [-Wimplicit-int]
main.c:1:21: warning: type of ‘s’ defaults to ‘int’ [-Wimplicit-int]
main.c:1:105: warning: implicit declaration of function ‘puts’ [-Wimplicit-function-declaration]
1 | x[1<<26];char p[60];f(i,s){x[i]?s>*x|x[i<<20|s]++||f(i+1,s+x[i],p[i]=43)+f(i+1,s*x[i],p[i]--):s==*x?*x=~puts(p+2):0;}main(i){for(;~scanf("%d",x-i--););f(1,0);}
| ^~~~
main.c:1:1: note: include ‘<stdio.h>’ or provide a declaration of ‘puts’
+++ |+#include <stdio.h>
1 | x[1<<26];char p[60];f(i,s){x[i]?s>*x|x[i<<20|s]++||f(i+1,s+x[i],p[i]=43)+f(i+1,s*x[i],p[i]--):s==*x?*x=~puts(p+2):0;}main(i){for(;~scanf("%d",x-i--););f(1,0);}
main.c: At top level:
main.c:1:118: warning: return type defaults to ‘int’ [-Wimplicit-int]
1 | x[1<<26];char p[60];f(i,s){x[i]?s>*x|x[i<<20|s]++||f(i+1,s+x[i],p[i]=43)+f(i+1,s*x[i],p[i]--):s==*x?*x=~puts(p+2):0;}main(i){for(;~scanf("%d",x-i--););f(1,0);}
| ^~~~
main.c: In function ‘main’:
main.c:1:118: warning: type of ‘i’ defaults to ‘int’ [-Wimplicit-int]
main.c:1:132: warning: implicit declaration o
ソースコード
x[1<<26];char p[60];f(i,s){x[i]?s>*x|x[i<<20|s]++||f(i+1,s+x[i],p[i]=43)+f(i+1,s*x[i],p[i]--):s==*x?*x=~puts(p+2):0;}main(i){for(;~scanf("%d",x-i--););f(1,0);}
testestest