QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#295756#4832. TelepathyNamelessOIerCompile Error//C++143.4kb2023-12-31 21:26:362023-12-31 21:26:37

详细

answer.code:83:6: error: redefinition of ‘void get_plan()’
   83 | void get_plan(){
      |      ^~~~~~~~
answer.code:44:6: note: ‘void get_plan()’ previously defined here
   44 | void get_plan(){
      |      ^~~~~~~~
answer.code: In function ‘int main()’:
answer.code:102:10: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
  102 |     scanf("%s", name);
      |     ~~~~~^~~~~~~~~~~~
answer.code:104:20: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
  104 |     int n, k; scanf("%d%d", &n, &k);
      |               ~~~~~^~~~~~~~~~~~~~~~
answer.code:107:10: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
  107 |     scanf("%s", a);
      |     ~~~~~^~~~~~~~~