Mã chấm: 257121


Main.cc: In function ‘void enter()’:
Main.cc:14:16: error: ‘t’ was not declared in this scope
         cin >> t[i];
                ^
Main.cc: In function ‘void create_data()’:
Main.cc:19:5: error: ‘best_cnt’ was not declared in this scope
     best_cnt = n + 1;
     ^~~~~~~~
Main.cc:19:5: note: suggested alternative: ‘strcat’
     best_cnt = n + 1;
     ^~~~~~~~
     strcat
Main.cc:21:5: error: ‘t_max’ was not declared in this scope
     t_max[n] = t[n];
     ^~~~~
Main.cc:21:5: note: suggested alternative: ‘timex’
     t_max[n] = t[n];
     ^~~~~
     timex
Main.cc:21:16: error: ‘t’ was not declared in this scope
     t_max[n] = t[n];
                ^
Main.cc: In function ‘void branch_and_bound(int)’:
Main.cc:49:27: error: ‘t_max’ was not declared in this scope
     if (cnt + (S - sum) / t_max[i + 1] >= cnt_best)
                           ^~~~~
Main.cc:49:27: note: suggested alternative: ‘timex’
     if (cnt + (S - sum) / t_max[i + 1] >= cnt_best)
                           ^~~~~
                           timex
Main.cc:63:16: error: ‘t’ was not declared in this scope
         sum -= t[i] * j; 
                ^