QOJ.ac
QOJ
ID | Problem | Submitter | Result | Time | Memory | Language | File size | Submit time | Judge time |
---|---|---|---|---|---|---|---|---|---|
#243409 | #3040. Container | MaMengQi | Compile Error | / | / | C++20 | 4.6kb | 2023-11-08 10:14:47 | 2023-11-08 10:14:48 |
Due to the privacy settings of the submitter, you are not allowed to view this code.
Details
answer.code: In function ‘int main()’: answer.code:50:7: error: cannot convert ‘std::string’ {aka ‘std::__cxx11::basic_string<char>’} to ‘char*’ 50 | way(a, minA); | ^ | | | std::string {aka std::__cxx11::basic_string<char>} answer.code:14:16: note: initializing argument 1 of ‘void way(char*, int*)’ 14 | void way(char *a, int *min) { | ~~~~~~^ answer.code:51:7: error: cannot convert ‘std::string’ {aka ‘std::__cxx11::basic_string<char>’} to ‘char*’ 51 | way(b, minB); | ^ | | | std::string {aka std::__cxx11::basic_string<char>} answer.code:14:16: note: initializing argument 1 of ‘void way(char*, int*)’ 14 | void way(char *a, int *min) { | ~~~~~~^