Compile Error

/in/foo.cc: In function 'int main()':
/in/foo.cc:24:9: error: 'ios' has not been declared
   24 |     std:ios::sync_with_stdio(false);
      |         ^~~
/in/foo.cc:25:5: error: 'cin' was not declared in this scope
   25 |     cin>>n;
      |     ^~~
/in/foo.cc:1:1: note: 'std::cin' is defined in header '<iostream>'; did you forget to '#include <iostream>'?
  +++ |+#include <iostream>
    1 | #define int long long
/in/foo.cc:27:5: error: 'cout' was not declared in this scope
   27 |     cout<<sum<<endl;
      |     ^~~~
/in/foo.cc:27:5: note: 'std::cout' is defined in header '<iostream>'; did you forget to '#include <iostream>'?
/in/foo.cc:27:16: error: 'endl' was not declared in this scope
   27 |     cout<<sum<<endl;
      |                ^~~~
/in/foo.cc:1:1: note: 'std::endl' is defined in header '<ostream>'; did you forget to '#include <ostream>'?
  +++ |+#include <ostream>
    1 | #define int long long
/in/foo.cc:28:14: error: expected '}' at end of input
   28 |     return 0;
      |              ^
/in/foo.cc:22:1: note: to match this '{'
   22 | {
      | ^
/in/foo.cc:24:5: warning: label 'std' defined but not used [-Wunused-label]
   24 |     std:ios::sync_with_stdio(false);
      |     ^~~

信息

递交者
类型
递交
题目
P2967 魔术扑克牌排列
比赛
2025CSP模拟赛3
语言
C++
递交时间
2025-10-06 20:46:06
评测时间
2025-10-06 20:46:06
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes