| Mã chấm | Tài khoản | Bài tập | Ngôn ngữ lập trình | Trạng thái | Thời gian | Bộ nhớ | Kích thước | Thời gian nộp |
|---|---|---|---|---|---|---|---|---|
| 74395 | Võ Tất Nhật Thiện | String Power | C/C++ | Lỗi biên dịch (CE) | 0 MS | 0 KB | 688 | 2023-05-17 02:28:43 |
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