/ Vijos /

记录详情

Compile Error

foo.cc: In function 'int main()':
foo.cc:6:9: warning: empty parentheses were disambiguated as a function declaration [-Wvexing-parse]
    6 | int main() {
      |         ^~
foo.cc:6:9: note: remove parentheses to default-initialize a variable
    6 | int main() {
      |         ^~
      |         --
foo.cc:6:9: note: or replace parentheses with braces to value-initialize a variable
foo.cc:6:12: error: a function-definition is not allowed here before '{' token
    6 | int main() {
      |            ^
foo.cc:19:2: error: expected '}' at end of input
   19 | }
      |  ^
foo.cc:4:1: note: to match this '{'
    4 | {
      | ^
foo.cc:5:9: warning: unused variable 'a' [-Wunused-variable]
    5 |     int a[205];
      |         ^
[Hydro](https://hydro.ac)提供评测服务

信息

递交者
类型
递交
题目
P1078 松鼠吃果子
语言
C++
递交时间
2022-08-23 15:47:45
评测时间
2022-08-23 15:47:45
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes