| Problem | hoofpaperscissor |
|---|---|
| User | bribritt |
| Submission Time | 2025-12-29 03:37:22 |
| Score | 0 |
| Max Time | N/A |
| Max Memory | N/A |
Owl Get a Life
hoofpaperscissor.cpp: In function ‘int main()’:
hoofpaperscissor.cpp:17:55: error: no match for ‘operator==’ (operand types are ‘const char’ and ‘std::string’ {aka ‘std::__cxx11::basic_string<char>’})
17 | chmax(dp[m][j+(l!=m)][i+1],dp[l][j][i]+("HPS"[m]==s[i]));
| ~~~~~~~~^~~~~~
| | |
| | std::string {aka std::__cxx11::basic_string<char>}
| const char
hoofpaperscissor.cpp:3:28: note: in definition of macro ‘chmax’
3 | #define chmax(x,y) x=max(x,y)
| ^
In file included from /usr/include/c++/9/regex:62,
from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:110,
from hoofpaperscissor.cpp:1:
/usr/include/c++/9/bits/regex.h:102