记录详情

Compile Error

/in/foo.cc:6:20: error: 'char index [10000][10000]' redeclared as different kind of symbol
 char index[MAX][MAX];
                    ^
In file included from /in/foo.cc:3:0:
/usr/include/string.h:477:1: note: previous declaration 'const char* index(const char*, int)'
 index (const char *__s, int __c) __THROW
 ^~~~~
/in/foo.cc: In function 'int main()':
/in/foo.cc:16:11: error: invalid types '<unresolved overloaded function type>[int]' for array subscript
    index[k][i] = ' ';
           ^
/in/foo.cc:24:11: error: invalid types '<unresolved overloaded function type>[int]' for array subscript
    index[x][y] = str[i];
           ^
/in/foo.cc:28:11: error: invalid types '<unresolved overloaded function type>[int]' for array subscript
    index[x][y] = str[i];
           ^
/in/foo.cc:35:16: error: invalid types '<unresolved overloaded function type>[int]' for array subscript
    if (index[tx][ty] != ' ')
                ^
/in/foo.cc:36:21: error: invalid types '<unresolved overloaded function type>[int]' for array subscript
     cout << index[tx][ty];
                     ^

信息

递交者
类型
自测
题目
xxyw1-4N字变换
语言
C++
递交时间
2019-03-17 11:16:11
评测时间
2019-03-17 11:16:11
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes