numbers.cpp: In function 'long long int cal(int, int, int, bool)':
numbers.cpp:17:13: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
17 | if (pos == num.size()) return 1;
| ~~~~^~~~~~~~~~~~~
numbers.cpp:30:62: error: expected ':' before ')' token
30 | ans += cal(pos + 1, cur, (cur == 10 && i == 0? 10 ? i), new_f);
| ^
| :
numbers.cpp:30:62: error: expected primary-expression before ')' token
numbers.cpp:30:62: error: expected ':' before ')' token
30 | ans += cal(pos + 1, cur, (cur == 10 && i == 0? 10 ? i), new_f);
| ^
| :
numbers.cpp:30:62: error: expected primary-expression before ')' token