QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#493594#5934. Minesweeper MasterZhangYiDeCompile Error//C++173.4kb2024-07-27 10:51:022024-07-27 10:51:03

Details

answer.code: In function ‘int main()’:
answer.code:7:9: error: ‘scanf’ was not declared in this scope
    7 |         scanf("%d", &t);
      |         ^~~~~
answer.code:10:17: error: ‘printf’ was not declared in this scope
   10 |                 printf("Case #%lld:\n", ++cas);
      |                 ^~~~~~
answer.code:1:1: note: ‘printf’ is defined in header ‘<cstdio>’; did you forget to ‘#include <cstdio>’?
  +++ |+#include <cstdio>
    1 | #define ll long long
answer.code:65:37: error: ‘max’ was not declared in this scope
   65 |                                 if (max(i, q) <= max(r, c) && min(i, q) <= min(r, c)) {
      |                                     ^~~
answer.code:65:63: error: ‘min’ was not declared in this scope; did you mean ‘main’?
   65 |                                 if (max(i, q) <= max(r, c) && min(i, q) <= min(r, c)) {
      |                                                               ^~~
      |                                                               main
answer.code:73:33: error: ‘swap’ was not declared in this scope
   73 |             if (r > c && p < q) swap(p, q);
      |                                 ^~~~
answer.code:74:38: error: ‘swap’ was not declared in this scope
   74 |             else if (r < c && p > q) swap(p, q);
      |                                      ^~~~