Compile Error

/in/foo.cc: In function 'int main()':
/in/foo.cc:5:9: error: 'setw' was not declared in this scope; did you mean 'std::setw'?
    5 |         setw 2147483647;
      |         ^~~~
      |         std::setw
In file included from /in/foo.cc:2:
/usr/include/c++/12/iomanip:225:3: note: 'std::setw' declared here
  225 |   setw(int __n)
      |   ^~~~
/in/foo.cc:8:9: error: expected initializer before 'cin'
    8 |         cin>>a>>" ">>b" ">>c>>" ">>end;
      |         ^~~
/in/foo.cc:9:9: error: 'cout' was not declared in this scope
    9 |         cout<<b<<endl;
      |         ^~~~
/in/foo.cc:9:18: error: 'endl' was not declared in this scope
    9 |         cout<<b<<endl;
      |                  ^~~~
/in/foo.cc:7:13: warning: unused variable 'a' [-Wunused-variable]
    7 |         int a,b,c
      |             ^

信息

递交者
类型
自测
题目
P2241 1.1.2输出第二个整数
语言
C++
递交时间
2026-10-23 21:47:29
评测时间
2026-10-23 21:47:29
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes