Problem competition
User Henries
Submission Time 2024-10-05 23:51:30
Score 0
Max Time N/A
Max Memory N/A

Compile Error

competition.cpp: In function ‘long long int solve(std::multimap<long long int, std::__cxx11::basic_string<char>, std::greater<long long int> >, long long int, long long int)’:
competition.cpp:5:20: error: expected unqualified-id before ‘=’ token
5 | vector<long long> = v;
| ^
competition.cpp:8:17: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
8 | if (val[0] == "physics"){
| ^~~~~~~~~
competition.cpp:9:21: error: ‘v’ was not declared in this scope
9 | if (a!=0 && find(v.begin(),v.end(),val[1]) == v.end()){
| ^
competition.cpp:16:22: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
16 | else if (val[0] == "bio"){
| ^~~~~
competition.cpp:17:21: error: ‘v’ was not declared in this scope
17 | if (b!=0 && find(v.begin(),v.end(),val[1]==v.end(