记录详情

Compile Error

/in/foo.c: In function 'main':
/in/foo.c:26:23: error: subscripted value is neither array nor pointer nor vector
         scanf("%d", &a[i]);
                       ^
/in/foo.c:34:23: error: subscripted value is neither array nor pointer nor vector
         scanf("%d", &b[i]);
                       ^
/in/foo.c:38:30: warning: passing argument 1 of 'FindiMinPos' makes pointer from integer without a cast [-Wint-conversion]
     int indexA = FindiMinPos(a, n1);
                              ^
/in/foo.c:5:5: note: expected 'int *' but argument is of type 'int'
 int FindiMinPos(int arr[], int size) {
     ^~~~~~~~~~~
/in/foo.c:46:30: warning: passing argument 1 of 'FindiMinPos' makes pointer from integer without a cast [-Wint-conversion]
     int indexB = FindiMinPos(b, n2);
                              ^
/in/foo.c:5:5: note: expected 'int *' but argument is of type 'int'
 int FindiMinPos(int arr[], int size) {
     ^~~~~~~~~~~

信息

递交者
类型
自测
语言
C
递交时间
2024-11-19 23:11:55
评测时间
2024-11-19 23:11:55
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes