记录详情

Compile Error

/in/foo.cc:48:2: error: stray '#' in program
 }#include <stdio.h>
  ^
/in/foo.cc: In function 'int main()':
/in/foo.cc:6:18: warning: unused variable 'j' [-Wunused-variable]
     int n, m, i, j;
                  ^
/in/foo.cc: At global scope:
/in/foo.cc:48:3: error: 'include' does not name a type
 }#include <stdio.h>
   ^~~~~~~
/in/foo.cc: In function 'int main()':
/in/foo.cc:51:5: error: redefinition of 'int main()'
 int main()
     ^~~~
/in/foo.cc:4:5: note: 'int main()' previously defined here
 int main()
     ^~~~
/in/foo.cc:53:18: warning: unused variable 'j' [-Wunused-variable]
     int n, m, i, j;
                  ^
/in/foo.cc: In function 'int CountSearch(int*, int, int)':
/in/foo.cc:77:5: error: redefinition of 'int CountSearch(int*, int, int)'
 int CountSearch(int a[], int n, int x)
     ^~~~~~~~~~~
/in/foo.cc:30:5: note: 'int CountSearch(int*, int, int)' previously defined here
 int CountSearch(int a[], int n, int x)
     ^~~~~~~~~~~

信息

递交者
类型
自测
语言
C++
递交时间
2024-12-09 23:29:58
评测时间
2024-12-09 23:29:58
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes