結果
問題 |
No.10 +か×か
|
ユーザー |
👑 ![]() |
提出日時 | 2016-04-05 04:42:37 |
言語 | C90 (gcc 12.3.0) |
結果 |
AC
|
実行時間 | 73 ms / 5,000 ms |
コード長 | 160 bytes |
コンパイル時間 | 386 ms |
コンパイル使用メモリ | 20,480 KB |
実行使用メモリ | 44,032 KB |
最終ジャッジ日時 | 2024-12-14 15:35:25 |
合計ジャッジ時間 | 817 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
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?:exit(!puts(p+2));}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?:exit(!puts(p+2));}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:101: warning: implicit declaration of function ‘exit’ [-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?:exit(!puts(p+2));}main(i){for(;~scanf("%d",x-i--););f(1,0);} | ^~~~ main.c:1:1: note: include ‘<stdlib.h>’ or provide a declaration of ‘exit’ +++ |+#include <stdlib.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?:exit(!puts(p+2));}main(i){for(;~scanf("%d",x-i--););f(1,0);} main.c:1:101: warning: incompatible implicit declaration of built-in function ‘exit’ [-Wbuiltin-declaration-mismatch] 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?:exit(!puts(p+2));}main(i){for(;~scanf("%d",x-i--););f(1,0);} | ^~~~ main.c:1:101: note: include ‘<stdlib.h>’ or provide a declaration of ‘exit’ main.c:1:107: warning: implicit declaration of function ‘
ソースコード
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?:exit(!puts(p+2));}main(i){for(;~scanf("%d",x-i--););f(1,0);}