0_0_27074288_26088.c:4:1: error: expected identifier or '(' before '/' token
//#define DEBUG_PRINT
^
0_0_27074288_26088.c:4:3: error: stray '#' in program
//#define DEBUG_PRINT
^
0_0_27074288_26088.c: In function 'print_sort_tickets':
0_0_27074288_26088.c:46:18: error: 'team_num' undeclared (first use in this function)
for (j = 0; j < team_num; j++)
^
0_0_27074288_26088.c:46:18: note: each undeclared identifier is reported only once for each function it appears in
0_0_27074288_26088.c: In function 'sort_members':
0_0_27074288_26088.c:54:18: error: 'team_num' undeclared (first use in this function)
for (j = 0; j < team_num; j++)
^
0_0_27074288_26088.c: In function 'conbination_key_times_cal':
0_0_27074288_26088.c:124:19: error: 'team_num' undeclared (first use in this function)
for (i = 0; i < team_num; i++){
^
0_0_27074288_26088.c: In function 'should_continue_reamain_search':
0_0_27074288_26088.c:151:20: error: 'team_num' undeclared (first use in this function)
int remain_team = team_num - curr_team_idx - 1;
^
0_0_27074288_26088.c: In function 'DFS':
0_0_27074288_26088.c:171:25: error: 'team_num' undeclared (first use in this function)
for (i = team_idx; i < team_num; i++){
^
0_0_27074288_26088.c: In function 'init':
0_0_27074288_26088.c:196:2: error: expected expression before '/' token
//sort members
^
0_0_27074288_26088.c:199:2: error: 'for' loop initial declarations are only allowed in C99 or C11 mode
for (int j = 0; j < team_num; j++){
^
0_0_27074288_26088.c:199:2: note: use option -std=c99, -std=gnu99, -std=c11 or -std=gnu11 to compile your code
0_0_27074288_26088.c:199:22: error: 'team_num' undeclared (first use in this function)
for (int j = 0; j < team_num; j++){
^
0_0_27074288_26088.c:203:2: error: expected expression before '/' token
//calculate half
^
0_0_27074288_26088.c:213:2: error: expected expression before '/' token
//ticket category
^
0_0_27074288_26088.c: In function 'search':
0_0_27074288_26088.c:229:18: error: 'team_num' undeclared (first use in this function)
for (i = 1; i < team_num+1; i++){
^
0_0_27074288_26088.c: In function 'main':
0_0_27074288_26088.c:235:2: error: expected expression before '/' token
//freopen("input.txt", "r", stdin);
^
0_0_27074288_26088.c:241:2: error: expected expression before '/' token
// init factorial table
^
0_0_27074288_26088.c:247:17: error: 'team_num' undeclared (first use in this function)
scanf("%d ", &team_num);
^
|