Problem cards
User j0ashhh
Submission Time 2026-01-28 16:38:04
Score 0
Max Time N/A
Max Memory N/A

Compile Error

cards.cpp: In function ‘int r(std::vector<int>, int)’:
cards.cpp:13:2: error: ‘curr’ was not declared in this scope
13 | curr = arr[n];
| ^~~~
cards.cpp: In function ‘int main()’:
cards.cpp:26:15: error: no match for call to ‘(std::vector<int>) (int&)’
26 | cin >> arr(n);
| ^