记录详情

Compile Error

/in/foo.c:2:7: error: stray '\357' in program
 int DM(int a);
       ^
/in/foo.c:2:8: error: stray '\274' in program
 int DM(int a);
        ^
/in/foo.c:2:9: error: stray '\210' in program
 int DM(int a);
         ^
/in/foo.c:2:10: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'int'
 int DM(int a);
          ^~~
/in/foo.c: In function 'DM':
/in/foo.c:11:10: error: 'n' undeclared (first use in this function)
  int max[n];
          ^
/in/foo.c:11:10: note: each undeclared identifier is reported only once for each function it appears in
/in/foo.c:18:6: error: 'j' undeclared (first use in this function)
  for(j=0;j<m;j++)
      ^
/in/foo.c:11:6: warning: unused variable 'max' [-Wunused-variable]
  int max[n];
      ^~~
/in/foo.c: At top level:
/in/foo.c:21:9: error: 'max' undeclared here (not in a function)
 int sum=max[0];
         ^~~
/in/foo.c:22:1: error: expected identifier or '(' before 'for'
 for(i=1;i<m;i++)
 ^~~
/in/foo.c:22:10: error: expected '=', ',', ';', 'asm' or '__attribute__' before '<' token
 for(i=1;i<m;i++)
          ^
/in/foo.c:22:14: error: expected '=', ',', ';', 'asm' or '__attribute__' before '++' token
 for(i=1;i<m;i++)
              ^~
/in/foo.c: In function 'DM':
/in/foo.c:20:2: warning: control reaches end of non-void function [-Wreturn-type]
  if(b[i]>max[j]) max[j]=b[i];}
  ^~

信息

递交者
类型
递交
题目
5-8 留下最大数
语言
C
递交时间
2021-12-14 20:25:04
评测时间
2021-12-14 20:25:04
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes