/ Vijos /

记录详情

Compile Error

/in/foo.cc: In function 'long long int work(std::__cxx11::string)':
/in/foo.cc:37:18: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
     for(int i=0;i<s.size();i++)  
                 ~^~~~~~~~~
/in/foo.cc: In function 'int main()':
/in/foo.cc:149:13: error: 'cin' was not declared in this scope
     getline(cin,sss);  
             ^~~
/in/foo.cc:149:13: note: suggested alternative: 'main'
     getline(cin,sss);  
             ^~~
             main
/in/foo.cc:150:18: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
     for(int i=0;i<sss.size();i++)  
                 ~^~~~~~~~~~~
/in/foo.cc:153:18: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
     for(int i=0;i<ss.size();i++)  
                 ~^~~~~~~~~~
/in/foo.cc:160:22: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
         for(int j=0;j<s2.size();j++)  
                     ~^~~~~~~~~~
/in/foo.cc:162:22: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
         for(int j=0;j<s.size();j++)  
                     ~^~~~~~~~~
/in/foo.cc:165:19: error: 'cout' was not declared in this scope
         if(aim==z)cout<<b[i];  
                   ^~~~
/in/foo.cc:166:6: error: 'cout' was not declared in this scope
     }cout<<endl;  
      ^~~~
/in/foo.cc: In function 'int pre(char)':
/in/foo.cc:30:1: warning: control reaches end of non-void function [-Wreturn-type]
 }  
 ^

信息

递交者
类型
递交
题目
P1003 等价表达式
语言
C++
递交时间
2017-10-19 17:52:15
评测时间
2017-10-19 17:52:15
评测机
分数
0
总耗时
476ms
峰值内存
42.93 MiB