QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#97099#3614. Math TradeGuanYunchangCompile Error//C++231.4kb2023-04-16 15:25:442023-04-16 15:25:45

詳細信息

answer.code: In function ‘int main()’:
answer.code:47:29: error: ‘strcmp’ was not declared in this scope
   47 |                         if (strcmp(name[i].b ,name[j].b)==0)
      |                             ^~~~~~
answer.code:3:1: note: ‘strcmp’ is defined in header ‘<cstring>’; did you forget to ‘#include <cstring>’?
    2 | #include<map>
  +++ |+#include <cstring>
    3 | using namespace std;
answer.code:60:29: error: ‘strcmp’ was not declared in this scope
   60 |                         if (strcmp(name[i].c ,name[j].b)==0)
      |                             ^~~~~~
answer.code:60:29: note: ‘strcmp’ is defined in header ‘<cstring>’; did you forget to ‘#include <cstring>’?
answer.code: In function ‘int dfs(int, int)’:
answer.code:33:1: warning: control reaches end of non-void function [-Wreturn-type]
   33 | }
      | ^
answer.code: In function ‘int main()’:
answer.code:37:14: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
   37 |         scanf("%d",&n);
      |         ~~~~~^~~~~~~~~
answer.code:43:22: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
   43 |                 scanf("%s %s %s", name[i].a, name[i].b, name[i].c);
      |                 ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~