/ Vijos /

记录详情

Compile Error

/in/foo.c: In function 'main':
/in/foo.c:12:17: error: 'n' undeclared (first use in this function)
     scanf("%d",&n);
                 ^
/in/foo.c:12:17: note: each undeclared identifier is reported only once for each function it appears in
/in/foo.c:34:13: error: 'j' undeclared (first use in this function)
         for(j=i+1;j<n;j++)
             ^
/in/foo.c:42:12: error: array subscript is not an integer
         oil[minj][1]=oil[i][1];
            ^
/in/foo.c:57:14: warning: format '%d' expects argument of type 'int', but argument 2 has type 'double' [-Wformat=]
     printf("%d\n",sum);
              ^
/in/foo.c:71:14: warning: format '%d' expects argument of type 'int', but argument 2 has type 'double' [-Wformat=]
     printf("%d\n",sum);
              ^
/in/foo.c:9:12: warning: variable 'minj' set but not used [-Wunused-but-set-variable]
  float min,minj;
            ^~~~
/in/foo.c:7:11: warning: unused variable 'jn' [-Wunused-variable]
     int i,jn;
           ^~

信息

递交者
类型
递交
题目
P1691 输油管道问题
语言
C
递交时间
2020-11-20 09:43:46
评测时间
2020-11-20 09:43:46
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes