#include using namespace std; #define rep(i,a,b) for(int i=a;i> B[i]; rep(i, 0, 10) if (B[i] != i + 1) { printf("%d\n", i + 1); return 0; } }