| Problem | duckhunt23 |
|---|---|
| User | shenshiqi |
| Submission Time | 2025-12-08 11:16:57 |
| Score | 0 |
| Max Time | N/A |
| Max Memory | N/A |
Owl Get a Life
duckhunt23.cpp: In function ‘int main()’:
duckhunt23.cpp:68:28: error: cannot convert ‘std::string’ {aka ‘std::__cxx11::basic_string<char>’} to ‘long long int’ in initialization
68 | ll curName = names[i];
| ~~~~~~~^
| |
| std::string {aka std::__cxx11::basic_string<char>}
duckhunt23.cpp:70:21: error: request for member ‘find’ in ‘curName’, which is of non-class type ‘long long int’
70 | if (curName.find(word[j]) == string::npos) totalChanges++;
| ^~~~
duckhunt23.cpp:75:29: error: expected ‘;’ before ‘chosen’
75 | minVal = totalChanges
| ^
| ;
76 | chosen = word;
| ~~~~~~