結果

問題 No.10 +か×か
ユーザー testestesttestestest
提出日時 2016-03-14 07:14:18
言語 C90
(gcc 11.4.0)
結果
RE  
実行時間 -
コード長 165 bytes
コンパイル時間 1,178 ms
コンパイル使用メモリ 20,712 KB
実行使用メモリ 16,224 KB
最終ジャッジ日時 2023-10-26 04:09:21
合計ジャッジ時間 5,737 ms
ジャッジサーバーID
(参考情報)
judge12 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 1 ms
4,348 KB
testcase_01 AC 1 ms
4,348 KB
testcase_02 AC 1 ms
4,348 KB
testcase_03 RE -
testcase_04 RE -
testcase_05 RE -
testcase_06 RE -
testcase_07 RE -
testcase_08 AC 11 ms
9,900 KB
testcase_09 AC 19 ms
16,224 KB
testcase_10 AC 1 ms
4,348 KB
testcase_11 AC 1 ms
4,348 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
main.c:1:1: warning: data definition has no type or storage class
    1 | x[1<<26];char p[];f(i,s){x[i]|s-*x?s>*x|!x[i]|x[(i<<20)+s]++||f(i+1,s+x[i],p[i]=43)+f(i+1,s*x[i],p[i]--):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:19: warning: return type defaults to ‘int’ [-Wimplicit-int]
    1 | x[1<<26];char p[];f(i,s){x[i]|s-*x?s>*x|!x[i]|x[(i<<20)+s]++||f(i+1,s+x[i],p[i]=43)+f(i+1,s*x[i],p[i]--):exit(!puts(p+2));}main(i){for(;~scanf("%d",x-i--););f(1,0);}
      |                   ^
main.c: In function ‘f’:
main.c:1:19: warning: type of ‘i’ defaults to ‘int’ [-Wimplicit-int]
main.c:1:19: warning: type of ‘s’ defaults to ‘int’ [-Wimplicit-int]
main.c:1:106: warning: implicit declaration of function ‘exit’ [-Wimplicit-function-declaration]
    1 | x[1<<26];char p[];f(i,s){x[i]|s-*x?s>*x|!x[i]|x[(i<<20)+s]++||f(i+1,s+x[i],p[i]=43)+f(i+1,s*x[i],p[i]--):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[];f(i,s){x[i]|s-*x?s>*x|!x[i]|x[(i<<20)+s]++||f(i+1,s+x[i],p[i]=43)+f(i+1,s*x[i],p[i]--):exit(!puts(p+2));}main(i){for(;~scanf("%d",x-i--););f(1,0);}
main.c:1:106: warning: incompatible implicit declaration of built-in function ‘exit’ [-Wbuiltin-declaration-mismatch]
    1 | x[1<<26];char p[];f(i,s){x[i]|s-*x?s>*x|!x[i]|x[(i<<20)+s]++||f(i+1,s+x[i],p[i]=43)+f(i+1,s*x[i],p[i]--):exit(!puts(p+2));}main(i){for(;~scanf("%d",x-i--););f(1,0);}
      |                                                                                                          ^~~~
main.c:1:106: note: include ‘<stdlib.h>’ or provide a declaration of ‘exit’
main.c:1:112: warning: imp

ソースコード

diff #

x[1<<26];char p[];f(i,s){x[i]|s-*x?s>*x|!x[i]|x[(i<<20)+s]++||f(i+1,s+x[i],p[i]=43)+f(i+1,s*x[i],p[i]--):exit(!puts(p+2));}main(i){for(;~scanf("%d",x-i--););f(1,0);}
0