记录详情

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:24:9: warning: implicit declaration of function 'scanf_s'; did you mean 'scanf'? [-Wimplicit-function-declaration]
   24 |         scanf_s("%d %d", &n1, &n2);
      |         ^~~~~~~
      |         scanf
foo.c:23:23: warning: unused variable 'a2' [-Wunused-variable]
   23 |         int n1, n2,a1,a2;
      |                       ^~
foo.c:23:20: warning: unused variable 'a1' [-Wunused-variable]
   23 |         int n1, n2,a1,a2;
      |                    ^~
[Hydro](https://hydro.ac)提供评测服务

信息

递交者
类型
递交
题目
A9-7 数组中所有极大值
比赛
2023 程序设计与竞赛(作业5:从数组看集体)
语言
C
递交时间
2023-10-21 21:40:29
评测时间
2023-10-21 21:40:29
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes