QOJ.ac
QOJ
ID | Problem | Submitter | Result | Time | Memory | Language | File size | Submit time | Judge time |
---|---|---|---|---|---|---|---|---|---|
#396377 | #2840. 绿绿与串串 | ucup-team1383 | Compile Error | / | / | C++17 | 1.4kb | 2024-04-22 18:03:13 | 2024-04-22 18:03:14 |
Due to the privacy settings of the submitter, you are not allowed to view this code.
Details
answer.code: In function ‘void solve()’: answer.code:10:13: warning: format ‘%s’ expects argument of type ‘char*’, but argument 2 has type ‘std::string’ {aka ‘std::__cxx11::basic_string<char>’} [-Wformat=] 10 | scanf("%s",s); | ~^ | | | char* answer.code: At global scope: answer.code:67:1: error: expected unqualified-id before ‘-’ token 67 | - | ^ answer.code: In function ‘void solve()’: answer.code:10:10: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 10 | scanf("%s",s); | ~~~~~^~~~~~~~