记录详情

Compile Error

foo.c: In function ‘main’:
foo.c:15:21: error: ‘n’ undeclared (first use in this function); did you mean ‘n1’?
   15 |         scanf("%d",&n);
      |                     ^
      |                     n1
foo.c:15:21: note: each undeclared identifier is reported only once for each function it appears in
foo.c:24:15: error: expected ‘;’ before ‘for’
   24 |         b[0]=x
      |               ^
      |               ;
   25 |         for(count2=1;count2<n2+1;count2++){
      |         ~~~    
foo.c:23:13: warning: unused variable ‘count2’ [-Wunused-variable]
   23 |         int count2;
      |             ^~~~~~
foo.c:22:13: warning: variable ‘b’ set but not used [-Wunused-but-set-variable]
   22 |         int b[n2];
      |             ^
正在同步测试数据,请稍后

信息

递交者
类型
递交
题目
P1418 3 数组类+有序插入
语言
C
递交时间
2024-08-14 22:00:04
评测时间
2024-08-14 22:00:04
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes