记录详情

Compile Error

In file included from /usr/include/c++/6/iostream:38:0,
                 from /in/foo.cc:17:
/usr/include/c++/6/sstream: In function 'int main()':
/usr/include/c++/6/sstream:41:15: error: expected '=' before '__attribute__'
 namespace std _GLIBCXX_VISIBILITY(default)
               ^
/usr/include/c++/6/sstream:41:15: error: expected identifier before '__attribute__'
/usr/include/c++/6/sstream:41:15: error: expected ';' before '__attribute__'
/usr/include/c++/6/sstream:41:15: error: expected primary-expression before '__attribute__'
/usr/include/c++/6/bits/sstream.tcc:39:15: error: expected '=' before '__attribute__'
 namespace std _GLIBCXX_VISIBILITY(default)
               ^
/usr/include/c++/6/bits/sstream.tcc:39:15: error: expected identifier before '__attribute__'
/usr/include/c++/6/bits/sstream.tcc:39:15: error: expected ';' before '__attribute__'
/usr/include/c++/6/bits/sstream.tcc:39:15: error: expected primary-expression before '__attribute__'
/in/foo.cc:39:15: error: expected unqualified-id before '<<' token
  ostringstream<<fixed<<setprecision(2)<<bill;
               ^~
/in/foo.cc:40:26: error: expected primary-expression before '.' token
  string ans=ostringstream.str();
                          ^

信息

递交者
类型
递交
题目
P1039 阶梯电价
语言
C++
递交时间
2024-05-27 16:00:34
评测时间
2024-05-27 16:00:34
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes