QOJ.ac
QOJ
ID | Problem | Submitter | Result | Time | Memory | Language | File size | Submit time | Judge time |
---|---|---|---|---|---|---|---|---|---|
#17423 | #3007. Intersecting Rectangles | sdoi | Compile Error | / | / | C++98 | 2.1kb | 2022-01-06 23:27:20 | 2022-05-18 04:03:47 |
Due to the privacy settings of the submitter, you are not allowed to view this code.
Details
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); | ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~