Compile Error

/in/foo.cc:16:18: error: stray '#' in program
   16 |                 }#include<iostream>
      |                  ^
/in/foo.cc: In function 'int main()':
/in/foo.cc:7:23: error: 'x' was not declared in this scope
    7 |         int k;cin>>k; x=1;
      |                       ^
/in/foo.cc:16:19: error: 'include' was not declared in this scope
   16 |                 }#include<iostream>
      |                   ^~~~~~~
/in/foo.cc:16:35: error: expected primary-expression before '>' token
   16 |                 }#include<iostream>
      |                                   ^
/in/foo.cc:17:1: error: expected primary-expression before 'using'
   17 | using namespace std;
      | ^~~~~
/in/foo.cc:20:9: warning: empty parentheses were disambiguated as a function declaration [-Wvexing-parse]
   20 | int main()
      |         ^~
/in/foo.cc:20:9: note: remove parentheses to default-initialize a variable
   20 | int main()
      |         ^~
      |         --
/in/foo.cc:20:9: note: or replace parentheses with braces to value-initialize a variable
/in/foo.cc:21:1: error: a function-definition is not allowed here before '{' token
   21 | {
      | ^
/in/foo.cc:19:11: warning: unused variable 'a' [-Wunused-variable]
   19 | long long a[N],s[N];
      |           ^
/in/foo.cc:19:16: warning: unused variable 's' [-Wunused-variable]
   19 | long long a[N],s[N];
      |                ^

信息

递交者
类型
递交
题目
P3094 卫星发射 pta202311T1
语言
C++
递交时间
2026-11-04 17:25:14
评测时间
2026-11-04 17:25:14
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes