记录详情

Compile Error

foo.cc:3:5: error: cannot declare '::main' to be a global variable
    3 | int main
      |     ^~~~
foo.cc:5:9: error: expected primary-expression before 'int'
    5 |         int a,b;
      |         ^~~
foo.cc:5:9: error: expected '}' before 'int'
foo.cc:4:1: note: to match this '{'
    4 | {
      | ^
foo.cc:6:9: error: 'cin' does not name a type
    6 |         cin>>a>>b;
      |         ^~~
foo.cc:7:9: error: 'cout' does not name a type
    7 |         cout<<a+b;
      |         ^~~~
foo.cc:8:9: error: expected unqualified-id before 'return'
    8 |         return 0;
      |         ^~~~~~
foo.cc:9:1: error: expected declaration before '}' token
    9 | }
      | ^
[Hydro](https://hydro.ac)提供评测服务

信息

递交者
类型
自测
题目
2-1 单个数的3N+1猜想
语言
C++
递交时间
2023-08-16 13:18:09
评测时间
2023-08-16 13:18:09
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes