Problem socks
User FIips
Submission Time 2024-03-04 23:52:03
Score 0
Max Time N/A
Max Memory N/A

Compile Error

socks.cpp:18:5: error: expected unqualified-id before ‘else’
18 | else if(dq[dq.size()-1]<k){
| ^~~~
socks.cpp:22:5: error: expected unqualified-id before ‘while’
22 | while(dq[0]<k && dq.empty()==false) {
| ^~~~~
socks.cpp:26:5: error: ‘m’ does not name a type; did you mean ‘tm’?
26 | m = k-1; ans += (n*m)+1;
| ^
| tm
socks.cpp:26:14: error: ‘ans’ does not name a type; did you mean ‘abs’?
26 | m = k-1; ans += (n*m)+1;
| ^~~
| abs
socks.cpp:27:5: error: ‘cout’ does not name a type
27 | cout<<ans;
| ^~~~
socks.cpp:28:1: error: expected declaration before ‘}’ token
28 | }
| ^