记录详情

Compile Error

foo.cc:3:12: error: stray '#' in program
    3 | int main(){#include<iostream>
      |            ^
foo.cc: In function 'int main()':
foo.cc:3:13: error: 'include' was not declared in this scope
    3 | int main(){#include<iostream>
      |             ^~~~~~~
foo.cc:3:29: error: expected primary-expression before '>' token
    3 | int main(){#include<iostream>
      |                             ^
foo.cc:4:1: error: expected primary-expression before 'using'
    4 | using namespace std;
      | ^~~~~
foo.cc:6:1: error: a function-definition is not allowed here before '{' token
    6 | {
      | ^
foo.cc:18:1: error: a function-definition is not allowed here before '{' token
   18 | {
      | ^
foo.cc:25:9: warning: empty parentheses were disambiguated as a function declaration [-Wvexing-parse]
   25 | int main()
      |         ^~
foo.cc:25:9: note: remove parentheses to default-initialize a variable
   25 | int main()
      |         ^~
      |         --
foo.cc:25:9: note: or replace parentheses with braces to value-initialize a variable
foo.cc:26:1: error: a function-definition is not allowed here before '{' token
   26 | {
      | ^
foo.cc:34:2: error: expected '}' at end of input
   34 | }
      |  ^
foo.cc:3:11: note: to match this '{'
    3 | int main(){#include<iostream>
      |           ^
[Hydro](https://hydro.ac)提供评测服务

信息

递交者
类型
递交
题目
A5-1 超级素数判断
语言
C++
递交时间
2022-08-18 13:27:39
评测时间
2022-08-18 13:27:39
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes