记录详情

Compile Error

/in/foo.cc:4:34: error: declaration of 'c' as array of references
 int Max(int xmin,int xmax,int &c[]);
                                  ^
/in/foo.cc: In function 'int main()':
/in/foo.cc:10:6: warning: unused variable 'n' [-Wunused-variable]
  int n=xmax-xmin+1;
      ^
/in/foo.cc: At global scope:
/in/foo.cc:25:34: error: declaration of 'c' as array of references
 int Max(int xmin,int xmax,int &c[])
                                  ^
/in/foo.cc: In function 'int Max(...)':
/in/foo.cc:27:12: error: 'xmin' was not declared in this scope
  for(int i=xmin; i<=xmax; i++)
            ^~~~
/in/foo.cc:27:21: error: 'xmax' was not declared in this scope
  for(int i=xmin; i<=xmax; i++)
                     ^~~~
/in/foo.cc:34:4: error: 'c' was not declared in this scope
    c[a1]++;
    ^
/in/foo.cc:37:10: error: 'c' was not declared in this scope
  int max=c[0];
          ^

信息

递交者
类型
递交
题目
P1086 3-1 整数中的数字
语言
C++
递交时间
2021-06-06 12:23:02
评测时间
2021-06-06 12:23:02
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes