Compile Error

/in/foo.cc:1:1: error: 'include' does not name a type
 include <iostream>
 ^~~~~~~
/in/foo.cc: In function 'int main()':
/in/foo.cc:9:2: error: 'cin' was not declared in this scope
  cin>>n;
  ^~~
/in/foo.cc:20:18: error: 'printf' was not declared in this scope
  printf("%-2.f",r);
                  ^

信息

递交者
类型
递交
题目
P1054 数列求和
语言
C++
递交时间
2021-11-14 14:15:04
评测时间
2021-11-14 14:15:04
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes