记录详情

Compile Error

foo.cc: In function 'int main()':
foo.cc:37:12: error: expected ';' before ')' token
   37 |    for (--n)
      |            ^
      |            ;
foo.cc:44:4: error: expected primary-expression before 'return'
   44 |    return 0;
      |    ^~~~~~
foo.cc:43:20: error: expected ')' before 'return'
   43 |    printf("%d", a);
      |                    ^
      |                    )
   44 |    return 0;
      |    ~~~~~~           
foo.cc:37:8: note: to match this '('
   37 |    for (--n)
      |        ^
foo.cc:35:9: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
   35 |    scanf("%d", &n);
      |    ~~~~~^~~~~~~~~~
foo.cc:36:9: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
   36 |    scanf("%d", &a);
      |    ~~~~~^~~~~~~~~~
[Hydro](https://hydro.ac)提供评测服务

信息

递交者
类型
递交
题目
1-3 序列循环左移
语言
C++
递交时间
2022-08-09 20:50:01
评测时间
2022-08-09 20:50:01
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes