QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#388840#3746. 千万别用树套树ucup-team1383Compile Error//C++201.0kb2024-04-13 20:45:022024-04-13 20:45:02

Details

answer.code: In function ‘int main()’:
answer.code:27:17: error: ‘memset’ was not declared in this scope
   27 |                 memset(ll, 0, sizeof ll);
      |                 ^~~~~~
answer.code:2:1: note: ‘memset’ is defined in header ‘<cstring>’; did you forget to ‘#include <cstring>’?
    1 |  #include<iostream>
  +++ |+#include <cstring>
    2 | using namespace std;
answer.code:32:30: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
   32 |                         scanf("%d %d %d", &a, &b, &c);
      |                         ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~