记录详情

Compile Error

/in/foo.cc:5:22: error: ISO C++ forbids declaration of 'Output' with no type [-fpermissive]
 Output(int a[], int n){ 
                      ^
/in/foo.cc: In function 'int Output(int*, int)':
/in/foo.cc:9:1: warning: no return statement in function returning non-void [-Wreturn-type]
 }
 ^
/in/foo.cc: In function 'int main()':
/in/foo.cc:4:11: error: unable to find numeric literal operator 'operator""void'
 #define N 10000void 
           ^
/in/foo.cc:25:7: note: in expansion of macro 'N'
 int a[N],b[N]; 
       ^
/in/foo.cc:4:11: note: use -std=gnu++11 or -fext-numeric-literals to enable more built-in suffixes
 #define N 10000void 
           ^
/in/foo.cc:25:7: note: in expansion of macro 'N'
 int a[N],b[N]; 
       ^
/in/foo.cc:4:11: error: unable to find numeric literal operator 'operator""void'
 #define N 10000void 
           ^
/in/foo.cc:25:12: note: in expansion of macro 'N'
 int a[N],b[N]; 
            ^
/in/foo.cc:4:11: note: use -std=gnu++11 or -fext-numeric-literals to enable more built-in suffixes
 #define N 10000void 
           ^
/in/foo.cc:25:12: note: in expansion of macro 'N'
 int a[N],b[N]; 
            ^
/in/foo.cc:27:6: error: 'a' was not declared in this scope
 cin>>a[i]; 
      ^
/in/foo.cc:29:6: error: 'b' was not declared in this scope
 cin>>b[i]; 
      ^
/in/foo.cc:30:8: error: 'a' was not declared in this scope
 Output(a, n1);  
        ^
/in/foo.cc:31:8: error: 'b' was not declared in this scope
 Output(b, n2); 
        ^

信息

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