vault.cpp: In function 'int main()':
vault.cpp:42:30: error: expected ';' before '}' token
42 | else printf("impossible")
| ^
| ;
43 | }
| ~
vault.cpp:11:10: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
11 | scanf(" %d",&M);
| ~~~~~^~~~~~~~~~
vault.cpp:12:10: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
12 | scanf(" %lld",&L);
| ~~~~~^~~~~~~~~~~~
vault.cpp:23:14: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
23 | scanf(" %lld",&lst[i]);
| ~~~~~^~~~~~~~~~~~~~~~~