记录详情

Compile Error

foo.c: In function 'main':
foo.c:32:16: warning: missing terminating " character
   32 |         printf("The index of %d in the array is: %d
      |                ^
foo.c:32:16: error: missing terminating " character
   32 |         printf("The index of %d in the array is: %d
      |                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
foo.c:33:1: warning: missing terminating " character
   33 | ", x, index);
      | ^
foo.c:33:1: error: missing terminating " character
   33 | ", x, index);
      | ^~~~~~~~~~~~~
foo.c:34:5: error: expected expression before '}' token
   34 |     } else {
      |     ^
foo.c:32:16: error: expected ';' before '}' token
   32 |         printf("The index of %d in the array is: %d
      |                ^
      |                ;
   33 | ", x, index);
   34 |     } else {
      |     ~           
foo.c:35:16: warning: missing terminating " character
   35 |         printf("%d not found in the array.
      |                ^
foo.c:35:16: error: missing terminating " character
   35 |         printf("%d not found in the array.
      |                ^~~~~~~~~~~~~~~~~~~~~~~~~~~
foo.c:36:1: warning: missing terminating " character
   36 | ", x);
      | ^
foo.c:36:1: error: missing terminating " character
   36 | ", x);
      | ^~~~~~
foo.c:37:5: error: expected expression before '}' token
   37 |     }
      |     ^
foo.c:35:16: error: expected ';' before '}' token
   35 |         printf("%d not found in the array.
      |                ^
      |                ;
   36 | ", x);
   37 |     }
      |     ~           
[Hydro](https://hydro.ac)提供评测服务

信息

递交者
类型
递交
题目
A7-4 数组的查找函数
比赛
2023 程序设计与基础(单个的数组)
语言
C
递交时间
2023-11-21 15:25:31
评测时间
2023-11-21 15:25:31
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes