QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#174953#7125. Bipartite graph coloringMaMengQiCompile Error//C++231.5kb2023-09-10 14:51:472023-09-10 14:51:48

Details

answer.code: In function ‘int main()’:
answer.code:35:5: error: ‘memset’ was not declared in this scope
   35 |     memset(mark, -1, sizeof(mark));
      |     ^~~~~~
answer.code:3:1: note: ‘memset’ is defined in header ‘<cstring>’; did you forget to ‘#include <cstring>’?
    2 | #include <vector>
  +++ |+#include <cstring>
    3 | 
answer.code:61:16: warning: format ‘%lld’ expects argument of type ‘long long int’, but argument 2 has type ‘int64_t’ {aka ‘long int’} [-Wformat=]
   61 |     printf("%lld\n", ans);
      |             ~~~^     ~~~
      |                |     |
      |                |     int64_t {aka long int}
      |                long long int
      |             %ld
answer.code:22:10: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
   22 |     scanf("%d%d", &n, &m);
      |     ~~~~~^~~~~~~~~~~~~~~~
answer.code:25:14: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
   25 |         scanf("%d%d%d%d%d%d", &x, &y, &v00, &v01, &v10, &v11);
      |         ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~