Run id: 117181
Main.cc: In function 'int main()':
Main.cc:11:9: warning: 'char* gets(char*)' is deprecated [-Wdeprecated-declarations]
gets(phrase); // 读取整行输入
^
In file included from Main.cc:1:0:
/usr/include/stdio.h:638:14: note: declared here
extern char *gets (char *__s) __wur __attribute_deprecated__;
^
Main.cc:11:9: warning: 'char* gets(char*)' is deprecated [-Wdeprecated-declarations]
gets(phrase); // 读取整行输入
^
In file included from Main.cc:1:0:
/usr/include/stdio.h:638:14: note: declared here
extern char *gets (char *__s) __wur __attribute_deprecated__;
^
Main.cc:11:20: warning: 'char* gets(char*)' is deprecated [-Wdeprecated-declarations]
gets(phrase); // 读取整行输入
^
In file included from Main.cc:1:0:
/usr/include/stdio.h:638:14: note: declared here
extern char *gets (char *__s) __wur __attribute_deprecated__;
^
Main.cc:24:38: error: 'toupper' was not declared in this scope
putchar(toupper(phrase[i]));
^
Main.cc:6:20: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d", &T); // 读取测试数据的组数
^
Main.cc:11:21: warning: ignoring return value of 'char* gets(char*)', declared with attribute warn_unused_result [-Wunused-result]
gets(phrase); // 读取整行输入
^