QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#17423#3007. Intersecting RectanglessdoiCompile Error//C++982.1kb2022-01-06 23:27:202022-05-18 04:03:47

详细

answer.code: In function ‘int main()’:
answer.code:59:21: warning: extended initializer lists only available with ‘-std=c++11’ or ‘-std=gnu++11’
   59 |         S.push_back({x1, x2, y1, 1});
      |                     ^
answer.code:59:20: warning: extended initializer lists only available with ‘-std=c++11’ or ‘-std=gnu++11’
   59 |         S.push_back({x1, x2, y1, 1});
      |         ~~~~~~~~~~~^~~~~~~~~~~~~~~~~
answer.code:60:21: warning: extended initializer lists only available with ‘-std=c++11’ or ‘-std=gnu++11’
   60 |         S.push_back({x1, x2, y2, -1});
      |                     ^
answer.code:60:20: warning: extended initializer lists only available with ‘-std=c++11’ or ‘-std=gnu++11’
   60 |         S.push_back({x1, x2, y2, -1});
      |         ~~~~~~~~~~~^~~~~~~~~~~~~~~~~~
answer.code:72:15: error: ‘s’ does not name a type
   72 |     for (auto s : S) {
      |               ^
answer.code:80:6: error: expected ‘;’ before ‘printf’
   80 |     }
      |      ^
      |      ;
   81 | 
   82 |     printf("%d\n", ans != 0);
      |     ~~~~~~
answer.code:83:1: error: expected primary-expression before ‘}’ token
   83 | }
      | ^
answer.code:82:30: error: expected ‘)’ before ‘}’ token
   82 |     printf("%d\n", ans != 0);
      |                              ^
      |                              )
   83 | }
      | ~                             
answer.code:72:9: note: to match this ‘(’
   72 |     for (auto s : S) {
      |         ^
answer.code:83:1: error: expected primary-expression before ‘}’ token
   83 | }
      | ^
answer.code:56:10: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
   56 |     scanf("%d", &n);
      |     ~~~~~^~~~~~~~~~
answer.code:58:14: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
   58 |         scanf("%d%d%d%d", &x1, &y1, &x2, &y2);
      |         ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~