Mã chấm: 74395
Main.cc: In function ‘int main()’: Main.cc:13:24: warning: format ‘%s’ expects argument of type ‘char*’, but argument 2 has type ‘char (*)[1000]’ [-Wformat=] scanf("%s",&pattern); ~~~~~~~~^ Main.cc:14:23: warning: format ‘%s’ expects argument of type ‘char*’, but argument 2 has type ‘char (*)[1000]’ [-Wformat=] scanf("%s",&result); ~~~~~~~^ Main.cc:17:8: error: expected ‘(’ before ‘length’ if length > strlen(result) correct = false; ^~~~~~ Main.cc:19:22: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for (int i = 0;i