/ Vijos /

记录详情

Compile Error

/in/foo.cc: In function 'int main()':
/in/foo.cc:27:11: error: 'm' was not declared in this scope
      cin>>m>>s;
           ^
/in/foo.cc:27:14: error: 's' was not declared in this scope
      cin>>m>>s;
              ^
/in/foo.cc:28:3: error: 'len' was not declared in this scope
   len=s[i].size();
   ^~~
/in/foo.cc:33:7: error: 'len' was not declared in this scope
    if(len[j+1]>len[j])
       ^~~
/in/foo.cc:36:10: error: 'm' was not declared in this scope
     swap(m[j+1],m[j]);
          ^
/in/foo.cc:37:10: error: 's' was not declared in this scope
     swap(s[j+1],s[j]);
          ^
/in/foo.cc:41:9: error: 's' was not declared in this scope
      if(s[k+1]>s[k])
         ^
/in/foo.cc:44:18: error: 'm' was not declared in this scope
             swap(m[k+1],m[k]);
                  ^
/in/foo.cc:49:9: error: 'm' was not declared in this scope
   cout<<m[i]<<endl;
         ^

信息

递交者
类型
自测
题目
P1257 水王争霸
语言
C++
递交时间
2018-02-21 21:22:23
评测时间
2018-02-21 21:22:23
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes