QOJ.ac
QOJ
ID | Problem | Submitter | Result | Time | Memory | Language | File size | Submit time | Judge time |
---|---|---|---|---|---|---|---|---|---|
#516638 | #6534. Peg Solitaire | ZhaoZiLong | Compile Error | / | / | C++11 | 1.4kb | 2024-08-12 20:01:49 | 2024-08-12 20:01:49 |
Due to the privacy settings of the submitter, you are not allowed to view this code.
Details
answer.code:12:9: error: use of ‘auto’ in parameter declaration only available with ‘-std=c++14’ or ‘-std=gnu++14’ 12 | bool ch(auto mp,ll x,ll y,ll lx,ll ly) | ^~~~ answer.code: In function ‘bool ch(int, long long int, long long int, long long int, long long int)’: answer.code:20:12: error: invalid types ‘int[long long int]’ for array subscript 20 | if ( mp[x2][y2]==0&&mp[x1][y1]==1) | ^ answer.code:20:27: error: invalid types ‘int[long long int]’ for array subscript 20 | if ( mp[x2][y2]==0&&mp[x1][y1]==1) | ^ answer.code: At global scope: answer.code:29:10: error: use of ‘auto’ in parameter declaration only available with ‘-std=c++14’ or ‘-std=gnu++14’ 29 | void dfs(auto mp,ll k) | ^~~~ answer.code: In function ‘void dfs(int, long long int)’: answer.code:37:31: error: invalid types ‘int[int]’ for array subscript 37 | if (mp[i][j]==0) | ^ answer.code:49:35: error: invalid types ‘int[int]’ for array subscript 49 | mp[i][j]=0; | ^ answer.code:50:35: error: invalid types ‘int[long long int]’ for array subscript 50 | mp[xx][yy]=1; | ^ answer.code:51:35: error: invalid types ‘int[long long int]’ for array subscript 51 | mp[x1][y1]=0; | ^ answer.code:53:35: error: invalid types ‘int[long long int]’ for array subscript 53 | mp[x1][y1]=1; | ^ answer.code:54:35: error: invalid types ‘int[long long int]’ for array subscript 54 | mp[xx][yy]=0; | ^ answer.code:55:35: error: invalid types ‘int[int]’ for array subscript 55 | mp[i][j]=1; | ^ answer.code: In function ‘void solve()’: answer.code:84:13: error: cannot convert ‘std::vector<std::vector<long long int> >’ to ‘int’ 84 | dfs(mp,k); | ^~ | | | std::vector<std::vector<long long int> > answer.code:29:15: note: initializing argument 1 of ‘void dfs(int, long long int)’ 29 | void dfs(auto mp,ll k) | ~~~~~^~ answer.code: In function ‘bool ch(int, long long int, long long int, long long int, long long int)’: answer.code:28:1: warning: control reaches end of non-void function [-Wreturn-type] 28 | } | ^