记录详情

Compile Error

foo.c:2:1: error: unknown type name 'using'
    2 | using namespace std;
      | ^~~~~
foo.c:2:17: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'std'
    2 | using namespace std;
      |                 ^~~
foo.c: In function 'main':
foo.c:5:7: error: expected '=', ',', ';', 'asm' or '__attribute__' before '>=' token
    5 |  int m>=5,n<500;
      |       ^~
foo.c:5:7: error: expected expression before '>=' token
foo.c:6:8: error: 'm' undeclared (first use in this function)
    6 |  int a[m=1]][n]
      |        ^
foo.c:6:8: note: each undeclared identifier is reported only once for each function it appears in
foo.c:6:12: error: expected '=', ',', ';', 'asm' or '__attribute__' before ']' token
    6 |  int a[m=1]][n]
      |            ^
foo.c:6:12: error: expected statement before ']' token
foo.c:6:13: error: expected expression before '[' token
    6 |  int a[m=1]][n]
      |             ^
foo.c:6:14: error: 'n' undeclared (first use in this function)
    6 |  int a[m=1]][n]
      |              ^
foo.c: At top level:
foo.c:9:8: error: expected '=', ',', ';', 'asm' or '__attribute__' before numeric constant
    9 | retrun 0;
      |        ^
[Hydro](https://hydro.ac)提供评测服务

信息

递交者
类型
递交
题目
4-5 有几个鞍点
比赛
2022暑期青少年社团(训练赛)
语言
C
递交时间
2022-08-07 19:49:17
评测时间
2022-08-07 19:49:18
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes