Datasets:

problem_id
stringlengths
6
6
buggy_code
stringlengths
8
526k
fixed_code
stringlengths
12
526k
labels
listlengths
0
15
⌀
buggy_submission_id
int64
1
1.54M
fixed_submission_id
int64
2
1.54M
user_id
stringlengths
10
10
language
stringclasses
8 values
p02397
#include <iostream> using namespace std; int main() { cin.tie(0); ios::sync_with_stdio(false); unsigned int a, b; while (cin >> a >> b && a > 0 && b > 0) if (a < b) cout << a << " " << b << "\n"; else cout << b << " " << a << "\n"; }
#include <iostream> using namespace std; int main() { cin.tie(0); ios::sync_with_stdio(false); int a, b; while (cin >> a >> b && (a > 0 || b > 0)) if (a < b) cout << a << " " << b << "\n"; else cout << b << " " << a << "\n"; }
[ "variable_declaration.type.narrow.change", "control_flow.loop.condition.change", "misc.opposites" ]
177,357
177,356
u557138543
cpp
p02397
#include <stdio.h> int main(void) { int x, y, i; for (i = 1; i <= 3000; i++) { scanf("%d, %d", &x, &y); if (x == 0 && y == 0) { break; } if (x > y) { printf("%d %d\n", y, x); } else if (x <= y) { printf("%d %d\n", x, y); } } return 0; }
#include <stdio.h> int main(void) { int x, y, i; for (i = 1; i <= 3000; i++) { scanf("%d %d", &x, &y); if (x == 0 && y == 0) { break; } if (x > y) { printf("%d %d\n", y, x); } else if (x <= y) { printf("%d %d\n", x, y); } } return 0; }
[ "literal.string.change", "call.arguments.change" ]
177,358
177,359
u491609942
cpp
p02397
#include <stdio.h> int main() { int a, b, f, n; int x[3000] = {0}; int y[3000] = {0}; n = 0; while (1) { scanf("%d &d", &a, &b); if (a == 0 && b == 0) { break; } x[n] = a; y[n] = b; n++; } for (f = 0; f < n; f++) { if (x[f] >= y[f]) { printf("%d %d\n", x[f], y[f]);...
#include <stdio.h> int main() { int a, b, f, n; int x[3000] = {0}; int y[3000] = {0}; n = 0; while (1) { scanf("%d %d", &a, &b); if (a == 0 && b == 0) { break; } x[n] = a; y[n] = b; n++; } for (f = 0; f < n; f++) { if (x[f] >= y[f]) { printf("%d %d\n", y[f], x[f]);...
[ "literal.string.change", "call.arguments.change", "identifier.change", "io.output.change" ]
177,361
177,362
u483936476
cpp
p02397
#include <iostream> using std::cin; using std::cout; using std::endl; int main(void) { int x; int y; int swap; cin >> x >> y; while (x != 0 && y != 0) { if (x > y) { swap = y; y = x; x = swap; } cout << x << " " << y << endl; cin >> x >> y; } return 0; }
#include <iostream> using std::cin; using std::cout; using std::endl; int main(void) { int x; int y; int swap; cin >> x >> y; while (x != 0 || y != 0) { if (x > y) { swap = y; y = x; x = swap; } cout << x << " " << y << endl; cin >> x >> y; } return 0; }
[ "misc.opposites", "control_flow.loop.condition.change" ]
177,366
177,367
u910664394
cpp
p02397
#include <iostream> #include <utility> using namespace std; //---- Swapping Two Numbers int main() { int a, b; while (1) { cin >> a >> b; if (a == 0 && b == 0) break; swap(a, b); cout << a << " " << b << endl; } return 0; }
#include <iostream> #include <utility> using namespace std; //---- Swapping Two Numbers int main() { int a, b; while (1) { cin >> a >> b; if (a == 0 && b == 0) break; if (a > b) swap(a, b); cout << a << " " << b << endl; } return 0; }
[ "control_flow.branch.if.add" ]
177,369
177,370
u653467551
cpp
p02397
#include <iostream> #include <utility> using namespace std; //---- Swapping Two Numbers int main() { int a, b; while (1) { cin >> a >> b; if (a == 0 && b == 0) break; swap(a, b); cout << a << " " << b << endl; } return 0; }
#include <iostream> #include <utility> using namespace std; //---- Swapping Two Numbers int main() { int a, b; while (1) { cin >> a >> b; if (a == 0 && b == 0) break; if (a > b) swap(a, b); cout << a << " " << b << endl; } return 0; }
[ "control_flow.branch.if.add" ]
177,371
177,370
u653467551
cpp
p02397
#include <bits/stdc++.h> #define rep(i, n) for (int i = 0; i < n; i++) using namespace std; int main() { int x, y; while (cin >> x >> y) { cout << min(x, y) << ' ' << max(x, y) << endl; } }
#include <bits/stdc++.h> #define rep(i, n) for (int i = 0; i < n; i++) using namespace std; int main() { int x, y; while (cin >> x >> y, x || y) { cout << min(x, y) << ' ' << max(x, y) << endl; } }
[ "control_flow.loop.condition.change" ]
177,372
177,373
u220324665
cpp
p02397
#include <bits/stdc++.h> #define rep(i, n) for (int i = 0; i < n; i++) using namespace std; int main() { int x, y; while (cin >> x >> y, x) { cout << min(x, y) << ' ' << max(x, y) << endl; } }
#include <bits/stdc++.h> #define rep(i, n) for (int i = 0; i < n; i++) using namespace std; int main() { int x, y; while (cin >> x >> y, x || y) { cout << min(x, y) << ' ' << max(x, y) << endl; } }
[ "control_flow.loop.condition.change" ]
177,374
177,373
u220324665
cpp
p02397
#include <algorithm> #include <iostream> using namespace std; int main() { int a[2]; while (cin >> a[0] >> a[1]) { if (a[0] == 0 && a[1] == 0) { break; } sort(a, a + 2); cout << a[0] << " " << a[2] << endl; } return 0; }
#include <algorithm> #include <iostream> using namespace std; int main() { int a[2]; while (cin >> a[0] >> a[1]) { if (a[0] == 0 && a[1] == 0) { break; } sort(a, a + 2); cout << a[0] << " " << a[1] << endl; } return 0; }
[ "literal.number.change", "variable_access.subscript.index.change", "io.output.change" ]
177,375
177,376
u928678704
cpp
p02397
#include <iostream> int main(int argc, char **argv) { int x = 0; int y = 0; while (std::cin >> x >> y, (x != 0 && y != 0)) { x <= y ? std::cout << x << " " << y : std::cout << y << " " << x; std::cout << std::endl; } return 0; }
#include <iostream> int main(int argc, char **argv) { int x = 0; int y = 0; while (std::cin >> x >> y, (x != 0 || y != 0)) { x <= y ? std::cout << x << " " << y : std::cout << y << " " << x; std::cout << std::endl; } return 0; }
[ "misc.opposites", "control_flow.loop.condition.change" ]
177,377
177,378
u148628801
cpp
p02397
#include <iostream> using namespace std; int main() { int i, x, y; i = 1; while (1) { cin >> x >> y; if (x == 0 && y == 0) break; if (x < y) { cout << x << " " << y << "\n"; } if (x > y) { cout << y << " " << x << "\n"; } i++; } return 0; }
#include <iostream> using namespace std; int main() { int i, x, y; i = 1; while (1) { cin >> x >> y; if (x == 0 && y == 0) break; if (x <= y) { cout << x << " " << y << "\n"; } if (x > y) { cout << y << " " << x << "\n"; } i++; } return 0; }
[ "expression.operator.compare.change", "control_flow.branch.if.condition.change" ]
177,379
177,380
u387842620
cpp
p02397
#include <iostream> using namespace std; int main() { int i, x, y; i = 1; while (1) { cin >> x >> y; if (x == 0 && y == 0) break; if (x < y) { cout << x << " " << y << "\n"; } if (x > y) { cout << y << " " << x << "\n"; } i++; } return 0; }
#include <iostream> using namespace std; int main() { int i, x, y; i = 1; while (1) { cin >> x >> y; if (x == 0 && y == 0) break; if (x <= y) { cout << x << " " << y << "\n"; } if (x > y) { cout << y << " " << x << "\n"; } i++; } return 0; }
[ "expression.operator.compare.change", "control_flow.branch.if.condition.change", "literal.string.change", "io.output.change" ]
177,381
177,380
u387842620
cpp
p02397
#include <iostream> using namespace std; int main() { int x, y; while (cin >> x >> y && (x || y)) { if (x > y) swap(x, y); cout << x << " " << y; } }
#include <iostream> using namespace std; int main() { int x, y; while (cin >> x >> y && (x || y)) { if (x > y) swap(x, y); cout << x << " " << y << endl; } }
[ "io.output.newline.add" ]
177,384
177,385
u940492895
cpp
p02397
#include <iostream> using namespace std; int main() { int a, b; cin >> a >> b; while (a != 0 || b != 0) { swap(a, b); cout << a << " " << b << endl; cin >> a >> b; } return 0; }
#include <iostream> using namespace std; int main() { int a, b; cin >> a >> b; while (a != 0 || b != 0) { if (a > b) swap(a, b); cout << a << " " << b << endl; cin >> a >> b; } return 0; }
[ "control_flow.branch.if.add" ]
177,386
177,387
u387614087
cpp
p02397
#include <iostream> using namespace std; int main() { int a, b; while (cin >> a >> b, a != 0 && b != 0) { cout << (a > b ? a : b) << " " << (a > b ? b : a) << endl; } return 0; }
#include <iostream> using namespace std; int main() { int a, b; while (cin >> a >> b, a != 0 || b != 0) { cout << (a < b ? a : b) << " " << (a < b ? b : a) << endl; } return 0; }
[ "misc.opposites", "control_flow.loop.condition.change", "expression.operator.compare.change" ]
177,388
177,389
u018567183
cpp
p02397
#include <iostream> using namespace std; int main() { int a, b; while (cin >> a >> b, a != 0 && b != 0) { cout << (a < b ? a : b) << " " << (a < b ? b : a) << endl; } return 0; }
#include <iostream> using namespace std; int main() { int a, b; while (cin >> a >> b, a != 0 || b != 0) { cout << (a < b ? a : b) << " " << (a < b ? b : a) << endl; } return 0; }
[ "misc.opposites", "control_flow.loop.condition.change" ]
177,390
177,389
u018567183
cpp
p02397
#include <iostream> using namespace std; int main() { int a, b; while (cin >> a >> b, a != 0 && b != 0) { cout << ((a < b) ? a : b) << " " << ((a < b) ? b : a) << endl; } return 0; }
#include <iostream> using namespace std; int main() { int a, b; while (cin >> a >> b, a != 0 || b != 0) { cout << (a < b ? a : b) << " " << (a < b ? b : a) << endl; } return 0; }
[ "misc.opposites", "control_flow.loop.condition.change" ]
177,392
177,389
u018567183
cpp
p02397
#include <algorithm> #include <cmath> #include <functional> #include <iostream> #include <queue> #include <string> #include <vector> using namespace std; int main() { int x, y; while (cin >> x >> y && x != 0 && y != 0) { if (x > y) swap(x, y); cout << x << " " << y << endl; } }
#include <algorithm> #include <cmath> #include <functional> #include <iostream> #include <queue> #include <string> #include <vector> using namespace std; int main() { int x, y; while (cin >> x >> y && (x != 0 || y != 0)) { if (x > y) swap(x, y); cout << x << " " << y << endl; } }
[ "control_flow.loop.condition.change", "misc.opposites" ]
177,394
177,395
u602903519
cpp
p02397
#include <algorithm> #include <iostream> using namespace std; int main() { int n, m; while (cin >> n >> m, n != 0 && m != 0) cout << min(n, m) << ' ' << max(n, m) << endl; return 0; }
#include <algorithm> #include <iostream> using namespace std; int main() { int n, m; while (cin >> n >> m, n != 0 || m != 0) cout << min(n, m) << ' ' << max(n, m) << endl; return 0; }
[ "misc.opposites", "control_flow.loop.condition.change" ]
177,398
177,399
u669006075
cpp
p02397
#include <iostream> using namespace std; int main() { int x, y, z; while (1) { cin >> x >> y; if (x == 0 && y == 0) break; if (y > x) { z = x; x = y; y = z; } cout << x << " " << y << endl; } return 0; }
#include <iostream> using namespace std; int main() { int x, y, z; while (1) { cin >> x >> y; if (x == 0 && y == 0) break; if (y > x) { z = x; x = y; y = z; } cout << y << " " << x << endl; } return 0; }
[ "identifier.change", "io.output.change" ]
177,402
177,401
u927873196
cpp
p02397
#include <iostream> using namespace std; int main() { int a, b; while (cin >> a >> b, a && b) { cout << (a > b ? b : a) << " " << (a > b ? a : b) << endl; } }
#include <iostream> using namespace std; int main() { int a, b; while (cin >> a >> b, a || b) { cout << (a > b ? b : a) << " " << (a > b ? a : b) << endl; } }
[ "misc.opposites", "control_flow.loop.condition.change" ]
177,405
177,406
u505573834
cpp
p02397
#include <iostream> using namespace std; int main() { int x, y, tmp; while (true) { cin >> x >> y; if (x == 0 && y == 0) break; if (x > y) cout << x << " " << y << endl; else cout << x << " " << y << endl; } }
#include <iostream> using namespace std; int main() { int x, y, tmp; while (true) { cin >> x >> y; if (x == 0 && y == 0) break; if (x > y) cout << y << " " << x << endl; else cout << x << " " << y << endl; } }
[ "identifier.change", "io.output.change" ]
177,408
177,409
u720292417
cpp
p02397
#include <iostream> using namespace std; int main() { int x, y; while (cin >> x >> y, x, y) { if (x > y) swap(x, y); cout << x << ' ' << y << endl; } }
#include <iostream> using namespace std; int main() { int x, y; while (cin >> x >> y && (x || y)) { if (x > y) swap(x, y); cout << x << ' ' << y << endl; } }
[ "control_flow.loop.condition.change" ]
177,410
177,411
u577885507
cpp
p02397
#include <algorithm> #include <iostream> int main() { int x, y; while (std::cin >> x >> y && x != 0 && y != 0) { if (x > y) { std::swap(x, y); } std::cout << x << " " << y << std::endl; } return 0; }
#include <algorithm> #include <iostream> int main() { int x, y; while (std::cin >> x >> y && (x != 0 || y != 0)) { if (x > y) { std::swap(x, y); } std::cout << x << " " << y << std::endl; } return 0; }
[ "control_flow.loop.condition.change", "misc.opposites" ]
177,412
177,413
u490319842
cpp
p02397
#include <algorithm> #include <iostream> using namespace std; int main() { int x, y; while (cin >> x >> y, x != 0 && y != 0) { if (x > y) swap(x, y); cout << x << " " << y << endl; } return 0; }
#include <algorithm> #include <iostream> using namespace std; int main() { int x, y; while (cin >> x >> y, x != 0 || y != 0) { if (x > y) swap(x, y); cout << x << " " << y << endl; } return 0; }
[ "misc.opposites", "control_flow.loop.condition.change" ]
177,414
177,415
u141917820
cpp
p02397
#include <stdio.h> int main(void) { int a[10001], b[10001], i, j, box; i = 0; scanf("%d %d", &a[i], &b[i]); while (a[i] != 0 && b[i] != 0) { if (a[i] > b[i]) { box = b[i]; b[i] = a[i]; a[i] = box; } i++; scanf("%d %d", &a[i], &b[i]); } for (j = 0; j < i; j++) printf("%d...
#include <stdio.h> int main(void) { int a[10000], b[10000], i, j, box; i = 0; scanf("%d %d", &a[i], &b[i]); while (a[i] != 0 || b[i] != 0) { if (a[i] > b[i]) { box = b[i]; b[i] = a[i]; a[i] = box; } i++; scanf("%d %d", &a[i], &b[i]); } for (j = 0; j < i; j++) printf("%d...
[ "literal.number.change", "variable_declaration.array_dimensions.change", "misc.opposites", "control_flow.loop.condition.change" ]
177,416
177,417
u970929051
cpp
p02397
#include <stdio.h> int main(void) { int a[3000], b[3000], i, j, box; i = 0; scanf("%d %d", &a[i], &b[i]); while (a[i] != 0 && b[i] != 0) { if (a[i] > b[i]) { box = b[i]; b[i] = a[i]; a[i] = box; } i++; scanf("%d %d", &a[i], &b[i]); } for (j = 0; j < i; j++) printf("%d %...
#include <stdio.h> int main(void) { int a[10000], b[10000], i, j, box; i = 0; scanf("%d %d", &a[i], &b[i]); while (a[i] != 0 || b[i] != 0) { if (a[i] > b[i]) { box = b[i]; b[i] = a[i]; a[i] = box; } i++; scanf("%d %d", &a[i], &b[i]); } for (j = 0; j < i; j++) printf("%d...
[ "literal.number.change", "variable_declaration.array_dimensions.change", "misc.opposites", "control_flow.loop.condition.change" ]
177,418
177,417
u970929051
cpp
p02397
/* ????????°??§???????????¨???????????? */ #include <algorithm> #include <ctype.h> #include <iostream> #include <iterator> #include <limits.h> #include <math.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include <string> #include <time.h> #include <vector> #define LLU unsigned long long int #defin...
/* ????????°??§???????????¨???????????? */ #include <algorithm> #include <ctype.h> #include <iostream> #include <iterator> #include <limits.h> #include <math.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include <string> #include <time.h> #include <vector> #define LLU unsigned long long int #defin...
[ "control_flow.branch.if.add" ]
177,419
177,420
u993397917
cpp
p02397
#include <algorithm> #include <iostream> using namespace std; int main() { int a, b; while (true) { cin >> a >> b; if (a == 0 && b == 0) { return 0; } cout << max(a, b) << " " << min(a, b) << endl; } return 0; }
#include <algorithm> #include <iostream> using namespace std; int main() { int a, b; while (true) { cin >> a >> b; if (a == 0 && b == 0) { return 0; } cout << min(a, b) << " " << max(a, b) << endl; } return 0; }
[ "misc.opposites", "identifier.change", "call.function.change", "io.output.change" ]
177,421
177,422
u220303428
cpp
p02397
#include <iostream> using namespace std; int main() { long int a[10000], b[10000], i = 1; while (1) { cin >> a[i] >> b[i]; if (a[i] == 0 && b[i] == 0) { break; } if (a[i] - b[i] >= 0) { cout << a[i] << " " << b[i] << endl; } else { cout << b[i] << " " << a[i] << endl; } ...
#include <iostream> using namespace std; int main() { long int a[10000], b[10000], i = 1; while (1) { cin >> a[i] >> b[i]; if (a[i] == 0 && b[i] == 0) { break; } if (a[i] - b[i] >= 0) { cout << b[i] << " " << a[i] << endl; } else { cout << a[i] << " " << b[i] << endl; } ...
[ "control_flow.branch.else.add" ]
177,423
177,424
u568234396
cpp
p02397
#include <iostream> int main() { int x, y; while (std::cin >> x >> y) { if (x - y == 0) break; if (x < y) std::cout << x << " " << y << std::endl; else std::cout << y << " " << x << std::endl; } }
#include <iostream> int main() { int x, y; while (std::cin >> x >> y) { if ((x | y) == 0) break; if (x < y) std::cout << x << " " << y << std::endl; else std::cout << y << " " << x << std::endl; } }
[ "control_flow.branch.if.condition.change" ]
177,432
177,433
u206866105
cpp
p02397
#include <algorithm> #include <iostream> using namespace std; int main() { int x, y; while (cin >> x >> y, x > 0 || y > 0) { cout << min(x, y) << max(x, y) << endl; } return 0; }
#include <algorithm> #include <iostream> using namespace std; int main() { int x, y; while (cin >> x >> y, x > 0 || y > 0) { cout << min(x, y) << " " << max(x, y) << endl; } return 0; }
[ "io.output.change" ]
177,434
177,435
u023497314
cpp
p02397
#include <iostream> using namespace std; int main() { int x, y; while (1) { cin >> x; cin >> y; if (x == 0) { break; } else if (x > y) { cout << x << " " << y << endl; } else { cout << y << " " << x << endl; } } }
#include <iostream> using namespace std; int main() { int x, y; while (1) { cin >> x; cin >> y; if (x == 0 && y == 0) { break; } else if (x < y) { cout << x << " " << y << endl; } else { cout << y << " " << x << endl; } } }
[ "control_flow.branch.if.condition.change", "misc.opposites", "expression.operator.compare.change" ]
177,436
177,437
u358227178
cpp
p02397
#include <iostream> using namespace std; int main() { int x, y; while (1) { cin >> x; cin >> y; if (x == 0) { break; } else if (x < y) { cout << x << " " << y << endl; } else { cout << y << " " << x << endl; } } }
#include <iostream> using namespace std; int main() { int x, y; while (1) { cin >> x; cin >> y; if (x == 0 && y == 0) { break; } else if (x < y) { cout << x << " " << y << endl; } else { cout << y << " " << x << endl; } } }
[ "control_flow.branch.if.condition.change" ]
177,438
177,437
u358227178
cpp
p02397
#include <iostream> using namespace std; int main() { int x, y; while (1) { cin >> x >> y; if (x == 0 && y == 0) { break; } if (x < y) { cout << x << " " << y << endl; } else if (y < x) { cout << y << " " << x << endl; } } return 0; }
#include <iostream> using namespace std; int main() { int x, y; while (1) { cin >> x >> y; if (x == 0 && y == 0) { break; } else if (x <= y) { cout << x << " " << y << endl; } else if (y < x) { cout << y << " " << x << endl; } } return 0; }
[ "control_flow.branch.else_if.replace.add", "control_flow.branch.if.replace.remove", "expression.operator.compare.change", "control_flow.branch.if.condition.change" ]
177,439
177,440
u445421877
cpp
p02397
#include <iostream> using namespace std; int main() { int x, y; while (1) { cin >> x >> y; if (x == 0 && y == 0) { break; } else if (x < y) { cout << y << " " << x << endl; } else if (y < x) { cout << x << " " << y << endl; } } return 0; }
#include <iostream> using namespace std; int main() { int x, y; while (1) { cin >> x >> y; if (x == 0 && y == 0) { break; } else if (x <= y) { cout << x << " " << y << endl; } else if (y < x) { cout << y << " " << x << endl; } } return 0; }
[ "expression.operator.compare.change", "control_flow.branch.if.condition.change", "expression.operation.binary.remove", "control_flow.branch.if.add" ]
177,441
177,440
u445421877
cpp
p02397
#include <iostream> using namespace std; int main() { int x, y; while (1) { cin >> x >> y; if (x == 0 && y == 0) { break; } else if (x <= y) { cout << y << " " << x << endl; } else if (y < x) { cout << x << " " << y << endl; } } return 0; }
#include <iostream> using namespace std; int main() { int x, y; while (1) { cin >> x >> y; if (x == 0 && y == 0) { break; } else if (x <= y) { cout << x << " " << y << endl; } else if (y < x) { cout << y << " " << x << endl; } } return 0; }
[ "identifier.change", "io.output.change" ]
177,443
177,440
u445421877
cpp
p02397
#include <bits/stdc++.h> using namespace std; int main() { int x, y; while (true) { cin >> x >> y; if (x == 0 && y == 0) { break; } if (x > y) { cout << y << " " << x << endl; } else if (x < y) { cout << x << " " << y << endl; } else { cout << x << " " << y << endl;...
#include <bits/stdc++.h> using namespace std; int main() { int x, y; while (true) { cin >> x >> y; if (x == 0 && y == 0) { break; } if (x > y) { cout << y << " " << x << endl; } else if (x < y) { cout << x << " " << y << endl; } else { cout << x << " " << y << endl;...
[]
177,444
177,445
u261757804
cpp
p02397
#include <iostream> using namespace std; int main() { int a[10000] = {0}; int b[10000] = {0}; for (int i = 0; i < 10000; i++) { cin >> a[i] >> b[i]; if (a[i] == b[i] && b[i] == 0) { break; } } for (int i = 0; i < 10000; i++) { if (a[i] == b[i] && b[i] == 0) { break; }...
#include <iostream> using namespace std; int main() { int a[10000] = {0}; int b[10000] = {0}; for (int i = 0; i < 10000; i++) { cin >> a[i] >> b[i]; if (a[i] == b[i] && b[i] == 0) { break; } } for (int i = 0; i < 10000; i++) { if (a[i] == b[i] && b[i] == 0) { break; }...
[ "misc.opposites", "expression.operator.compare.change", "control_flow.branch.if.condition.change" ]
177,448
177,449
u452636237
cpp
p02397
#include <iostream> using namespace std; int main() { int x = 1, y = 1; while (x != 0 && y != 0) { int a, b; cin >> x >> y; if (x != 0 && y != 0) { if (x < y) { a = x, b = y; } else if (x >= y) { a = y, b = x; } } cout << a << " " << b << endl; } return 0; ...
#include <iostream> using namespace std; int main() { int x = 1, y = 1; while (x != 0 || y != 0) { int a, b; cin >> x >> y; if (x != 0 || y != 0) { if (x < y) { a = x, b = y; } else if (x >= y) { a = y, b = x; } cout << a << " " << b << endl; } } return 0...
[ "misc.opposites", "control_flow.loop.condition.change", "control_flow.branch.if.condition.change" ]
177,452
177,453
u593264259
cpp
p02397
#include <iostream> using namespace std; int main() { int x = 1, y = 1; while (x != 0 && y != 0) { int a, b; cin >> x >> y; if (x != 0 && y != 0) { if (x < y) { a = x, b = y; } else if (x >= y) { a = y, b = x; } cout << a << " " << b << endl; } } return 0...
#include <iostream> using namespace std; int main() { int x = 1, y = 1; while (x != 0 || y != 0) { int a, b; cin >> x >> y; if (x != 0 || y != 0) { if (x < y) { a = x, b = y; } else if (x >= y) { a = y, b = x; } cout << a << " " << b << endl; } } return 0...
[ "misc.opposites", "control_flow.loop.condition.change", "control_flow.branch.if.condition.change" ]
177,454
177,453
u593264259
cpp
p02397
#include <iostream> using namespace std; int main() { long int x = 1, y = 1; while (x != 0 && y != 0) { int a, b; cin >> x >> y; if (x != 0 && y != 0) { if (x < y) { a = x, b = y; } else if (x >= y) { a = y, b = x; } cout << a << " " << b << endl; } } ret...
#include <iostream> using namespace std; int main() { int x = 1, y = 1; while (x != 0 || y != 0) { int a, b; cin >> x >> y; if (x != 0 || y != 0) { if (x < y) { a = x, b = y; } else if (x >= y) { a = y, b = x; } cout << a << " " << b << endl; } } return 0...
[ "variable_declaration.type.narrow.change", "misc.opposites", "control_flow.loop.condition.change", "control_flow.branch.if.condition.change" ]
177,457
177,453
u593264259
cpp
p02397
#include <iostream> using namespace std; int main() { int x[10010]; int y[10010]; int i = 0, i2, i3 = 0; while (i < 10010) { cin >> x[i]; cin >> y[i]; if (x[i] == 0 && y[i] == 0) { i2 = i; break; } i++; } while (i3 <= i2) { if (x[i3] < y[i3]) { cout << x[i3] << " "...
#include <iostream> using namespace std; int main() { int x[10010]; int y[10010]; int i = 0, i2 = 0, i3 = 0; while (i < 10010) { cin >> x[i]; cin >> y[i]; if (x[i] == 0 && y[i] == 0) { i2 = i - 1; break; } i++; } while (i3 <= i2) { if (x[i3] < y[i3]) { cout << x[i3...
[ "variable_declaration.value.change", "assignment.change", "expression.operator.compare.change", "control_flow.branch.if.condition.change" ]
177,459
177,460
u330034033
cpp
p02397
#include <iostream> using namespace std; int main() { int x[10010]; int y[10010]; int i = 0, i2, i3 = 0; while (i < 10010) { cin >> x[i]; cin >> y[i]; if (x[i] == 0 && y[i] == 0) { i2 = i - 1; break; } i++; } while (i3 <= i2) { if (x[i3] < y[i3]) { cout << x[i3] <<...
#include <iostream> using namespace std; int main() { int x[10010]; int y[10010]; int i = 0, i2 = 0, i3 = 0; while (i < 10010) { cin >> x[i]; cin >> y[i]; if (x[i] == 0 && y[i] == 0) { i2 = i - 1; break; } i++; } while (i3 <= i2) { if (x[i3] < y[i3]) { cout << x[i3...
[ "variable_declaration.value.change", "expression.operator.compare.change", "control_flow.branch.if.condition.change" ]
177,461
177,460
u330034033
cpp
p02397
#include <iostream> using namespace std; int main() { int x[3000], y[3000]; for (int i = 0; i < 3000; i++) { cin >> x[i] >> y[i]; if (x[i] == 0 && y[i] == 0) { break; } } for (int i = 0; i < 3000; i++) { if (x[i] == 0 && y[i] == 0) { break; } if (x[i] >= y[i]) { cout <...
#include <iostream> using namespace std; int main() { int x[3000], y[3000]; for (int i = 0; i < 3000; i++) { cin >> x[i] >> y[i]; if (x[i] == 0 && y[i] == 0) { break; } } for (int i = 0; i < 3000; i++) { if (x[i] == 0 && y[i] == 0) { break; } if (x[i] <= y[i]) { cout <...
[ "misc.opposites", "expression.operator.compare.change", "control_flow.branch.if.condition.change" ]
177,463
177,464
u434581790
cpp
p02397
#include <stdio.h> int main() { int x, y, i; for (i = 0; i < 10000; i++) { scanf("%d %d", x, y); if (x == 0 && y == 0) break; if (x > y) printf("%d %d", y, x); else printf("%d %d", x, y); } return 0; }
#include <stdio.h> int main() { int x, y, i; for (i = 0; i < 10000; i++) { scanf("%d %d", &x, &y); if (x == 0 && y == 0) break; if (x > y) printf("%d %d\n", y, x); else printf("%d %d\n", x, y); } return 0; }
[ "expression.operation.unary.reference.add", "literal.string.change", "call.arguments.change", "io.output.change", "io.output.newline.add" ]
177,465
177,466
u205248875
cpp
p02397
#include <bits/stdc++.h> using namespace std; int main() { int a, b; while (cin >> a >> b, a | b) { if (a < b) { swap(a, b); } cout << a << " " << b << endl; } return 0; }
#include <bits/stdc++.h> using namespace std; int main() { int a, b; while (cin >> a >> b, a | b) { if (a > b) { swap(a, b); } cout << a << " " << b << endl; } return 0; }
[ "misc.opposites", "expression.operator.compare.change", "control_flow.branch.if.condition.change" ]
177,469
177,470
u954682566
cpp
p02397
#include <iostream> using namespace std; int main() { int a, x, y; while (1) { cin >> x >> y; if (x == 0 && y == 0) break; if (x > y) { a = x; x = y; y = a; } cout << x << y << endl; } return 0; }
#include <iostream> using namespace std; int main() { int a, x, y; while (1) { cin >> x >> y; if (x == 0 && y == 0) break; if (x > y) { a = x; x = y; y = a; } cout << x << " " << y << endl; } return 0; }
[ "io.output.change" ]
177,471
177,472
u418153188
cpp
p02397
#include <iostream> int main(int argc, char const *argv[]) { int x, y; int tmp; while (1) { std::cin >> x >> y; if (x == y == 0) { break; } if (x > y) { tmp = x; x = y; y = tmp; } std::cout << x << " " << y << '\n'; } return 0; }
#include <iostream> int main(int argc, char const *argv[]) { int x, y; int tmp; while (1) { std::cin >> x >> y; if (x == 0 && y == 0) { break; } if (x > y) { tmp = x; x = y; y = tmp; } std::cout << x << " " << y << '\n'; } return 0; }
[ "control_flow.branch.if.condition.change" ]
177,473
177,474
u174505525
cpp
p02397
#include <iostream> int main(int argc, char const *argv[]) { int x, y; int tmp; while (1) { std::cin >> x >> y; if (x == y == 0) { break; } if (x > y) { tmp = x; x = y; y = tmp; } std::cout << x << "???" << y << '\n'; } return 0; }
#include <iostream> int main(int argc, char const *argv[]) { int x, y; int tmp; while (1) { std::cin >> x >> y; if (x == 0 && y == 0) { break; } if (x > y) { tmp = x; x = y; y = tmp; } std::cout << x << " " << y << '\n'; } return 0; }
[ "control_flow.branch.if.condition.change", "literal.string.change", "expression.operation.binary.change" ]
177,476
177,474
u174505525
cpp
p02397
#include <iostream> #include <stdio.h> using namespace std; int main() { int x[3000], y[3000]; int i = 0; int swap; for (i = 0; i < 100000; ++i) { scanf("%d%d", x[i], y[i]); if (x[i] == 0 && y[i] == 0) break; if (x[i] > y[i]) { swap = x[i]; x[i] = y[i]; y[i] = swap; } }...
#include <iostream> #include <stdio.h> using namespace std; int main() { int x[3000], y[3000]; int i = 0; int swap; for (i = 0; i < 100000; ++i) { scanf("%d%d", &x[i], &y[i]); if (x[i] == 0 && y[i] == 0) break; if (x[i] > y[i]) { swap = x[i]; x[i] = y[i]; y[i] = swap; } ...
[ "expression.operation.unary.reference.add" ]
177,478
177,479
u594988858
cpp
p02397
#include <iostream> using namespace std; int main(void) { int a, b, x, y; while (true) { cin >> x >> y; if (x == 0 || y == 0) break; if (x < y) { a = x; b = y; } else { a = y; b = x; } cout << a << " " << b << endl; } }
#include <iostream> using namespace std; int main(void) { int a, b, x, y; while (true) { cin >> x >> y; if (x == 0 && y == 0) break; if (x < y) { a = x; b = y; } else { a = y; b = x; } cout << a << " " << b << endl; } }
[ "misc.opposites", "control_flow.branch.if.condition.change" ]
177,480
177,481
u795007957
cpp
p02397
#include <iostream> using namespace std; int main() { int x, y, temp; cin >> x >> y; while (x != 0 && y != 0) { if (x > y) { temp = x; x = y; y = temp; } cout << x << " " << y << endl; cin >> x >> y; } return 0; }
#include <iostream> using namespace std; int main() { int x, y, temp; cin >> x >> y; while (x != 0 || y != 0) { if (x > y) { temp = x; x = y; y = temp; } cout << x << " " << y << endl; cin >> x >> y; } return 0; }
[ "misc.opposites", "control_flow.loop.condition.change" ]
177,488
177,489
u871676916
cpp
p02397
#include <iostream> using namespace std; int main() { int a, b, t; while (1) { cin >> a >> b; if (a == 0 && b == 0) break; if (a < b) { cout << a << " " << b << endl; } else { cout << b << " " << a << endl; } return 0; } }
#include <iostream> using namespace std; int main() { int a, b; while (1) { cin >> a >> b; if (a == 0 && b == 0) break; if (a < b) { cout << a << " " << b << endl; } else { cout << b << " " << a << endl; } } return 0; }
[ "variable_declaration.remove" ]
177,491
177,492
u301911100
cpp
p02397
#include <iostream> using namespace std; int main() { int NumMem[2][3000]; int cnt = 0; for (int i = 0; i < 3000; i++) { cin >> NumMem[0][i] >> NumMem[1][i]; if ((NumMem[0][i] == 0) && (NumMem[1][i] == 0) || (i == 2999)) { break; } if (NumMem[0][i] << NumMem[1][i]) { cout << NumMem[0]...
#include <iostream> using namespace std; int main() { int NumMem[2][3000]; int cnt = 0; for (int i = 0; i < 3000; i++) { cin >> NumMem[0][i] >> NumMem[1][i]; if ((NumMem[0][i] == 0) && (NumMem[1][i] == 0) || (i == 2999)) { break; } if (NumMem[0][i] < NumMem[1][i]) { cout << NumMem[0]...
[ "misc.typo", "control_flow.branch.if.condition.change" ]
177,494
177,495
u745259711
cpp
p02397
#include <iostream> using namespace std; int main() { int x, y; for (int i = 0; i < 3000; i++) { cin >> x >> y; if (x > 0 && y > 0) { if (x > y) { swap(x, y); } cout << x << ' ' << y << '\n'; } else if (x == 0 && y == 0) { break; } } return 0; }
#include <iostream> using namespace std; int main() { int x, y; for (int i = 0; i < 3000; i++) { cin >> x >> y; if (x > 0 || y > 0) { if (x > y) { swap(x, y); } cout << x << ' ' << y << '\n'; } else if (x == 0 && y == 0) { break; } } return 0; }
[ "misc.opposites", "control_flow.branch.if.condition.change" ]
177,497
177,498
u473378988
cpp
p02397
//============================================================================ // Name : AOL.cpp // Author : Akari Fujii // Version : // Copyright : Your copyright notice // Description : Hello World in C++, Ansi-style //============================================================================ #in...
//============================================================================ // Name : AOL.cpp // Author : Akari Fujii // Version : // Copyright : Your copyright notice // Description : Hello World in C++, Ansi-style //============================================================================ #in...
[ "misc.opposites", "expression.operator.compare.change", "control_flow.branch.if.condition.change" ]
177,499
177,500
u640503906
cpp
p02397
//============================================================================ // Name : AOL.cpp // Author : Akari Fujii // Version : // Copyright : Your copyright notice // Description : Hello World in C++, Ansi-style //============================================================================ #in...
//============================================================================ // Name : AOL.cpp // Author : Akari Fujii // Version : // Copyright : Your copyright notice // Description : Hello World in C++, Ansi-style //============================================================================ #in...
[ "control_flow.branch.if.condition.change" ]
177,501
177,500
u640503906
cpp
p02397
#include <algorithm> #include <iostream> using namespace std; int main() { int x, y; while (1) { cin >> x >> y; if (x == 0 && y == 0) break; cout << min(x, y) << max(x, y) << endl; } return 0; }
#include <algorithm> #include <iostream> using namespace std; int main() { int x, y; while (1) { cin >> x >> y; if (x == 0 && y == 0) break; cout << min(x, y) << " " << max(x, y) << endl; } return 0; }
[ "io.output.change" ]
177,503
177,504
u127504401
cpp
p02397
#include <iostream> using namespace std; int main() { int x, y; while (cin >> x >> y) { if (x == 0 && y == 0) break; if (x < y) { cout << x << " " << y << endl; } else { cout << y << " " << x << endl; } return 0; } }
#include <iostream> using namespace std; int main() { int x, y; while (cin >> x >> y) { if (x == 0 && y == 0) break; if (x < y) { cout << x << " " << y << endl; } else { cout << y << " " << x << endl; } } return 0; }
[]
177,505
177,506
u648360881
cpp
p02397
#include <iostream> using namespace std; int main() { int x, y; while (cin >> x >> y) { if (x == 0 && y == 0) break; if (x < y) { cout << x << " " << y << endl; } if (y < x) { cout << y << " " << x << endl; } } return 0; }
#include <iostream> using namespace std; int main() { int x, y; while (cin >> x >> y) { if (x == 0 && y == 0) break; if (x < y) { cout << x << " " << y << endl; } else { cout << y << " " << x << endl; } } return 0; }
[]
177,507
177,506
u648360881
cpp
p02397
#include <stdio.h> int main(void) { int x[3000]; int y[3000]; int i = 0; for (i = 0; i <= 3000; i++) { scanf("%d %d", &x[i], &y[i]); if (x > y) { int tmp = x[i]; x[i] = y[i]; y[i] = tmp; } if (x[i] == 0 && y[i] == 0) { break; } } for (i = 0; i <= 3000; i++) { ...
#include <stdio.h> int main(void) { int x[3000]; int y[3000]; int i = 0; for (i = 0; i <= 3000; i++) { scanf("%d %d", &x[i], &y[i]); if (x[i] > y[i]) { int tmp = x[i]; x[i] = y[i]; y[i] = tmp; } if (x[i] == 0 && y[i] == 0) { break; } } for (i = 0; i <= 3000; i++) ...
[ "control_flow.branch.if.condition.change", "control_flow.loop.for.condition.change" ]
177,508
177,509
u114405853
cpp
p02397
#include <iostream> using namespace std; int main() { int x, y; while (1) { cin >> x >> y; if (x == 0 && y == 0) { break; } if (x < y) { cout << x << " " << y << "\n"; } else if (x > y) { cout << y << " " << x << "\n"; } } }
#include <iostream> using namespace std; int main() { int x, y; while (1) { cin >> x >> y; if (x == 0 && y == 0) { break; } if (x <= y) { cout << x << " " << y << "\n"; } else if (x > y) { cout << y << " " << x << "\n"; } } }
[ "expression.operator.compare.change", "control_flow.branch.if.condition.change" ]
177,510
177,511
u992756566
cpp
p02397
#include <iostream> using namespace std; int main() { int x, y; while (1) { cin >> x >> y; if (x == 0 && y == 0) { break; } if (x < y) { cout << x << " " << y << "\n"; } else if (x > y) { cout << y << " " << x << "\n"; } } return 0; }
#include <iostream> using namespace std; int main() { int x, y; while (1) { cin >> x >> y; if (x == 0 && y == 0) { break; } if (x <= y) { cout << x << " " << y << "\n"; } else if (x > y) { cout << y << " " << x << "\n"; } } }
[ "expression.operator.compare.change", "control_flow.branch.if.condition.change" ]
177,513
177,511
u992756566
cpp
p02397
#include <iostream> using namespace std; int main() { int x[3000]; int y[3000]; int i; for (i = 0; i < 3000; i++) { cin >> x[i]; cin >> y[i]; if (x[i] == 0 && y[i] == 0) break; } for (int a = 0; a < i; a++) { if (x[i] < y[i]) cout << x[i] << " " << y[i] << endl; else ...
#include <iostream> using namespace std; int main() { int x[3000]; int y[3000]; int i; for (i = 0; i < 3000; i++) { cin >> x[i]; cin >> y[i]; if (x[i] == 0 && y[i] == 0) break; } for (int a = 0; a < i; a++) { if (x[a] < y[a]) cout << x[a] << " " << y[a] << endl; else ...
[ "identifier.change", "variable_access.subscript.index.change", "control_flow.branch.if.condition.change", "io.output.change" ]
177,514
177,515
u002010345
cpp
p02397
#define _CRT_SECURE_NO_WARNINGS #include <stdio.h> int main() { int x[3000], y[3000], i = 0, c, temp; while (1) { scanf("%d %d", &x[i], &y[i]); if (0 == x[i] || 0 == y[i]) { c = i; break; } if (x[i] > y[i]) { temp = x[i]; x[i] = y[i]; y[i] = temp; } i++; } ...
#define _CRT_SECURE_NO_WARNINGS #include <stdio.h> int main() { int x[3000], y[3000], i = 0, c, temp; while (1) { scanf("%d %d", &x[i], &y[i]); if (0 == x[i] && 0 == y[i]) { c = i; break; } if (x[i] > y[i]) { temp = x[i]; x[i] = y[i]; y[i] = temp; } i++; } ...
[ "misc.opposites", "control_flow.branch.if.condition.change" ]
177,517
177,518
u516781876
cpp
p02397
#include <algorithm> #include <iostream> int main() { int x; int y; while (1) { std::cin >> x >> y; if ((x == 0) && (y == 0)) { break; } if (x != y) { using std::swap; swap(x, y); } std::cout << x << " " << y << std::endl; } return 0; }
#include <algorithm> #include <iostream> int main() { int x; int y; while (1) { std::cin >> x >> y; if ((x == 0) && (y == 0)) { break; } if (x > y) { using std::swap; swap(x, y); } std::cout << x << " " << y << std::endl; } return 0; }
[ "expression.operator.compare.change", "control_flow.branch.if.condition.change" ]
177,519
177,520
u289264252
cpp
p02397
#include <iostream> using namespace std; int main() { int x, y, t; while (1) { cin >> x >> y; if (x == y && x == 0) break; if (x > y) { t = y; y = x; x = t; } cout << x << " " << y; } return 0; }
#include <iostream> using namespace std; int main() { int x, y, t; while (1) { cin >> x >> y; if (x == y && x == 0) break; if (x > y) { t = y; y = x; x = t; } cout << x << " " << y << endl; } return 0; }
[ "io.output.newline.add" ]
177,521
177,522
u950835578
cpp
p02397
#include <iostream> using namespace std; int main() { int x, y; while (cin >> x >> y) { if (x == 0 && y == 0) return 0; if (x <= y) cout << y << " " << x << endl; else if (y <= x) cout << x << " " << y << endl; } return 0; }
#include <iostream> using namespace std; int main() { int x, y; while (cin >> x >> y) { if (x == 0 && y == 0) return 0; if (x <= y) cout << x << " " << y << endl; else if (y <= x) cout << y << " " << x << endl; } return 0; }
[ "control_flow.branch.if.add" ]
177,524
177,525
u867003366
cpp
p02397
#include <iostream> int main() { for (int x, y;;) { std::cin >> x >> y; if (x == y == 0) break; if (x < y) std::cout << x << ' ' << y << '\n'; else std::cout << y << ' ' << x << '\n'; } }
#include <iostream> int main() { for (int x, y;;) { std::cin >> x >> y; if (x == 0 && y == 0) break; if (x < y) std::cout << x << ' ' << y << '\n'; else std::cout << y << ' ' << x << '\n'; } }
[ "control_flow.branch.if.condition.change", "control_flow.loop.for.condition.change" ]
177,526
177,527
u447154297
cpp
p02397
#include <algorithm> #include <cstdio> #include <utility> using namespace std; int main() { int x, y; int count = 0; pair<int, int> data[3000]; while (1) { scanf("%d", &x); scanf("%d", &y); if (x == 0 && y == 0) { break; } data[count].first = max(x, y); data[count].second = min(x,...
#include <algorithm> #include <cstdio> #include <utility> using namespace std; int main() { int x, y; int count = 0; pair<int, int> data[3000]; while (1) { scanf("%d", &x); scanf("%d", &y); if (x == 0 && y == 0) { break; } data[count].first = min(x, y); data[count].second = max(x,...
[ "misc.opposites", "assignment.value.change", "identifier.change", "call.function.change", "control_flow.return.add", "control_flow.return.0.add" ]
177,528
177,529
u699878412
cpp
p02397
#include <stdio.h> int main() { int i; int x[10000], y[10000]; // input dataset for (i = 0; i < 10000; i++) { scanf("%d %d", &x[i], &y[i]); if (!(x[i] || y[i])) break; } // outputs for (i = 0; i < 10000 && (x[i] || y[i]); i++) { if (x > y) printf("%d %d\n", y[i], x[i]); else...
#include <stdio.h> int main() { int i; int x[10000], y[10000]; // input dataset for (i = 0; i < 10000; i++) { scanf("%d %d", &x[i], &y[i]); if (!(x[i] || y[i])) break; } // outputs for (i = 0; i < 10000 && (x[i] || y[i]); i++) { if (x[i] > y[i]) printf("%d %d\n", y[i], x[i]); ...
[ "control_flow.branch.if.condition.change", "control_flow.loop.for.condition.change" ]
177,535
177,536
u017984030
cpp
p02397
#include <iostream> using namespace std; int main() { int x, y; while (1) { cin >> x >> y; if (x == 0 && y == 0) { return 0; } if (x <= y) { cout << x << " " << y << "\n"; } if (y < x) { cout << y << " " << x << "\n"; } break; } return 0; }
#include <iostream> using namespace std; int main() { int x, y; while (1) { cin >> x >> y; if (x == 0 && y == 0) { return 0; } if (x <= y) { cout << x << " " << y << "\n"; } if (x > y) { cout << y << " " << x << "\n"; } } return 0; }
[ "expression.operation.binary.remove", "control_flow.branch.if.condition.change" ]
177,544
177,545
u325884252
cpp
p02397
#include <iostream> using namespace std; int main() { int x, y; cin >> x >> y; while (x != 0 && y != 0) { if (x > y) { cout << x << " " << y << endl; } else { cout << y << " " << x << endl; } cin >> x >> y; } return 0; }
#include <iostream> using namespace std; int main() { int x, y; cin >> x >> y; while (x != 0 || y != 0) { if (x < y) cout << x << " " << y << endl; else cout << y << " " << x << endl; cin >> x >> y; } return 0; }
[ "misc.opposites", "control_flow.loop.condition.change", "expression.operator.compare.change", "control_flow.branch.if.condition.change" ]
177,547
177,548
u110740299
cpp
p02397
#include <iostream> using namespace std; int main() { int x, y; cin >> x >> y; while (x != 0 && y != 0) { if (x < y) { cout << x << " " << y << endl; } else { cout << y << " " << x << endl; } cin >> x >> y; } return 0; }
#include <iostream> using namespace std; int main() { int x, y; cin >> x >> y; while (x != 0 || y != 0) { if (x < y) cout << x << " " << y << endl; else cout << y << " " << x << endl; cin >> x >> y; } return 0; }
[ "misc.opposites", "control_flow.loop.condition.change" ]
177,549
177,548
u110740299
cpp
p02397
#include <iostream> using namespace std; int main() { int x, y; cin >> x >> y; while (x != 0 && y != 0) { if (x < y) cout << x << " " << y << endl; else cout << y << " " << x << endl; cin >> x >> y; } return 0; }
#include <iostream> using namespace std; int main() { int x, y; cin >> x >> y; while (x != 0 || y != 0) { if (x < y) cout << x << " " << y << endl; else cout << y << " " << x << endl; cin >> x >> y; } return 0; }
[ "misc.opposites", "control_flow.loop.condition.change" ]
177,551
177,548
u110740299
cpp
p02397
#include <iostream> using namespace std; int main() { int in1, in2; cin >> in1 >> in2; while ((in1 != 0) && (in2 != 0)) { if (in1 < in2) cout << in1 << ' ' << in2 << endl; else cout << in2 << ' ' << in1 << endl; cin >> in1, in2; } return 0; }
#include <iostream> using namespace std; int main() { int in1, in2; cin >> in1 >> in2; while ((in1 != 0) || (in2 != 0)) { if (in1 < in2) cout << in1 << ' ' << in2 << endl; else cout << in2 << ' ' << in1 << endl; cin >> in1 >> in2; } return 0; }
[ "misc.opposites", "control_flow.loop.condition.change" ]
177,555
177,553
u057722383
cpp
p02397
#include <iostream> using namespace std; int main() { int x, y; cin >> x >> y; while (x != 0 && y != 0) { if (x >= y) cout << y << " " << x << "\n"; else cout << x << " " << y << "\n"; cin >> x >> y; } }
#include <iostream> using namespace std; int main() { int x, y; cin >> x >> y; while (x != 0 || y != 0) { if (x >= y) cout << y << " " << x << "\n"; else cout << x << " " << y << "\n"; cin >> x >> y; } }
[ "misc.opposites", "control_flow.loop.condition.change" ]
177,557
177,558
u576471005
cpp
p02397
#include <stdio.h> #include <utility> using std::swap; int main() { int x, y; scanf("%d %d", &x, &y); while (!(x == 0 && y == 0)) { swap(x, y); printf("%d %d\n", x, y); scanf("%d %d", &x, &y); } return 0; }
#include <stdio.h> #include <utility> using std::swap; int main() { int x, y; scanf("%d %d", &x, &y); while (!(x == 0 && y == 0)) { if (y < x) swap(x, y); printf("%d %d\n", x, y); scanf("%d %d", &x, &y); } return 0; }
[ "control_flow.branch.if.add" ]
177,559
177,560
u912124184
cpp
p02397
#include <algorithm> #include <cmath> #include <iostream> #include <string> #include <vector> #define REP(i, a) for (int i = 0; i < (int)a; ++i) typedef long long ll; typedef long double ld; using namespace std; int x, y; void solver() { while (cin >> x >> y) { if (x == 0 && y == 0) { if (x < y) co...
#include <algorithm> #include <cmath> #include <iostream> #include <string> #include <vector> #define REP(i, a) for (int i = 0; i < (int)a; ++i) typedef long long ll; typedef long double ld; using namespace std; int x, y; void solver() { while (cin >> x >> y) { if (x != 0 || y != 0) { if (x < y) co...
[ "misc.opposites", "expression.operator.compare.change", "control_flow.branch.if.condition.change" ]
177,561
177,562
u045279534
cpp
p02397
#include <algorithm> #include <cmath> #include <iostream> #include <string> #include <vector> #define REP(i, a) for (int i = 0; i < (int)a; ++i) typedef long long ll; typedef long double ld; using namespace std; int x, y; void solver() { while (cin >> x >> y) { if (x != 0 && y != 0) { if (x < y) co...
#include <algorithm> #include <cmath> #include <iostream> #include <string> #include <vector> #define REP(i, a) for (int i = 0; i < (int)a; ++i) typedef long long ll; typedef long double ld; using namespace std; int x, y; void solver() { while (cin >> x >> y) { if (x != 0 || y != 0) { if (x < y) co...
[ "misc.opposites", "control_flow.branch.if.condition.change" ]
177,563
177,562
u045279534
cpp
p02397
#include <stdio.h> int main() { int x, y, d, i = 0; while (1) { i++; if (i == 3001) break; scanf("%d %d", &x, &y); if (x == 0 && y == 0) break; if (x > y) { d = x; x = y; y = d; } printf("%d %d", x, y); } return 0; }
#include <stdio.h> int main() { int x, y, d, i = 0; while (1) { i++; if (i == 3001) break; scanf("%d %d", &x, &y); if (x == 0 && y == 0) break; if (x > y) { d = x; x = y; y = d; } printf("%d %d\n", x, y); } return 0; }
[ "literal.string.change", "call.arguments.change", "io.output.change", "io.output.newline.add" ]
177,564
177,565
u453135215
cpp
p02397
#include <stdio.h> int main() { int a, b, t; while (1) { scanf("%d %d\n", &a, &b); if (a == 0) return 0; if (a > b) { t = a; a = b; b = t; } printf("%d %d\n", a, b); } }
#include <stdio.h> int main() { int a, b, t; while (1) { scanf("%d %d\n", &a, &b); if (a == 0 && b == 0) return 0; if (a > b) { t = a; a = b; b = t; } printf("%d %d\n", a, b); } }
[ "control_flow.branch.if.condition.change" ]
177,570
177,571
u761243345
cpp
p02397
#include <iostream> using namespace std; int main() { int x = 1, y = 1; while (1) { cin >> x >> y; if (x == 0 && y == 0) { break; } else { continue; } if (x >= y) { cout << y << " " << x << "\n"; } else { cout << x << " " << y << "\n"; } } return 0; }
#include <iostream> using namespace std; int main() { int x = 1, y = 1; while (1) { cin >> x >> y; if (x == 0 && y == 0) { break; } else { if (x >= y) { cout << y << " " << x << "\n"; } else { cout << x << " " << y << "\n"; } } } return 0; }
[]
177,572
177,573
u316544724
cpp
p02397
#include <iostream> int main() { int a, b, buf; std::cin >> a >> b; while (a != 0 || a != 0) { if (a > b) { buf = a; a = b; b = buf; } std::cout << a << ' ' << b << std::endl; std::cin >> a >> b; } return 0; }
#include <iostream> int main() { int a, b, buf; std::cin >> a >> b; while (a != 0 || b != 0) { if (a > b) { buf = a; a = b; b = buf; } std::cout << a << ' ' << b << std::endl; std::cin >> a >> b; } return 0; }
[ "identifier.change", "control_flow.loop.condition.change" ]
177,574
177,575
u335542868
cpp
p02397
#include <cstdio> int main() { int a, b; while (scanf("%d%d", &a, &b) != EOF) { if (a == 0 && b == 0) break; if (b > a) printf("%d %d\n", b, a); else printf("%d %d\n", a, b); } }
#include <cstdio> int main() { int a, b; while (scanf("%d%d", &a, &b) != EOF) { if (a == 0 && b == 0) break; if (b < a) printf("%d %d\n", b, a); else printf("%d %d\n", a, b); } }
[ "misc.opposites", "expression.operator.compare.change", "control_flow.branch.if.condition.change" ]
177,580
177,581
u706376958
cpp
p02397
#include <iostream> using namespace std; int main() { int x, y; cin >> x >> y; while (x != 0 && y != 0) { if (x > y) { cout << y << " " << x << endl; } else { cout << x << " " << y << endl; } cin >> x >> y; } return 0; }
#include <iostream> using namespace std; int main() { int x, y; cin >> x >> y; while (x != 0 || y != 0) { if (x > y) { cout << y << " " << x << endl; } else { cout << x << " " << y << endl; } cin >> x >> y; } return 0; }
[ "misc.opposites", "control_flow.loop.condition.change" ]
177,582
177,583
u538036761
cpp
p02397
#include <stdio.h> int main(void) { int y, x; while (1) { scanf("%d%d", &x, &y); if (!x && !y) break; printf("%d %d\n", x > y ? x : y, x < y ? x : y); } return 0; }
#include <stdio.h> int main(void) { int y, x; while (1) { scanf("%d%d", &x, &y); if (!x && !y) break; printf("%d %d\n", x < y ? x : y, x > y ? x : y); } return 0; }
[ "call.arguments.change", "call.arguments.add" ]
177,584
177,585
u428870975
cpp
p02397
#include <iostream> using namespace std; int main() { int a, b; cin >> a >> b; while (a != 0 and b != 0) { if (b < a) { swap(a, b); cout << a << " " << b << endl; cin >> a >> b; } else { cout << a << " " << b << endl; cin >> a >> b; } } return 0; }
#include <iostream> using namespace std; int main() { int a, b; cin >> a >> b; while (a != 0 or b != 0) { if (b < a) { swap(a, b); cout << a << " " << b << endl; cin >> a >> b; } else { cout << a << " " << b << endl; cin >> a >> b; } } return 0; }
[ "identifier.change", "control_flow.loop.condition.change" ]
177,586
177,587
u718267775
cpp
p02397
#include <iostream> using namespace std; int main() { int x, y, z; cin >> x >> y; while (x != 0 && y != 0) { if (x > y) { cout << y << " " << x << endl; } else { cout << x << " " << y << endl; } cin >> x >> y; } }
#include <iostream> using namespace std; int main() { int x, y, z; cin >> x >> y; while (x != 0 || y != 0) { if (x > y) { cout << y << " " << x << endl; } else { cout << x << " " << y << endl; } cin >> x >> y; } }
[ "misc.opposites", "control_flow.loop.condition.change" ]
177,588
177,589
u474767018
cpp
p02397
#include <stdio.h> int main(void) { int a, b; for (scanf("%d %d", &a, &b); a != 0 && b != 0; scanf("%d %d", &a, &b)) { printf("%d %d\n", (a < b) ? a : b, (b < a) ? a : b); } return 0; }
#include <stdio.h> int main(void) { int a, b; for (scanf("%d %d", &a, &b); a != 0 || b != 0; scanf("%d %d", &a, &b)) { printf("%d %d\n", (a < b) ? a : b, (b < a) ? a : b); } return 0; }
[ "misc.opposites", "control_flow.loop.for.condition.change", "expression.operation.binary.change" ]
177,591
177,592
u211771962
cpp
p02397
#include <iostream> using namespace std; int main() { int x = 1; int y = 1; cin >> x >> y; while (x != 0 && y != 0) { if (x < y) { cout << x << ' ' << y << '\n'; } else { cout << y << ' ' << x << '\n'; } cin >> x >> y; } return 0; }
#include <iostream> using namespace std; int main() { int x = 1; int y = 1; cin >> x >> y; while (x != 0 || y != 0) { if (x < y) { cout << x << ' ' << y << '\n'; } else { cout << y << ' ' << x << '\n'; } cin >> x >> y; } return 0; }
[ "misc.opposites", "control_flow.loop.condition.change" ]
177,595
177,596
u783224841
cpp
p02397
#include <iostream> using namespace std; int main() { int x = -1, y = -1; while ((x != 0) && (y != 0)) { cin >> x >> y; if ((x == 0) && (y == 0)) { break; } else if (x <= y) { cout << x << ' ' << y << endl; } else { cout << y << ' ' << x << endl; } } }
#include <iostream> using namespace std; int main() { int x = -1, y = -1; while ((x != 10001) && (y != 10001)) { cin >> x >> y; if ((x == 0) && (y == 0)) { break; } else if (x <= y) { cout << x << ' ' << y << endl; } else { cout << y << ' ' << x << endl; } } }
[ "literal.number.change", "control_flow.loop.condition.change" ]
177,597
177,598
u470979787
cpp
p02397
#include <iostream> using namespace std; int main() { int x = -1, y = -1; while ((x != 0) && (y != 0)) { cin >> x >> y; if ((x == 0) || (y == 0)) { break; } else if (x <= y) { cout << x << ' ' << y << endl; } else { cout << y << ' ' << x << endl; } } }
#include <iostream> using namespace std; int main() { int x = -1, y = -1; while ((x != 10001) && (y != 10001)) { cin >> x >> y; if ((x == 0) && (y == 0)) { break; } else if (x <= y) { cout << x << ' ' << y << endl; } else { cout << y << ' ' << x << endl; } } }
[ "literal.number.change", "control_flow.loop.condition.change", "misc.opposites", "control_flow.branch.if.condition.change" ]
177,599
177,598
u470979787
cpp
p02397
#include <cmath> #include <iostream> using namespace std; int main() { int x[3001]; int y[3001]; int cnum = 0; while (1) { cnum += 1; cin >> x[cnum] >> y[cnum]; if (x[cnum] == 0 && y[cnum] == 0) break; } for (int i = 1; i <= cnum; i++) { if (x[i] > y[i]) { cout << y[i] << " " <<...
#include <cmath> #include <iostream> using namespace std; int main() { int x[3001]; int y[3001]; int cnum = 0; while (1) { cnum += 1; cin >> x[cnum] >> y[cnum]; if (x[cnum] == 0 && y[cnum] == 0) break; } for (int i = 1; i < cnum; i++) { if (x[i] > y[i]) { cout << y[i] << " " << ...
[ "expression.operator.compare.change", "control_flow.loop.for.condition.change", "expression.off_by_one", "expression.operation.binary.change" ]
177,605
177,606
u763049748
cpp
p02397
#include <iostream> using namespace std; #define MAX_DATA_NUM 3001 // Contain last zero typedef struct t_num_set { int num1; int num2; } t_NUM_SET; void swap(t_NUM_SET *t_inValue); int main() { int dataNum = 0, i = 0; t_NUM_SET t_inValue[MAX_DATA_NUM]; for (i = 0; i < MAX_DATA_NUM; i++) { cin >> t_i...
#include <iostream> using namespace std; #define MAX_DATA_NUM 3001 // Contain last zero typedef struct t_num_set { int num1; int num2; } t_NUM_SET; void swap(t_NUM_SET *t_inValue); int main() { int dataNum = 0, i = 0; t_NUM_SET t_inValue[MAX_DATA_NUM]; for (i = 0; i < MAX_DATA_NUM; i++) { cin >> t_i...
[ "misc.opposites", "control_flow.branch.if.condition.change" ]
177,607
177,608
u380982951
cpp
p02397
#include <iostream> using namespace std; int main() { int x, y; for (int i = 1; i < 10001; i++) { cin >> x >> y; if (x == 0) { return 0; } else { if (y < x) { cout << y << " " << x << endl; } else { cout << x << " " << y << endl; } } } }
#include <iostream> using namespace std; int main() { int x, y; for (int i = 1; i < 10001; i++) { cin >> x >> y; if (x == 0 && y == 0) { return 0; } else { if (y < x) { cout << y << " " << x << endl; } else { cout << x << " " << y << endl; } } } }
[ "control_flow.branch.if.condition.change", "control_flow.loop.for.condition.change" ]
177,609
177,610
u473234292
cpp
p02397
#include <iostream> #include <string> using namespace std; int main() { int A; int B; while (cin >> A >> B, A) { if (A <= B) { cout << A << " " << B << endl; } if (A >= B) { cout << B << " " << A << endl; } } return 0; }
#include <iostream> #include <string> using namespace std; int main() { int A; int B; while (cin >> A >> B, A || B) { if (A <= B) { cout << A << " " << B << endl; } if (A > B) { cout << B << " " << A << endl; } } return 0; }
[ "control_flow.loop.condition.change", "expression.operator.compare.change", "control_flow.branch.if.condition.change" ]
177,613
177,614
u950745506
cpp
p02397
#include <iostream> #include <string> using namespace std; int main() { int A; int B; while (cin >> A >> B, A && B) { if (A <= B) { cout << A << " " << B << endl; } if (A >= B) { cout << B << " " << A << endl; } } return 0; }
#include <iostream> #include <string> using namespace std; int main() { int A; int B; while (cin >> A >> B, A || B) { if (A <= B) { cout << A << " " << B << endl; } if (A > B) { cout << B << " " << A << endl; } } return 0; }
[ "misc.opposites", "control_flow.loop.condition.change", "expression.operator.compare.change", "control_flow.branch.if.condition.change" ]
177,616
177,614
u950745506
cpp
p02397
#include <iostream> #include <string> using namespace std; int main() { int A; int B; while (cin >> A >> B, A && B) { if (A <= B) { cout << A << " " << B << endl; } if (A > B) { cout << B << " " << A << endl; } } return 0; }
#include <iostream> #include <string> using namespace std; int main() { int A; int B; while (cin >> A >> B, A || B) { if (A <= B) { cout << A << " " << B << endl; } if (A > B) { cout << B << " " << A << endl; } } return 0; }
[ "misc.opposites", "control_flow.loop.condition.change" ]
177,617
177,614
u950745506
cpp