Problem | competition |
---|---|
User | Henries |
Submission Time | 2024-10-05 23:54:19 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
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:8:17: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
8 | if (val[0] == "physics"){
| ^~~~~~~~~
competition.cpp:16:22: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
16 | else if (val[0] == "bio"){
| ^~~~~
competition.cpp:17:45: error: no match for ‘operator==’ (operand types are ‘__gnu_cxx::__alloc_traits<std::allocator<char>, char>::value_type’ {aka ‘char’} and ‘std::vector<long long int>::iterator’ {aka ‘__gnu_cxx::__normal_iterator<long long int*, std::vector<long long int> >’})
17 | if (b!=0 && find(v.begin(),v.end(),val[1]==v.end()){
In file included from /usr/include/c++/9/regex:62,