记录详情

Compile Error

/in/foo.cc: In function 'void Output(int*, int)':
/in/foo.cc:5:5: error: declaration of 'int n' shadows a parameter
 int n,i;
     ^
/in/foo.cc:7:12: error: found ':' in nested-name-specifier, expected '::'
 for(i=0;i<n:i++)
            ^
/in/foo.cc:7:11: error: 'n' is not a class, namespace, or enumeration
 for(i=0;i<n:i++)
           ^
/in/foo.cc:7:16: error: expected ';' before ')' token
 for(i=0;i<n:i++)
                ^
/in/foo.cc:10:8: error: return-statement with a value, in function returning 'void' [-fpermissive]
 return 0;
        ^
/in/foo.cc: In function 'void Output(int*, int)':
/in/foo.cc:12:6: error: redefinition of 'void Output(int*, int)'
 void Output(int a[],int n)
      ^~~~~~
/in/foo.cc:3:6: note: 'void Output(int*, int)' previously defined here
 void Output(int a[],int n)
      ^~~~~~

信息

递交者
类型
递交
语言
C++
递交时间
2019-09-27 13:04:04
评测时间
2019-09-27 13:04:04
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes