QOJ.ac
QOJ
ID | Problem | Submitter | Result | Time | Memory | Language | File size | Submit time | Judge time |
---|---|---|---|---|---|---|---|---|---|
#571695 | #1148. Game | iframe | Compile Error | / | / | C++17 | 177b | 2024-09-18 04:01:06 | 2024-09-18 04:01:06 |
Judging History
answer
#include "game.h"
int deg[200005];
void initialize (int n) {
return ;
}
int hasEdge (int x, int y) {
if (x > y) std::swap (x, y);
return ++deg[y] == y;
}
Details
answer.code: In function ‘int hasEdge(int, int)’: answer.code:9:21: error: ‘swap’ is not a member of ‘std’ 9 | if (x > y) std::swap (x, y); | ^~~~