sequence.cpp: In function 'long long int solve(std::vector<int>&, int, bool, bool)':
sequence.cpp:42:23: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
42 | for(int j=0; j*10+i<masks.size(); j++){
| ~~~~~~^~~~~~~~~~~~~
sequence.cpp:51:78: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
51 | ret=min(ret, solve(newMasks, depth+1, fu==0 and reduced, ninezero or fu==9 and newMasks.size()==2)*10+fu);
| ~~~~~~^~~~~~~~~~~~~~~~~~~~~~
sequence.cpp: At global scope:
sequence.cpp:56:2: error: expected initializer before 'for'
56 | for(int i=0; i<1024; i++)
| ^~~
sequence.cpp:56:15: error: 'i' does not name a type
56 | for(int i=0; i<1024; i++)
| ^
sequence.cpp:56:23: error: 'i' does not name a type
56 | for(int i=0; i<1024; i++)
| ^
sequence.cpp:59:7: error: expected constructor, destructor, or type conversion before '(' token
59 | scanf("%d", &k);
| ^
sequence.cpp:61:2: error: expected unqualified-id before 'for'
61 | for(int& i : b)
| ^~~
sequence.cpp:63:8: error: expected constructor, destructor, or type conversion before '(' token
63 | printf("%lld\n", solve(b));
| ^
sequence.cpp:65:1: error: expected declaration before '}' token
65 | }
| ^