結果
| 問題 |
No.10 +か×か
|
| コンテスト | |
| ユーザー |
👑 testestest
|
| 提出日時 | 2016-03-14 07:14:18 |
| 言語 | C90 (gcc 12.3.0) |
| 結果 |
RE
|
| 実行時間 | - |
| コード長 | 165 bytes |
| コンパイル時間 | 461 ms |
| コンパイル使用メモリ | 20,224 KB |
| 実行使用メモリ | 16,128 KB |
| 最終ジャッジ日時 | 2024-09-25 11:58:45 |
| 合計ジャッジ時間 | 6,067 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 7 RE * 5 |
コンパイルメッセージ
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
ソースコード
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);}
testestest