记录详情

Compile Error

/in/foo.cc: In member function 'void girlfriends::enter(const std::vector<std::__cxx11::basic_string<char> >&)':
/in/foo.cc:45:9: error: redeclaration of 'std::__cxx11::string name'
  string name, adress;
         ^~~~
/in/foo.cc:43:9: note: 'std::__cxx11::string name' previously declared here
  string name, adress;
         ^~~~
/in/foo.cc:45:15: error: redeclaration of 'std::__cxx11::string adress'
  string name, adress;
               ^~~~~~
/in/foo.cc:43:15: note: 'std::__cxx11::string adress' previously declared here
  string name, adress;
               ^~~~~~
/in/foo.cc:50:16: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
   for(int n=0;n<girls[i].size();n++)
               ~^~~~~~~~~~~~~~~~
/in/foo.cc: In member function 'void girlfriends::inquiry(const std::vector<std::__cxx11::basic_string<char> >&)':
/in/foo.cc:76:22: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
    for (int n = 0; n < all_name.size(); n++) {
                    ~~^~~~~~~~~~~~~~~~~
/in/foo.cc:91:22: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
    for (int n = 0; n < all_adress.size(); n++) {
                    ~~^~~~~~~~~~~~~~~~~~~
/in/foo.cc:94:24: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
      for (int i = 1; i < all_name[n].size()-1; i++)
                      ~~^~~~~~~~~~~~~~~~~~~~~~

信息

递交者
类型
递交
题目
Find a girl friend
语言
C++
递交时间
2017-06-11 18:30:36
评测时间
2017-06-11 18:30:36
评测机
分数
0
总耗时
266ms
峰值内存
38.988 MiB