记录详情

Compile Error

/in/foo.c: In function 'Unique':
/in/foo.c:7:9: error: unknown type name 'bool'
         bool found_duplicate = false;
         ^~~~
/in/foo.c:7:32: error: 'false' undeclared (first use in this function)
         bool found_duplicate = false;
                                ^~~~~
/in/foo.c:7:32: note: each undeclared identifier is reported only once for each function it appears in
/in/foo.c:8:130: error: 'true' undeclared (first use in this function)
         for (int k = 0; k <= i && !found_duplicate; ++k) {             if (arr[k] == arr[j]) {                 found_duplicate = true;                 break;             }         }
                                                                                                                                  ^~~~
/in/foo.c: In function 'main':
/in/foo.c:16:47: error: 'n1' undeclared (first use in this function)
     int a1[101], a2[101];     scanf("%d %d", &n1, &n2);
                                               ^~
/in/foo.c:16:52: error: 'n2' undeclared (first use in this function)
     int a1[101], a2[101];     scanf("%d %d", &n1, &n2);
                                                    ^~

信息

递交者
类型
自测
语言
C
递交时间
2024-11-05 08:39:03
评测时间
2024-11-05 08:39:03
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes