tri.cpp: In function 'void ordena(std::vector<int>&, std::vector<int>&)':
tri.cpp:21:21: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
21 | for( int i = 2; i < v.size(); i++ ){
| ~~^~~~~~~~~~
tri.cpp:22:9: error: 'is_clockwise' was not declared in this scope
22 | if( is_clockwise( v[0], v[1], v[i] ) ) r.push_back(v[i]);
| ^~~~~~~~~~~~
tri.cpp: In function 'int main()':
tri.cpp:30:11: error: 'get_n' was not declared in this scope
30 | int n = get_n();
| ^~~~~
tri.cpp:37:33: error: 'is_clockwise' was not declared in this scope
37 | while( hull.size() >= 2 && !is_clockwise( hull[hull.size() - 2], hull.back(), cur ) ) hull.pop_back();
| ^~~~~~~~~~~~
tri.cpp:40:21: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
40 | for( int i = 0; i < hull.size() - 1; i++ ){
| ~~^~~~~~~~~~~~~~~~~
tri.cpp:41:10: error: 'is_clockwise' was not declared in this scope
41 | if( !is_clockwise(hull[i], hull[i + 1], hull.back()) ) continue;
| ^~~~~~~~~~~~
tri.cpp:42:5: error: 'give_answer' was not declared in this scope
42 | give_answer((int)hull.size() - i); break;
| ^~~~~~~~~~~