Problem railroad
User Sans12345
Submission Time 2024-02-04 15:46:40
Score 0
Max Time N/A
Max Memory N/A

Compile Error

railroad.cpp: In function ‘long long int plan_roller_coaster(std::vector<int>, std::vector<int>)’:
railroad.cpp:37:15: error: template argument 1 is invalid
37 | vector <data> good, edge;
| ^
railroad.cpp:37:15: error: template argument 2 is invalid
railroad.cpp:39:10: error: request for member ‘push_back’ in ‘good’, which is of non-class type ‘int’
39 | good.push_back(s[i], i, 1);
| ^~~~~~~~~
railroad.cpp:40:10: error: request for member ‘push_back’ in ‘good’, which is of non-class type ‘int’
40 | good.push_back(t[i], i, -1);
| ^~~~~~~~~
railroad.cpp:42:13: error: request for member ‘begin’ in ‘good’, which is of non-class type ‘int’
42 | sort(good.begin(), good.end());
| ^~~~~
railroad.cpp:42:27: error: request for member ‘end’ in ‘good’, which is of non-class type ‘int’
42 | sort(good.begin(), good.end());
|