Problem card
User joshua2152
Submission Time 2023-04-20 16:45:40
Score 0
Max Time N/A
Max Memory N/A

Compile Error

card.cpp:4:29: error: expected ‘)’ before ‘;’ token
4 | long long check(long long dm;long long cseq;){
| ~ ^
| )
card.cpp:4:45: error: expected unqualified-id before ‘)’ token
4 | long long check(long long dm;long long cseq;){
| ^
card.cpp: In function ‘int main()’:
card.cpp:25:53: error: invalid types ‘<unresolved overloaded function type>[long long int]’ for array subscript
25 | for (long long i = 0; i < m; i++) dm.push_back[i];
| ^
card.cpp:26:35: error: request for member ‘size’ in ‘seq’, which is of non-class type ‘long long int’
26 | for (long long j = 0; j < seq.size() - 1; j++) dseq.push_back(seq[j]);
| ^~~~
card.cpp:26:72: error: invalid types ‘long long int[long long int]’ for array subscrip