/ AOCode /

记录详情

Compile Error

foo.cc: In function 'void change_lowercase(std::__cxx11::string&)':
foo.cc:10:19: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
  for(int i = 0; i < s.size(); i++)
                 ~~^~~~~~~~~~
foo.cc: In function 'void cutpair(std::__cxx11::string, std::vector<codepair>&)':
foo.cc:30:25: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
  while(s[i] == ' ' && i < s.size()) cout << ' ', ++i;
                       ~~^~~~~~~~~~
foo.cc:31:10: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
  while(i < s.size()) {
        ~~^~~~~~~~~~
foo.cc: In function 'void putdecode(codepair)':
foo.cc:56:32: warning: array subscript has type 'char' [-Wchar-subscripts]
  pair<int, int> a = mapcode[p.f];
                                ^
foo.cc:57:32: warning: array subscript has type 'char' [-Wchar-subscripts]
  pair<int, int> b = mapcode[p.r];
                                ^
foo.cc:80:2: error: expected ';' before 'ios'
  ios::sync_with_stdio(0);
  ^~~
foo.cc:87:6: error: declaration of 'int p' shadows a parameter
  int p = 1, q = 1;
      ^
foo.cc:88:19: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
  for(int i = 0; i < k.size(); i++) {
                 ~~^~~~~~~~~~
foo.cc:90:19: warning: array subscript has type 'char' [-Wchar-subscripts]
   else if(uni[k[i]]) continue;
                   ^
foo.cc:93:12: warning: array subscript has type 'char' [-Wchar-subscripts]
    uni[k[i]] = true, mapcode[k[i]] = make_pair(p, q);
            ^
foo.cc:93:34: warning: array subscript has type 'char' [-Wchar-subscripts]
    uni[k[i]] = true, mapcode[k[i]] = make_pair(p, q);
                                  ^
foo.cc:125:19: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
  for(int i = 0; i < v.size(); i++) {
                 ~~^~~~~~~~~~
foo.cc:131:14: error: expected '}' at end of input
  cout << endl;
              ^
[Hydro](https://hydro.ac)提供评测服务

信息

递交者
类型
递交
题目
P1015 Mission 2 - A1 : Crack the Code! (EASY)
语言
C++
递交时间
2021-08-11 16:20:02
评测时间
2021-08-11 16:20:02
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes