0_0_27074168_31433.c:4:1: error: expected identifier or '(' before '/' token
//#define DEBUG_PRINT
^
0_0_27074168_31433.c:4:3: error: stray '#' in program
//#define DEBUG_PRINT
^
0_0_27074168_31433.c: In function 'statistic_tickets_category':
0_0_27074168_31433.c:30:2: error: 'for' loop initial declarations are only allowed in C99 or C11 mode
for (int i = 1; i < tickets_num; i++){
^
0_0_27074168_31433.c:30:2: note: use option -std=c99, -std=gnu99, -std=c11 or -std=gnu11 to compile your code
0_0_27074168_31433.c: In function 'print_sort_tickets':
0_0_27074168_31433.c:44:2: error: 'for' loop initial declarations are only allowed in C99 or C11 mode
for (int j = 0; j < team_num; j++)
^
0_0_27074168_31433.c:44:22: error: 'team_num' undeclared (first use in this function)
for (int j = 0; j < team_num; j++)
^
0_0_27074168_31433.c:44:22: note: each undeclared identifier is reported only once for each function it appears in
0_0_27074168_31433.c: In function 'sort_members':
0_0_27074168_31433.c:51:2: error: 'for' loop initial declarations are only allowed in C99 or C11 mode
for (int j = 0; j < team_num; j++)
^
0_0_27074168_31433.c:51:22: error: 'team_num' undeclared (first use in this function)
for (int j = 0; j < team_num; j++)
^
0_0_27074168_31433.c:53:2: error: 'for' loop initial declarations are only allowed in C99 or C11 mode
for (int i = 1; i < team_num; i++){
^
0_0_27074168_31433.c:54:3: error: 'for' loop initial declarations are only allowed in C99 or C11 mode
for (int j = 0; j < team_num - i; j++){
^
0_0_27074168_31433.c: In function 'get_team_nums':
0_0_27074168_31433.c:91:2: error: 'for' loop initial declarations are only allowed in C99 or C11 mode
for (int i = 0; i < ticket_category.category_num; i++){
^
0_0_27074168_31433.c: In function 'conbination_key_times_cal':
0_0_27074168_31433.c:104:2: error: 'for' loop initial declarations are only allowed in C99 or C11 mode
for (int n = 0; n < conb_tickets.category_num; n++){
^
0_0_27074168_31433.c:106:3: error: 'for' loop initial declarations are only allowed in C99 or C11 mode
for (int j = 0; j < conb_tickets.category_num; j++){
^
0_0_27074168_31433.c:118:2: error: 'for' loop initial declarations are only allowed in C99 or C11 mode
for (int j = 0; j < conb_tickets.category_num; j++){
^
0_0_27074168_31433.c:119:3: error: 'for' loop initial declarations are only allowed in C99 or C11 mode
for (int i = 0; i < team_num; i++){
^
0_0_27074168_31433.c:119:23: error: 'team_num' undeclared (first use in this function)
for (int i = 0; i < team_num; i++){
^
0_0_27074168_31433.c: At top level:
0_0_27074168_31433.c:145:1: error: unknown type name 'bool'
bool should_continue_reamain_search(int end_level, int curr_level, int curr_team_idx, int curr_accu){
^
0_0_27074168_31433.c: In function 'should_continue_reamain_search':
0_0_27074168_31433.c:146:20: error: 'team_num' undeclared (first use in this function)
int remain_team = team_num - curr_team_idx - 1;
^
0_0_27074168_31433.c:149:10: error: 'false' undeclared (first use in this function)
return false;
^
0_0_27074168_31433.c:151:2: error: 'for' loop initial declarations are only allowed in C99 or C11 mode
for (int i = team_num - remain_level; i < team_num; i++)
^
0_0_27074168_31433.c:156:9: error: 'true' undeclared (first use in this function)
return true;
^
0_0_27074168_31433.c: In function 'DFS':
0_0_27074168_31433.c:161:2: error: unknown type name 'bool'
bool fisrt = true;
^
0_0_27074168_31433.c:161:15: error: 'true' undeclared (first use in this function)
bool fisrt = true;
^
0_0_27074168_31433.c:164:2: error: 'for' loop initial declarations are only allowed in C99 or C11 mode
for (int i = team_idx; i < team_num; i++){
^
0_0_27074168_31433.c:164:29: error: 'team_num' undeclared (first use in this function)
for (int i = team_idx; i < team_num; i++){
^
0_0_27074168_31433.c:165:17: error: 'false' undeclared (first use in this function)
if ((fisrt == false) && (sort_tickets[i] == sort_tickets[i-1]))
^
0_0_27074168_31433.c: In function 'init':
0_0_27074168_31433.c:188:2: error: expected expression before '/' token
//sort members
^
0_0_27074168_31433.c:191:2: error: 'for' loop initial declarations are only allowed in C99 or C11 mode
for (int j = 0; j < team_num; j++){
^
0_0_27074168_31433.c:191:22: error: 'team_num' undeclared (first use in this function)
for (int j = 0; j < team_num; j++){
^
0_0_27074168_31433.c:195:2: error: expected expression before '/' token
//calculate half
^
0_0_27074168_31433.c:197:2: error: 'for' loop initial declarations are only allowed in C99 or C11 mode
for (int i = 0; i < team_num; i++){
^
0_0_27074168_31433.c:198:3: error: 'accu_val' undeclared (first use in this function)
accu_val += sort_tickets[i];
^
0_0_27074168_31433.c:206:2: error: expected expression before '/' token
//ticket category
^
0_0_27074168_31433.c: In function 'search':
0_0_27074168_31433.c:221:2: error: 'for' loop initial declarations are only allowed in C99 or C11 mode
for (int i = 1; i < team_num+1; i++){
^
0_0_27074168_31433.c:221:22: error: 'team_num' undeclared (first use in this function)
for (int i = 1; i < team_num+1; i++){
^
0_0_27074168_31433.c: In function 'main':
0_0_27074168_31433.c:227:2: error: expected expression before '/' token
//freopen("input.txt", "r", stdin);
^
0_0_27074168_31433.c:231:2: error: expected expression before '/' token
// init factorial table
^
0_0_27074168_31433.c:233:2: error: 'for' loop initial declarations are only allowed in C99 or C11 mode
for (int i = 1; i < MAX_TEAM_NUM + 1; i++)
^
0_0_27074168_31433.c:236:11: error: redefinition of 'i'
for (int i = 0; i < case_num; i++){
^
0_0_27074168_31433.c:233:11: note: previous definition of 'i' was here
for (int i = 1; i < MAX_TEAM_NUM + 1; i++)
^
0_0_27074168_31433.c:236:2: error: 'for' loop initial declarations are only allowed in C99 or C11 mode
for (int i = 0; i < case_num; i++){
^
0_0_27074168_31433.c:237:17: error: 'team_num' undeclared (first use in this function)
scanf("%d ", &team_num);
^
0_0_27074168_31433.c:238:3: error: 'for' loop initial declarations are only allowed in C99 or C11 mode
for (int j = 0; j < team_num; j++){
^
0_0_27074168_31433.c:243:12: error: redefinition of 'j'
for (int j = 0; j < team_num; j++){
^
0_0_27074168_31433.c:238:12: note: previous definition of 'j' was here
for (int j = 0; j < team_num; j++){
^
0_0_27074168_31433.c:243:3: error: 'for' loop initial declarations are only allowed in C99 or C11 mode
for (int j = 0; j < team_num; j++){
^
|