0_0_26029867_12425.cpp: In function 'dec* new_dec(dec*)':
0_0_26029867_12425.cpp:94:35: error: '_assert' was not declared in this scope
_assert(g_dec_mem_index < DEC_MEM);
^
0_0_26029867_12425.cpp:100:16: error: 'NULL' was not declared in this scope
_dec->child = NULL;
^
0_0_26029867_12425.cpp: In function 'void decide(dec*, int)':
0_0_26029867_12425.cpp:134:17: error: '_search' was not declared in this scope
if (_search(dec)) {
^
0_0_26029867_12425.cpp:138:11: error: '_push' was not declared in this scope
_push(dec);
^
0_0_26029867_12425.cpp:149:39: error: '_check_general_pos' was not declared in this scope
if (_check_general_pos(vs[i], hs[i])) {
^
0_0_26029867_12425.cpp:164:10: error: 'NULL' was not declared in this scope
_ret = NULL;
^
0_0_26029867_12425.cpp:192:37: error: '_check_horse_pos' was not declared in this scope
if (_check_horse_pos(vs[i], hs[i])) {
^
0_0_26029867_12425.cpp:199:39: error: '_check_general_pos' was not declared in this scope
if (_check_general_pos(vs[i], hs[i])) {
^
0_0_26029867_12425.cpp:206:10: error: 'NULL' was not declared in this scope
_ret = NULL;
^
0_0_26029867_12425.cpp:233:10: error: '_pop' was not declared in this scope
_pop(dec);
^
0_0_26029867_12425.cpp: In function 'void loop(dec*)':
0_0_26029867_12425.cpp:243:30: error: 'decice' was not declared in this scope
decice(dec_head, step_max++);
^
0_0_26029867_12425.cpp:244:4: error: expected 'while' before '(' token
} (dec_head.act == ACT_A || dec_head.act == ACT_B);
^
0_0_26029867_12425.cpp:244:14: error: request for member 'act' in 'dec_head', which is of pointer type 'dec*' (maybe you meant to use '->' ?)
} (dec_head.act == ACT_A || dec_head.act == ACT_B);
^
0_0_26029867_12425.cpp:244:39: error: request for member 'act' in 'dec_head', which is of pointer type 'dec*' (maybe you meant to use '->' ?)
} (dec_head.act == ACT_A || dec_head.act == ACT_B);
^
0_0_26029867_12425.cpp: At global scope:
0_0_26029867_12425.cpp:247:11: error: '::main' must return 'int'
void main()
^
0_0_26029867_12425.cpp: In function 'int main()':
0_0_26029867_12425.cpp:253:19: error: aggregate 'main()::result ret' has incomplete type and cannot be defined
struct result ret;
^
0_0_26029867_12425.cpp:254:19: error: aggregate 'main()::result result_a' has incomplete type and cannot be defined
struct result result_a, result_b;
^
0_0_26029867_12425.cpp:254:29: error: aggregate 'main()::result result_b' has incomplete type and cannot be defined
struct result result_a, result_b;
^
0_0_26029867_12425.cpp:260:20: error: 'scanf' was not declared in this scope
scanf("%d", &tc);
^
0_0_26029867_12425.cpp:270:9: error: 'g_status_history_index' was not declared in this scope
g_status_history_index = 0;
^
0_0_26029867_12425.cpp:271:90: error: '_roll' was not declared in this scope
ret = _roll(input[0], input[1], input[2], input[3], input[4], input[5], !input[6]);
^
0_0_26029867_12425.cpp:273:49: error: 'process' was not declared in this scope
process(status, &result_a, &result_b);
^
0_0_26029867_12425.cpp:276:32: error: 'WIN_A' was not declared in this scope
if (result_a.win | WIN_A || result_a.win | WIN_TIE) {
^
0_0_26029867_12425.cpp:276:56: error: 'WIN_TIE' was not declared in this scope
if (result_a.win | WIN_A || result_a.win | WIN_TIE) {
^
0_0_26029867_12425.cpp:277:38: error: 'printf' was not declared in this scope
printf("Lucky guy!\n");
^
0_0_26029867_12425.cpp:280:64: error: 'printf' was not declared in this scope
printf("Lose in %d steps T.T!\n", result_b.step);
^
0_0_26029867_12425.cpp:284:32: error: 'WIN_B' was not declared in this scope
if (result_b.win | WIN_B) {
^
0_0_26029867_12425.cpp:285:64: error: 'printf' was not declared in this scope
printf("Lose in %d steps T.T!\n", result_b.step);
^
0_0_26029867_12425.cpp:288:38: error: 'printf' was not declared in this scope
printf("Lucky guy!\n");
^
|