Mã chấm: 272053
Main.cc: In function ‘int main()’: Main.cc:11:11: warning: ‘char* gets(char*)’ is deprecated [-Wdeprecated-declarations] gets(m); ^ In file included from /usr/include/stdio.h:862:0, from Main.cc:1: /usr/include/x86_64-linux-gnu/bits/stdio2.h:232:1: note: declared here gets (char *__str) ^~~~ Main.cc:14:11: warning: ‘char* gets(char*)’ is deprecated [-Wdeprecated-declarations] gets(y);{ ^ In file included from /usr/include/stdio.h:862:0, from Main.cc:1: /usr/include/x86_64-linux-gnu/bits/stdio2.h:232:1: note: declared here gets (char *__str) ^~~~ Main.cc:20:28: error: ‘d’ was not declared in this scope }printf("%.2f", cd*d); ^ Main.cc:23:1: error: expected ‘}’ at end of input } ^ Main.cc:10:10: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d", &n); ~~~~~^~~~~~~~~~ Main.cc:11:9: warning: ignoring return value of ‘char* gets(char*)’, declared with attribute warn_unused_result [-Wunused-result] gets(m); ~~~~^~~ Main.cc:12:10: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d", &t); ~~~~~^~~~~~~~~~ Main.cc:14:9: warning: ignoring return value of ‘char* gets(char*)’, declared with attribute warn_unused_result [-Wunused-result] gets(y);{ ~~~~^~~