/ 晓编程 /

记录详情

Compile Error

/in/foo.cc: In function 'int main()':
/in/foo.cc:7:10: error: no match for 'operator%' (operand types are 'std::__cxx11::string {aka std::__cxx11::basic_string<char>}' and 'int')
      if(s%3==3)
         ~^~
/in/foo.cc:10:17: error: no match for 'operator%' (operand types are 'std::__cxx11::string {aka std::__cxx11::basic_string<char>}' and 'int')
      } else if(s%5==5)
                ~^~
/in/foo.cc:13:21: error: no match for 'operator%' (operand types are 'std::__cxx11::string {aka std::__cxx11::basic_string<char>}' and 'int')
         }  else if(s%3==3&&s%5==5)
                    ~^~
/in/foo.cc:13:29: error: no match for 'operator%' (operand types are 'std::__cxx11::string {aka std::__cxx11::basic_string<char>}' and 'int')
         }  else if(s%3==3&&s%5==5)
                            ~^~

信息

递交者
类型
递交
题目
P1032 关雎
语言
C++
递交时间
2020-08-20 10:25:53
评测时间
2020-08-20 10:25:53
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes