记录详情

Compile Error

/in/foo.cc:6:12: error: stray '\357' in program
 for(int i=1;i<n; i++)
            ^
/in/foo.cc:6:13: error: stray '\274' in program
 for(int i=1;i<n; i++)
             ^
/in/foo.cc:6:14: error: stray '\233' in program
 for(int i=1;i<n; i++)
              ^
/in/foo.cc:14:19: error: stray '\357' in program
 int i, n, a[10000];cin>>n;
                   ^
/in/foo.cc:14:20: error: stray '\274' in program
 int i, n, a[10000];cin>>n;
                    ^
/in/foo.cc:14:21: error: stray '\233' in program
 int i, n, a[10000];cin>>n;
                     ^
/in/foo.cc:19:26: error: stray '\357' in program
 Output(a, n);Output(b, m);return 0;
                          ^
/in/foo.cc:19:27: error: stray '\274' in program
 Output(a, n);Output(b, m);return 0;
                           ^
/in/foo.cc:19:28: error: stray '\233' in program
 Output(a, n);Output(b, m);return 0;
                            ^
/in/foo.cc:1:1: error: 'include' does not name a type
 include <iostream>
 ^~~~~~~
/in/foo.cc: In function 'void Output(int*, int)':
/in/foo.cc:6:15: error: expected ';' before 'i'
 for(int i=1;i<n; i++)
               ^
/in/foo.cc:8:4: error: 'afi' was not declared in this scope
 if(afi-1]>a[i])cnt++;
    ^~~
/in/foo.cc:8:9: error: expected ')' before ']' token
 if(afi-1]>a[i])cnt++;
         ^
/in/foo.cc:8:9: error: expected primary-expression before ']' token
/in/foo.cc:10:1: error: 'cout' was not declared in this scope
 cout<<cnt<<" ";
 ^~~~
/in/foo.cc: In function 'int main()':
/in/foo.cc:14:22: error: expected initializer before 'cin'
 int i, n, a[10000];cin>>n;
                      ^~~
/in/foo.cc:15:17: error: 'cin' was not declared in this scope
 int m, b[10000];cin>>m;
                 ^~~
/in/foo.cc:16:22: error: 'a' was not declared in this scope
 for(i=0;i<n;i++)cin>>a[i];
                      ^
/in/foo.cc:19:8: error: 'a' was not declared in this scope
 Output(a, n);Output(b, m);return 0;
        ^
/in/foo.cc:19:29: error: expected ';' before 'return'
 Output(a, n);Output(b, m);return 0;
                             ^~~~~~

信息

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