QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#584068#8676. Three Kinds of Diceucup-team3022Compile Error//C++148.7kb2024-09-23 07:07:532024-09-23 07:07:54

Details

answer.code: In function ‘void solve(std::vector<Point<T> >&)’:
answer.code:182:16: error: missing template arguments before ‘p’
  182 |     for (Point p : intersect) {
      |                ^
answer.code:205:5: error: expected primary-expression before ‘for’
  205 |     for (int i = 0; i < hull.size(); i++) {
      |     ^~~
answer.code:204:24: error: expected ‘)’ before ‘for’
  204 |     halfplanes.clear();
      |                        ^
      |                        )
  205 |     for (int i = 0; i < hull.size(); i++) {
      |     ~~~                 
answer.code:182:9: note: to match this ‘(’
  182 |     for (Point p : intersect) {
      |         ^
answer.code:212:16: error: missing template arguments before ‘p’
  212 |     for (Point p : intersect) {
      |                ^
answer.code:216:1: error: expected primary-expression before ‘}’ token
  216 | }
      | ^
answer.code:215:45: error: expected ‘)’ before ‘}’ token
  215 |     cout << min_d2 << " " << max_d1 << "\n";
      |                                             ^
      |                                             )
  216 | }
      | ~                                            
answer.code:212:9: note: to match this ‘(’
  212 |     for (Point p : intersect) {
      |         ^
answer.code:216:1: error: expected primary-expression before ‘}’ token
  216 | }
      | ^
answer.code: In instantiation of ‘void solve(std::vector<Point<T> >&) [with T = double]’:
answer.code:291:10:   required from here
answer.code:204:21: error: could not convert ‘halfplanes.std::vector<Halfplane<double>, std::allocator<Halfplane<double> > >::clear()’ from ‘void’ to ‘bool’
  204 |     halfplanes.clear();
      |     ~~~~~~~~~~~~~~~~^~
      |                     |
      |                     void