QOJ.ac
QOJ
ID | Problem | Submitter | Result | Time | Memory | Language | File size | Submit time | Judge time |
---|---|---|---|---|---|---|---|---|---|
#396369 | #2850. 蛋糕 | ucup-team1383 | Compile Error | / | / | C++17 | 2.5kb | 2024-04-22 17:58:50 | 2024-04-22 17:58:50 |
Due to the privacy settings of the submitter, you are not allowed to view this code.
Details
answer.code: In function ‘void solve()’: answer.code:15:9: error: invalid types ‘long long int[int]’ for array subscript 15 | if(a[4] == 1) | ^ answer.code:24:9: error: invalid types ‘long long int[int]’ for array subscript 24 | if(a[3] == 1) | ^ answer.code:30:18: error: invalid types ‘long long int[int]’ for array subscript 30 | cout << a[4] - 2 << " " << 2 << " " << 0 < "\n"; | ^ answer.code:33:9: error: invalid types ‘long long int[int]’ for array subscript 33 | if(a[2] == 1) | ^ answer.code:39:18: error: invalid types ‘long long int[int]’ for array subscript 39 | r[4] = (a[3] - 2) % mod * (a[4] - 2) % mod ; | ^ answer.code:39:38: error: invalid types ‘long long int[int]’ for array subscript 39 | r[4] = (a[3] - 2) % mod * (a[4] - 2) % mod ; | ^ answer.code:41:18: error: invalid types ‘long long int[int]’ for array subscript 41 | r[5] = (a[4] % mod * a[3] % mod - 4 - r[4] + mod) % mod; | ^ answer.code:41:31: error: invalid types ‘long long int[int]’ for array subscript 41 | r[5] = (a[4] % mod * a[3] % mod - 4 - r[4] + mod) % mod; | ^ answer.code:48:9: error: invalid types ‘long long int[int]’ for array subscript 48 | if(a[1] == 1) | ^ answer.code:55:10: error: invalid types ‘long long int[int]’ for array subscript 55 | a[2] -= 2; | ^ answer.code:56:10: error: invalid types ‘long long int[int]’ for array subscript 56 | a[3] -= 2; | ^ answer.code:57:10: error: invalid types ‘long long int[int]’ for array subscript 57 | a[4] -= 2; | ^ answer.code:58:18: error: invalid types ‘long long int[int]’ for array subscript 58 | r[4] = (a[2] + a[3] + a[4] + mod) % mod; | ^ answer.code:58:25: error: invalid types ‘long long int[int]’ for array subscript 58 | r[4] = (a[2] + a[3] + a[4] + mod) % mod; | ^ answer.code:58:32: error: invalid types ‘long long int[int]’ for array subscript 58 | r[4] = (a[2] + a[3] + a[4] + mod) % mod; | ^ answer.code:59:18: error: invalid types ‘long long int[int]’ for array subscript 59 | r[3] = (a[2] % mod * a[3] % mod + a[2] % mod * a[4] % mod + a[3] % mod * a[4] % mod + mod) % mod; | ^ answer.code:59:32: error: invalid types ‘long long int[int]’ for array subscript 59 | r[3] = (a[2] % mod * a[3] % mod + a[2] % mod * a[4] % mod + a[3] % mod * a[4] % mod + mod) % mod; | ^ answer.code:59:45: error: invalid types ‘long long int[int]’ for array subscript 59 | r[3] = (a[2] % mod * a[3] % mod + a[2] % mod * a[4] % mod + a[3] % mod * a[4] % mod + mod) % mod; | ^ answer.code:59:58: error: invalid types ‘long long int[int]’ for array subscript 59 | r[3] = (a[2] % mod * a[3] % mod + a[2] % mod * a[4] % mod + a[3] % mod * a[4] % mod + mod) % mod; | ^ answer.code:59:71: error: invalid types ‘long long int[int]’ for array subscript 59 | r[3] = (a[2] % mod * a[3] % mod + a[2] % mod * a[4] % mod + a[3] % mod * a[4] % mod + mod) % mod; | ^ answer.code:59:84: error: invalid types ‘long long int[int]’ for array subscript 59 | r[3] = (a[2] % mod * a[3] % mod + a[2] % mod * a[4] % mod + a[3] % mod * a[4] % mod + mod) % mod; | ^ answer.code:60:18: error: invalid types ‘long long int[int]’ for array subscript 60 | r[2] = (a[2] % mod* a[3] % mod * a[4] % mod) % mod; | ^ answer.code:60:31: error: invalid types ‘long long int[int]’ for array subscript 60 | r[2] = (a[2] % mod* a[3] % mod * a[4] % mod) % mod; | ^ answer.code:60:44: error: invalid types ‘long long int[int]’ for array subscript 60 | r[2] = (a[2] % mod* a[3] % mod * a[4] % mod) % mod; | ^ In file included from /usr/include/c++/13/algorithm:61, from /usr/include/x86_64-linux-gnu/c++/13/bits/stdc++.h:51, from answer.code:1: /usr/include/c++/13/bits/stl_algo.h: In instantiation of ‘void std::__insertion_sort(_RandomAccessIterator, _RandomAccessIterator, _Compare) [with _RandomAccessIterator = long long int; _Compare = __gnu_cxx::__ops::_Iter_less_iter]’: /usr/include/c++/13/bits/stl_algo.h:1859:25: required from ‘void std::__final_insertion_sort(_RandomAccessIterator, _RandomAccessIterator,...