/ 晓编程 /

记录详情

Compile Error

/in/foo.cc: In function 'int main()':
/in/foo.cc:5:13: error: expected unqualified-id before ';' token
  string s,a,;
             ^
/in/foo.cc:15:30: error: no match for 'operator*' (operand types are 'std::__cxx11::string {aka std::__cxx11::basic_string<char>}' and 'int')
    cout<<"快递费为:"<<a*5<<"元";
                             ~^~
/in/foo.cc:18:33: error: no match for 'operator*' (operand types are 'std::__cxx11::string {aka std::__cxx11::basic_string<char>}' and 'int')
       cout<<"快递费为:"<<a*5<<"元";
                                ~^~
/in/foo.cc:21:33: error: no match for 'operator*' (operand types are 'std::__cxx11::string {aka std::__cxx11::basic_string<char>}' and 'int')
       cout<<"快递费为:"<<a*5<<"元";
                                ~^~

信息

递交者
类型
递交
题目
P1031 快递小哥
语言
C++
递交时间
2020-08-20 12:09:27
评测时间
2020-08-20 12:09:27
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes