QOJ.ac
QOJ
ID | 题目 | 提交者 | 结果 | 用时 | 内存 | 语言 | 文件大小 | 提交时间 | 测评时间 |
---|---|---|---|---|---|---|---|---|---|
#271518 | #7879. Colorful Balloons | ucup-team2334# | Compile Error | / | / | C++23 | 644b | 2023-12-02 13:09:36 | 2023-12-02 13:09:37 |
Due to the privacy settings of the submitter, you are not allowed to view this code.
详细
answer.code:5:17: error: ‘std::map<std::__cxx11::basic_string<char>, int> time’ redeclared as different kind of entity 5 | map<string,int> time; | ^~~~ In file included from /usr/include/pthread.h:23, from /usr/include/x86_64-linux-gnu/c++/11/bits/gthr-default.h:35, from /usr/include/x86_64-linux-gnu/c++/11/bits/gthr.h:148, from /usr/include/c++/11/ext/atomicity.h:35, from /usr/include/c++/11/bits/ios_base.h:39, from /usr/include/c++/11/ios:42, from /usr/include/c++/11/ostream:38, from /usr/include/c++/11/iostream:39, from answer.code:1: /usr/include/time.h:75:15: note: previous declaration ‘time_t time(time_t*)’ 75 | extern time_t time (time_t *__timer) __THROW; | ^~~~ answer.code: In function ‘int main()’: answer.code:15:43: error: request for member ‘find’ in ‘time’, which is of non-class type ‘time_t(time_t*) noexcept’ {aka ‘long int(long int*) noexcept’} 15 | map<string,int>::iterator it=time.find(c); | ^~~~ answer.code:16:21: error: request for member ‘end’ in ‘time’, which is of non-class type ‘time_t(time_t*) noexcept’ {aka ‘long int(long int*) noexcept’} 16 | if(it==time.end()){ | ^~~ answer.code:17:18: error: request for member ‘insert’ in ‘time’, which is of non-class type ‘time_t(time_t*) noexcept’ {aka ‘long int(long int*) noexcept’} 17 | time.insert(pair<string,int>(c,t)); | ^~~~~~ answer.code:23:44: error: request for member ‘begin’ in ‘time’, which is of non-class type ‘time_t(time_t*) noexcept’ {aka ‘long int(long int*) noexcept’} 23 | for (map<string,int>::iterator it=time.begin();it!=time.end();++it){ | ^~~~~ answer.code:23:61: error: request for member ‘end’ in ‘time’, which is of non-class type ‘time_t(time_t*) noexcept’ {aka ‘long int(long int*) noexcept’} 23 | for (map<string,int>::iterator it=time.begin();it!=time.end();++it){ | ^~~