记录详情

Time Exceeded

/in/foo.c: In function 'main':
/in/foo.c:7:11: warning: self-comparison always evaluates to true [-Wtautological-compare]
  for(n=0;n<=n;n++)
           ^~
/in/foo.c:8:11: warning: format '%d' expects argument of type 'int *', but argument 2 has type 'float *' [-Wformat=]
   scanf("%d ",&a[n]);
           ^
/in/foo.c:10:3: warning: this 'if' clause does not guard... [-Wmisleading-indentation]
  {if(a[n]<a[n+1])
   ^~
/in/foo.c:12:3: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'if'
   a[n]=a[n+1];
   ^
/in/foo.c:5:11: warning: unused variable 'n1' [-Wunused-variable]
  int n,n2,n1,i=1,t,m,max;
           ^~
/in/foo.c:5:8: warning: unused variable 'n2' [-Wunused-variable]
  int n,n2,n1,i=1,t,m,max;
        ^~
# 状态 耗时 内存占用
#1 Time Exceeded ≥1005ms ≥272.0 KiB

信息

递交者
类型
自测
题目
1-4 最大值的个数
语言
C
递交时间
2021-12-07 22:27:02
评测时间
2021-12-07 22:27:02
评测机
分数
0
总耗时
≥1005ms
峰值内存
≥272.0 KiB