记录详情

Compile Error

/in/foo.cc:33:27: error: stray '\357' in program
 int n, a[1000], m, b[1000];cin>>n>>m;
                           ^
/in/foo.cc:33:28: error: stray '\274' in program
 int n, a[1000], m, b[1000];cin>>n>>m;
                            ^
/in/foo.cc:33:29: error: stray '\233' in program
 int n, a[1000], m, b[1000];cin>>n>>m;
                             ^
/in/foo.cc:34:10: error: stray '\357' in program
 int cnt=0;
          ^
/in/foo.cc:34:11: error: stray '\274' in program
 int cnt=0;
           ^
/in/foo.cc:34:12: error: stray '\233' in program
 int cnt=0;
            ^
/in/foo.cc:3:19: error: 'l' was not declared in this scope
 void Output(int a[l, int n)
                   ^
/in/foo.cc:3:20: error: expected ']' before ',' token
 void Output(int a[l, int n)
                    ^
/in/foo.cc:3:20: error: expected ')' before ',' token
/in/foo.cc:3:22: error: expected unqualified-id before 'int'
 void Output(int a[l, int n)
                      ^~~
/in/foo.cc: In function 'int PrimeCount(int, int)':
/in/foo.cc:24:7: error: 'a' was not declared in this scope
 int x=a[i];
       ^
/in/foo.cc: In function 'int main()':
/in/foo.cc:33:30: error: expected initializer before 'cin'
 int n, a[1000], m, b[1000];cin>>n>>m;
                              ^~~
/in/foo.cc:35:1: error: expected ',' or ';' before 'for'
 for(int i=0;i<n;i++)cin>>a[i];
 ^~~
/in/foo.cc:35:13: error: 'i' was not declared in this scope
 for(int i=0;i<n;i++)cin>>a[i];
             ^
/in/foo.cc:37:26: error: 'b' was not declared in this scope
 for(int i=0;i<m;i++)cin>>b[i];
                          ^
/in/foo.cc:38:8: error: 'b' was not declared in this scope
 Output(b, m);
        ^
/in/foo.cc:39:16: error: invalid conversion from 'int*' to 'int' [-fpermissive]
 PrimeCount(a, n);PrimeCount(b, m);return 0;
                ^
/in/foo.cc:19:5: note:   initializing argument 1 of 'int PrimeCount(int, int)'
 int PrimeCount(int atl, int n)
     ^~~~~~~~~~
/in/foo.cc:34:5: warning: unused variable 'cnt' [-Wunused-variable]
 int cnt=0;
     ^~~

信息

递交者
类型
递交
比赛
泰院2401程序设计基础作业赛第六场
语言
C++
递交时间
2024-11-25 14:09:14
评测时间
2024-11-25 14:09:14
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes