/ Vijos /

记录详情

Compile Error

foo.cc: In function 'int main()':
foo.cc:11:16: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
   for(int i=0;i<s.size();i++){//移项变号
               ~^~~~~~~~~
foo.cc:18:16: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
   for(int i=0;i<s.size();i++){
               ~^~~~~~~~~
foo.cc:36:38: error: cannot convert 'std::__cxx11::string {aka std::__cxx11::basic_string<char>}' to 'int' for argument '1' to 'std::_Setprecision std::setprecision(int)'
   cout<<c<<'='<<fixed<<setprecision(s)<<csx/ycx;
                                      ^
[Hydro](https://hydro.ac)提供评测服务

信息

递交者
类型
递交
题目
P1344 计算器的改良
语言
C++
递交时间
2021-07-12 09:17:31
评测时间
2021-07-12 09:17:31
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes