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> int main() { int x, y; while (std::cin >> x >> y, x && y) { if (x > y) std::cout << y << " " << x << '\n'; else std::cout << x << " " << y << '\n'; } return 0; }
#include <iostream> int main() { int x, y; while (std::cin >> x >> y, (x | y)) { if (x > y) std::cout << y << " " << x << '\n'; else std::cout << x << " " << y << '\n'; } return 0; }
[ "control_flow.loop.condition.change" ]
177,107
177,106
u076937067
cpp
p02397
#include <iostream> int main() { int x, y; while (std::cin >> x >> y && x && y) { if (x > y) std::cout << y << " " << x << '\n'; else std::cout << x << " " << y << '\n'; } return 0; }
#include <iostream> int main() { int x, y; while (std::cin >> x >> y, (x | y)) { if (x > y) std::cout << y << " " << x << '\n'; else std::cout << x << " " << y << '\n'; } return 0; }
[ "control_flow.loop.condition.change" ]
177,108
177,106
u076937067
cpp
p02397
#include <iostream> int main() { int x, y; while (std::cin >> x >> y, (x & y)) { if (x > y) std::cout << y << " " << x << '\n'; else std::cout << x << " " << y << '\n'; } return 0; }
#include <iostream> int main() { int x, y; while (std::cin >> x >> y, (x | y)) { if (x > y) std::cout << y << " " << x << '\n'; else std::cout << x << " " << y << '\n'; } return 0; }
[ "control_flow.loop.condition.change" ]
177,110
177,106
u076937067
cpp
p02397
#include <iostream> using namespace std; int main() { int x, y; while (1) { cin >> x; cin >> 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 (1) { cin >> x; cin >> y; if (x == 0 && y == 0) break; if (x < y) cout << x << " " << y << endl; else cout << y << " " << x << endl; } return 0; }
[ "misc.opposites", "expression.operator.compare.change", "control_flow.branch.if.condition.change" ]
177,121
177,122
u940742903
cpp
p02397
#include <iostream> int x = 0, y = 1; int main() { for (; (x != 0) && (y != 0);) { std::cin >> x >> y; if ((x != 0) && (y != 0)) { if (x <= y) { std::cout << x << " " << y << std::endl; } else { std::cout << y << " " << x << std::endl; } } } }
#include <iostream> int x = 0, y = 1; int main() { for (; (x != 0) || (y != 0);) { std::cin >> x >> y; if ((x != 0) || (y != 0)) { if (x <= y) { std::cout << x << " " << y << std::endl; } else { std::cout << y << " " << x << std::endl; } } } }
[ "misc.opposites", "control_flow.loop.for.condition.change", "expression.operation.binary.change", "control_flow.branch.if.condition.change" ]
177,123
177,124
u156586727
cpp
p02397
#include <iostream> using namespace std; int main() { int a, b; for (;;) { cin >> a >> b; if (a == 0 && b == 0) break; if (a < b) { cout << a << " " << b << endl; } else if (a > b) { cout << b << " " << a << endl; } } return 0; }
#include <iostream> using namespace std; int main() { int a, b; for (;;) { cin >> a >> b; if (a == 0 && b == 0) break; if (a <= b) { cout << a << " " << b << endl; } else if (a > b) { cout << b << " " << a << endl; } } return 0; }
[ "expression.operator.compare.change", "control_flow.branch.if.condition.change" ]
177,125
177,126
u185697831
cpp
p02397
#include <iostream> using namespace std; int main() { int x, y; while (cin >> x >> y && x != 0 && y != 0) { if (x < y) { cout << x << " " << y << endl; } else { cout << y << " " << x << endl; } } }
#include <iostream> using namespace std; int main() { int x, y; while (cin >> x >> y && (x != 0 || y != 0)) { if (x < y) { cout << x << " " << y << endl; } else { cout << y << " " << x << endl; } } }
[ "control_flow.loop.condition.change", "misc.opposites" ]
177,129
177,130
u049242937
cpp
p02397
#include <algorithm> #include <cstdio> #include <iostream> #include <vector> using namespace std; int main() { int a, b; while (cin >> a >> b, a && b) { if (a < b) cout << a << " " << b << endl; else cout << b << " " << a << endl; } }
#include <algorithm> #include <cstdio> #include <iostream> #include <vector> using namespace std; int main() { int a, b; while (cin >> a >> b, a || b) { if (a < b) cout << a << " " << b << endl; else cout << b << " " << a << endl; } }
[ "misc.opposites", "control_flow.loop.condition.change" ]
177,131
177,132
u586305981
cpp
p02397
#include <stdio.h> int main(void) { int a, b, temp; scanf("%d %d", &a, &b); while (a != 0 && b != 0) { if (a >= b) { temp = a; a = b; b = temp; printf("%d %d\n", a, b); } else { printf("%d %d\n", a, b); } scanf("%d %d", &a, &b); } return 0; }
#include <stdio.h> int main(void) { int a, b, temp; scanf("%d %d", &a, &b); while (!(a == 0 && b == 0)) { if (a >= b) { temp = a; a = b; b = temp; printf("%d %d\n", a, b); } else { printf("%d %d\n", a, b); } scanf("%d %d", &a, &b); } return 0; }
[ "control_flow.loop.condition.change", "misc.opposites", "expression.operator.compare.change" ]
177,134
177,135
u866810339
cpp
p02397
#include <stdio.h> int main(void) { int a, b, x, y; scanf("%d %d", &x, &y); while (x != 0 && y != 0) { if (y > x) { printf("%d %d\n", x, y); } else { printf("%d %d\n", y, x); } scanf("%d %d", &x, &y); } return 0; }
#include <stdio.h> int main(void) { int a, b, x, y; scanf("%d %d", &x, &y); while (x != 0 || y != 0) { if (y > x) { printf("%d %d\n", x, y); } else { printf("%d %d\n", y, x); } scanf("%d %d", &x, &y); } return 0; }
[ "misc.opposites", "control_flow.loop.condition.change" ]
177,139
177,140
u909782545
cpp
p02397
#include <cstdio> int main() { int x, y; while (1) { 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; }
#include <cstdio> int main() { int x, y; while (1) { 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" ]
177,141
177,142
u806178009
cpp
p02397
#include <iostream> using namespace std; int main() { int x, y; while (cin >> x >> y, x && y) { x <= y ? cout << x << " " << y : cout << y << " " << x; cout << endl; } return 0; }
#include <iostream> using namespace std; int main() { int x, y; while (cin >> x >> y, x || y) { x <= y ? cout << x << " " << y : cout << y << " " << x; cout << endl; } return 0; }
[ "misc.opposites", "control_flow.loop.condition.change" ]
177,145
177,146
u822202919
cpp
p02397
#include <iostream> using namespace std; int main() { /* cout<<"Hello World"<<endl; int x; cin>> x; cout<< x*x*x <<endl; int a; int b; cin>>a>>b; cout<<a*b<<" "<<2*a+2*b<<endl; int a; int b; cin>>a>>b; if (a<b){ cout<< "a < b" <<endl; }else if(a>b){ cout<<"a > b" <<endl; }else if(a==...
#include <iostream> using namespace std; int main() { /* cout<<"Hello World"<<endl; int x; cin>> x; cout<< x*x*x <<endl; int a; int b; cin>>a>>b; cout<<a*b<<" "<<2*a+2*b<<endl; int a; int b; cin>>a>>b; if (a<b){ cout<< "a < b" <<endl; }else if(a>b){ cout<<"a > b" <<endl; }else if(a==...
[ "control_flow.branch.else_if.replace.add", "control_flow.branch.if.replace.remove" ]
177,147
177,148
u343499586
cpp
p02397
#include <cstdio> main() { int a, b; while (1) { scanf("%d%d", &a, &b); if (a == b == 0) break; else if (a > b) { int buf; buf = a; a = b; b = buf; } printf("%d %d\n", a, b); } }
#include <cstdio> main() { int a, b; while (1) { scanf("%d%d", &a, &b); if (!a && !b) break; else if (a > b) { int buf; buf = a; a = b; b = buf; } printf("%d %d\n", a, b); } }
[ "expression.operation.unary.add", "control_flow.branch.if.condition.change", "expression.operation.binary.remove" ]
177,149
177,150
u884445603
cpp
p02397
#include <cstdio> main() { int a, b; while (1) { scanf("%d%d", &a, &b); if (a * b == 0) break; else if (a > b) { int buf; buf = a; a = b; b = buf; } printf("%d %d\n", a, b); } }
#include <cstdio> main() { int a, b; while (1) { scanf("%d%d", &a, &b); if (!a && !b) break; else if (a > b) { int buf; buf = a; a = b; b = buf; } printf("%d %d\n", a, b); } }
[ "expression.operation.unary.add", "control_flow.branch.if.condition.change", "expression.operation.binary.remove" ]
177,151
177,150
u884445603
cpp
p02397
#include <cstdio> main() { int a, b; while (1) { scanf("%d%d", &a, &b); if (!(a * b)) break; else if (a > b) { int buf; buf = a; a = b; b = buf; } printf("%d %d\n", a, b); } }
#include <cstdio> main() { int a, b; while (1) { scanf("%d%d", &a, &b); if (!a && !b) break; else if (a > b) { int buf; buf = a; a = b; b = buf; } printf("%d %d\n", a, b); } }
[ "control_flow.branch.if.condition.change", "expression.operation.unary.add" ]
177,152
177,150
u884445603
cpp
p02397
#include <stdio.h> int main(void) { int x, y; while (1) { scanf("%d %d", &x, &y); if (x == 0 && y == 0) { break; } else if (x > y) { printf("%d %d\n", x, y); } else { printf("%d %d\n", y, x); } return 0; } }
#include <stdio.h> int main(void) { int x, y; while (1) { scanf("%d %d\n", &x, &y); if (x == 0 && y == 0) { break; } else if (x <= y) { printf("%d %d\n", x, y); } else { printf("%d %d\n", y, x); } } return 0; }
[ "literal.string.change", "call.arguments.change", "expression.operator.compare.change", "control_flow.branch.if.condition.change" ]
177,153
177,154
u326744299
cpp
p02397
#include <stdio.h> int main(void) { int x, y; while (1) { scanf("%d %d", &x, &y); if (x == 0 && y == 0) { break; } else if (x > y) { printf("%d %d\n", x, y); } else { printf("%d %d\n", y, x); } } return 0; }
#include <stdio.h> int main(void) { int x, y; while (1) { scanf("%d %d\n", &x, &y); if (x == 0 && y == 0) { break; } else if (x <= y) { printf("%d %d\n", x, y); } else { printf("%d %d\n", y, x); } } return 0; }
[ "literal.string.change", "call.arguments.change", "expression.operator.compare.change", "control_flow.branch.if.condition.change" ]
177,156
177,154
u326744299
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 << x << " " << y << endl; } else if (x > y) { 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 (x >= y) { cout << y << " " << x << endl; } } return 0; }
[ "expression.operator.compare.change", "control_flow.branch.if.condition.change" ]
177,165
177,166
u832944400
cpp
p02397
#include <stdio.h> int main() { int a, b, c; while (1) { scanf("%d %d", &a, &b); if ((a == 0) && (b == 0)) { break; } else if (a < b) { printf("%d %d", a, b); } else { printf("%d %d", b, a); } } return 0; }
#include <stdio.h> int main() { int a, b; while (1) { scanf("%d %d", &a, &b); if ((a == 0) && (b == 0)) { break; } else if (a < b) { printf("%d %d\n", a, b); } else { printf("%d %d\n", b, a); } } return 0; }
[ "variable_declaration.remove", "literal.string.change", "call.arguments.change", "io.output.change", "io.output.newline.add" ]
177,169
177,170
u611684804
cpp
p02397
#include <cstdio> #include <iostream> using namespace std; int main(int argc, char const *argv[]) { int x, y; while (true) { cin >> x >> y; if (x == 0 && y == 0) { break; } else { if (x >= y) { printf("%d %d\n", x, y); } else { printf("%d %d\n", y, x); } } ...
#include <cstdio> #include <iostream> using namespace std; int main(int argc, char const *argv[]) { int x, y; while (true) { cin >> x >> y; if (x == 0 && y == 0) { break; } else { if (x <= y) { printf("%d %d\n", x, y); } else { printf("%d %d\n", y, x); } } ...
[ "misc.opposites", "expression.operator.compare.change", "control_flow.branch.if.condition.change" ]
177,171
177,172
u948774405
cpp
p02397
#include <cstdio> #include <iostream> using namespace std; int main(int argc, char const *argv[]) { int x, y; while (true) { cin >> x >> y; if (x == 0 && y == 0) { break; } else { if (x >= y) { printf("%d %d\n", x, y); } else { printf("%d %d\n", y, x); } } ...
#include <cstdio> #include <iostream> using namespace std; int main(int argc, char const *argv[]) { int x, y; while (true) { cin >> x >> y; if (x == 0 && y == 0) { break; } if (x <= y) { printf("%d %d\n", x, y); } else { printf("%d %d\n", y, x); } } return 0; }
[ "misc.opposites", "expression.operator.compare.change", "control_flow.branch.if.condition.change" ]
177,171
177,173
u948774405
cpp
p02397
#include <iostream> using namespace std; int main() { int x, y; for (;;) { 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; for (;;) { cin >> x >> y; if (x == 0 && y == 0) break; if (x < y) { cout << x << " " << y << endl; } else { cout << y << " " << x << endl; } } return 0; }
[ "misc.opposites", "expression.operator.compare.change", "control_flow.branch.if.condition.change" ]
177,174
177,175
u148733050
cpp
p02397
#include <stdio.h> int main() { int val[2] = {0}; while (1) { scanf("%d %d", &val[0], &val[1]); if (val[0] == 0 && val[1] == 0) { break; } if (val[0] > val[1]) { printf("%d %d\n", val[0], val[1]); } else { printf("%d %d\n", val[1], val[0]); } } return 0; }
#include <stdio.h> int main() { int val[2] = {0}; while (1) { scanf("%d %d", &val[0], &val[1]); if (val[0] == 0 && val[1] == 0) { break; } if (val[0] < val[1]) { printf("%d %d\n", val[0], val[1]); } else { printf("%d %d\n", val[1], val[0]); } } return 0; }
[ "misc.opposites", "expression.operator.compare.change", "control_flow.branch.if.condition.change" ]
177,176
177,177
u094491920
cpp
p02397
#include <iostream> using namespace std; int main() { int x, y; while (cin >> x >> y) { if (x == 0 || y == 0) { return 0; } else if (x < y) { cout << x << " " << y << endl; } else { cout << y << " " << x << endl; } } }
#include <iostream> using namespace std; int main() { int x, y; while (cin >> x >> y) { if (x == 0 && y == 0) { return 0; } else if (x < y) { cout << x << " " << y << endl; } else { cout << y << " " << x << endl; } } }
[ "misc.opposites", "control_flow.branch.if.condition.change" ]
177,180
177,181
u336839934
cpp
p02397
#include <iostream> using namespace std; int main() { int x, y, i; while (cin >> x) { cin >> y; if (x == 0) { break; } if (x > y) { i = x; x = y; y = i; } cout << x << " " << y << endl; } return 0; }
#include <iostream> using namespace std; int main() { int x, y, i; while (cin >> x) { cin >> y; if (x == 0 && y == 0) { break; } if (x > y) { i = x; x = y; y = i; } cout << x << " " << y << endl; } return 0; }
[ "control_flow.branch.if.condition.change" ]
177,182
177,183
u883683427
cpp
p02397
#include <stdio.h> int main(void) { int x, y; while (1) { scanf("%d,%d", &x, &y); if (x == 0 && y == 0) break; if (x < y) printf("%d %d\n", x, y); else printf("%d %d\n", y, x); } return 0; }
#include <stdio.h> int main(void) { int x, y; while (1) { scanf("%d %d", &x, &y); if (x == 0 && y == 0) break; if (x < y) { printf("%d %d\n", x, y); } else { printf("%d %d\n", y, x); } } return 0; }
[ "literal.string.change", "call.arguments.change" ]
177,184
177,185
u444312872
cpp
p02397
#include <algorithm> #include <iostream> #include <vector> int main() { int a = 0; int b = 0; std::vector<int> v(0), w(0); while (true) { ++a; ++b; w.resize(b); v.resize(a); std::cin >> v[a - 1] >> w[b - 1]; if ((v[a - 1] == 0) && (w[b - 1] == 0)) { break; } } for (int i = ...
#include <algorithm> #include <iostream> #include <vector> int main() { int a = 0; int b = 0; std::vector<int> v(0), w(0); while (true) { ++a; ++b; w.resize(b); v.resize(a); std::cin >> v[a - 1] >> w[b - 1]; if ((v[a - 1] == 0) && (w[b - 1] == 0)) { break; } } for (int i = ...
[ "identifier.change", "expression.operation.binary.change" ]
177,186
177,187
u557390427
cpp
p02397
#include <stdio.h> int main(void) { int x = 1, y = 1; while (true) { 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(void) { int x = 1, y = 1; while (true) { 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; }
[ "literal.string.change", "call.arguments.change", "io.output.change", "io.output.newline.add" ]
177,188
177,189
u535246834
cpp
p02397
#include <iostream> using namespace std; int main() { int x, y; while (true) { cin >> x >> y; if (x == 0 && y == 0) { break; } else { if (x > y) { cout << x << ' ' << y << '\n'; } else { cout << y << ' ' << x << '\n'; } } } return 0; }
#include <iostream> using namespace std; int main() { int x, y; while (true) { cin >> x >> y; if (x == 0 && y == 0) { break; } else { if (x > y) { cout << y << ' ' << x << '\n'; } else { cout << x << ' ' << y << '\n'; } } } return 0; }
[ "control_flow.branch.else.add" ]
177,193
177,194
u267897253
cpp
p02397
#include <iostream> using namespace std; int main() { int x, y; int big, small; while (1) { cin >> x >> y; if (x == 0 && y == 0) { break; } else { if (x > y) { big = x; small = y; } else { big = y; small = x; } cout << big << " " << small ...
#include <iostream> using namespace std; int main() { int x, y; int big, small; while (1) { cin >> x >> y; if (x == 0 && y == 0) { break; } else { if (x > y) { big = x; small = y; } else { big = y; small = x; } cout << small << " " << big ...
[ "identifier.change", "io.output.change" ]
177,195
177,196
u098280721
cpp
p02397
#include <stdio.h> int main() { int x, y, z; scanf("%d %d", &x, &y); while (x != 0 && y != 0) { if (x > y) { z = x; x = y; y = z; } printf("%d %d", x, y); scanf("%d %d", &x, &y); } return 0; }
#include <stdio.h> int main() { int x, y, z; scanf("%d %d", &x, &y); while (x != 0 || y != 0) { if (x > y) { z = x; x = y; y = z; } printf("%d %d\n", x, y); scanf("%d %d", &x, &y); } return 0; }
[ "misc.opposites", "control_flow.loop.condition.change", "literal.string.change", "call.arguments.change", "io.output.change", "io.output.newline.add" ]
177,199
177,200
u927359825
cpp
p02397
#include <stdio.h> int main() { int x, y, z; scanf("%d %d", &x, &y); while (x != 0 && y != 0) { if (x > y) { z = x; x = y; y = z; } printf("%d %d\n", x, y); scanf("%d %d", &x, &y); } return 0; }
#include <stdio.h> int main() { int x, y, z; scanf("%d %d", &x, &y); while (x != 0 || y != 0) { if (x > y) { z = x; x = y; y = z; } printf("%d %d\n", x, y); scanf("%d %d", &x, &y); } return 0; }
[ "misc.opposites", "control_flow.loop.condition.change" ]
177,201
177,200
u927359825
cpp
p02397
#include <algorithm> #include <cstdio> #include <iostream> #include <vector> using namespace std; int main() { int x, y; while (true) { cin >> x >> y; if (x == 0) break; if (x > y) swap(x, y); printf("%d %d\n", x, y); } return 0; }
#include <algorithm> #include <cstdio> #include <iostream> #include <vector> using namespace std; int main() { int x, y; while (true) { cin >> x >> y; if (x == 0 && y == 0) break; if (x > y) swap(x, y); printf("%d %d\n", x, y); } return 0; }
[ "control_flow.branch.if.condition.change" ]
177,202
177,203
u540439521
cpp
p02397
#include <iostream> int main(void) { int x, y; std::cin >> x >> y; while (x != 0 && y != 0) { if (x > y) { std::cout << y << " " << x << std::endl; } else { std::cout << x << " " << y << std::endl; } std::cin >> x >> y; } return 0; }
#include <iostream> int main(void) { int x, y; std::cin >> x >> y; while (x != 0 || y != 0) { if (x > y) { std::cout << y << " " << x << std::endl; } else { std::cout << x << " " << y << std::endl; } std::cin >> x >> y; } return 0; }
[ "misc.opposites", "control_flow.loop.condition.change" ]
177,204
177,205
u973694800
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; } if (x > y) { 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; if (x < y) { cout << x << " " << y << endl; } else { cout << y << " " << x << endl; } } return 0; }
[]
177,212
177,213
u210148484
cpp
p02397
#include <algorithm> #include <iostream> using namespace std; int main() { int x, y; 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 <algorithm> #include <iostream> using namespace std; int main() { int x, y; 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; }
[ "control_flow.loop.condition.change", "misc.opposites", "expression.operator.compare.change" ]
177,214
177,215
u103382858
cpp
p02397
#include <iostream> using namespace std; main() { int a, b; do { cin >> a >> b; if (a <= b && b != 0) { cout << a << " " << b << "\n"; } else if (b < a) { cout << b << " " << a << "\n"; } } while (a != 0 && b != 0); }
#include <iostream> using namespace std; main() { int a, b; do { cin >> a >> b; if (a <= b && b != 0) { cout << a << " " << b << "\n"; } else if (b < a) { cout << b << " " << a << "\n"; } } while (a != 0 || b != 0); }
[ "misc.opposites", "control_flow.loop.for.condition.change", "expression.operation.binary.change" ]
177,216
177,217
u000017762
cpp
p02397
#include <iostream> #include <vector> using namespace std; int main() { vector<int> x, y; int i = 0, n, m; while (1) { cin >> n >> m; x.push_back(n); y.push_back(m); if (x[i] == 0 || y[i] == 0) break; i++; } for (i = 0; i < x.size(); i++) { if (x[i] == 0 || y[i] == 0) ...
#include <iostream> #include <vector> using namespace std; int main() { vector<int> x, y; int i = 0, n, m; while (1) { cin >> n >> m; x.push_back(n); y.push_back(m); if (x[i] == 0 && y[i] == 0) break; i++; } for (i = 0; i < x.size(); i++) { if (x[i] == 0 && y[i] == 0) ...
[ "misc.opposites", "control_flow.branch.if.condition.change", "expression.operator.compare.change" ]
177,219
177,220
u013479944
cpp
p02397
#include <iostream> #include <vector> using namespace std; int main() { vector<int> x, y; int i = 0, n, m; while (1) { cin >> n >> m; x.push_back(n); y.push_back(m); if (x[i] == 0 && y[i] == 0) break; i++; } for (i = 0; i < x.size(); i++) { if (x[i] == 0 && y[i] == 0) ...
#include <iostream> #include <vector> using namespace std; int main() { vector<int> x, y; int i = 0, n, m; while (1) { cin >> n >> m; x.push_back(n); y.push_back(m); if (x[i] == 0 && y[i] == 0) break; i++; } for (i = 0; i < x.size(); i++) { if (x[i] == 0 && y[i] == 0) ...
[ "misc.opposites", "expression.operator.compare.change", "control_flow.branch.if.condition.change" ]
177,221
177,220
u013479944
cpp
p02397
#include <stdio.h> int main() { int a, b, temp; while (scanf("%d%d", &a, &b) != EOF && a && b) { temp = 0; if (a > b) { temp = a; a = b; b = temp; } printf("%d %d\n", a, b); } return 0; }
#include <stdio.h> int main() { int a, b, temp; while (scanf("%d%d", &a, &b) != EOF && (a || b)) { temp = 0; if (a > b) { temp = a; a = b; b = temp; } printf("%d %d\n", a, b); } return 0; }
[ "control_flow.loop.condition.change", "misc.opposites" ]
177,222
177,223
u951934992
cpp
p02397
#include <iostream> int main() { int x, y; do { std::cin >> x >> y; if (x != 0 && y != 0) { if (x > y) { std::cout << x << " " << y << std::endl; } else { std::cout << y << " " << x << std::endl; } } } while (x != 0 && y != 0); }
#include <iostream> int main() { int x, y; do { std::cin >> x >> y; if (x != 0 || y != 0) { if (x < y) { std::cout << x << " " << y << std::endl; } else { std::cout << y << " " << x << std::endl; } } } while (x != 0 || y != 0); }
[ "misc.opposites", "control_flow.branch.if.condition.change", "expression.operator.compare.change", "control_flow.loop.for.condition.change", "expression.operation.binary.change" ]
177,224
177,225
u080939948
cpp
p02397
#include <iostream> int main() { int x, y; do { std::cin >> x >> y; if (x != 0 && y != 0) { if (x < y) { std::cout << x << " " << y << std::endl; } else { std::cout << y << " " << x << std::endl; } } } while (x != 0 && y != 0); }
#include <iostream> int main() { int x, y; do { std::cin >> x >> y; if (x != 0 || y != 0) { if (x < y) { std::cout << x << " " << y << std::endl; } else { std::cout << y << " " << x << std::endl; } } } while (x != 0 || y != 0); }
[ "misc.opposites", "control_flow.branch.if.condition.change", "control_flow.loop.for.condition.change", "expression.operation.binary.change" ]
177,226
177,225
u080939948
cpp
p02397
#include <iostream> using namespace std; int main() { int x, y, o; cin >> x >> y; while (x != 0 && y != 0) { if (x > y) { o = x; x = y; y = o; } cout << x << " " << y << endl; cin >> x >> y; } }
#include <iostream> using namespace std; int main() { int x, y, o; cin >> x >> y; while (x != 0 || y != 0) { if (x > y) { o = x; x = y; y = o; } cout << x << " " << y << endl; cin >> x >> y; } }
[ "misc.opposites", "control_flow.loop.condition.change" ]
177,228
177,229
u549180102
cpp
p02397
#include <stdio.h> int main(void) { int x, y; do { scanf("%d %d", &x, &y); if (x != 0 && y != 0) { if (x < y) printf("%d %d\n", x, y); else printf("%d %d\n", y, x); } } while (x != 0 && y != 0); return 0; }
#include <stdio.h> int main(void) { int x, y; do { scanf("%d %d", &x, &y); if (x != 0 || y != 0) { if (x <= y) printf("%d %d\n", x, y); else printf("%d %d\n", y, x); } } while (x != 0 || y != 0); return 0; }
[ "misc.opposites", "control_flow.branch.if.condition.change", "expression.operator.compare.change", "control_flow.loop.for.condition.change", "expression.operation.binary.change" ]
177,230
177,231
u496372029
cpp
p02397
#include <stdio.h> int main(void) { int x, y; do { scanf("%d %d", &x, &y); if (x != 0 && y != 0) { if (x <= y) printf("%d %d\n", x, y); else printf("%d %d\n", y, x); } } while (x != 0 && y != 0); return 0; }
#include <stdio.h> int main(void) { int x, y; do { scanf("%d %d", &x, &y); if (x != 0 || y != 0) { if (x <= y) printf("%d %d\n", x, y); else printf("%d %d\n", y, x); } } while (x != 0 || y != 0); return 0; }
[ "misc.opposites", "control_flow.branch.if.condition.change", "control_flow.loop.for.condition.change", "expression.operation.binary.change" ]
177,233
177,231
u496372029
cpp
p02397
#include <algorithm> #include <cstdio> using namespace std; int main() { // freopen("test.txt", "r", stdin); int a, b; while (~scanf("%d%d", &a, &b) && (a || b)) { swap(a, b); printf("%d %d\n", a, b); } return 0; }
#include <algorithm> #include <cstdio> using namespace std; int main() { // freopen("test.txt", "r", stdin); int a, b; while (~scanf("%d%d", &a, &b) && (a || b)) { if (a > b) swap(a, b); printf("%d %d\n", a, b); } return 0; }
[ "control_flow.branch.if.add" ]
177,234
177,235
u499079739
cpp
p02397
#include <iostream> int main() { int x, y; while (1) { std::cin >> x >> y; if (x == 0 && y == 0) break; if (x > y) { int t = x; x = y; y = t; } std::cout << x << y << std::endl; } }
#include <iostream> int main() { int x, y; while (1) { std::cin >> x >> y; if (x == 0 && y == 0) break; if (x > y) { int t = x; x = y; y = t; } std::cout << x << " " << y << std::endl; } }
[ "expression.operation.binary.add" ]
177,236
177,237
u615080706
cpp
p02397
#include <iostream> int main() { int x, y; while (1) { std::cin >> x >> y; if (x == 0 && y == 0) break; if (x >= y) { int t = x; x = y; y = t; } std::cout << x << y << std::endl; } }
#include <iostream> int main() { int x, y; while (1) { std::cin >> x >> y; if (x == 0 && y == 0) break; if (x > y) { int t = x; x = y; y = t; } std::cout << x << " " << y << std::endl; } }
[ "expression.operator.compare.change", "control_flow.branch.if.condition.change" ]
177,238
177,237
u615080706
cpp
p02397
#include <iostream> using namespace std; int main() { int x, y; cin >> x >> y; while (x && y) { 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 || y) { 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,241
177,242
u078387585
cpp
p02397
#include <iostream> using namespace std; struct numTuple { int _x; int _y; void convert() { if (_x > _y) { int temp = _x; _x = _y; _y = temp; } } void input(int xInput, int yInput) { _x = xInput; _y = yInput; } void printTuple() { cout << _x << ' ' << _y << endl; } };...
#include <iostream> using namespace std; struct numTuple { int _x; int _y; void convert() { if (_x > _y) { int temp = _x; _x = _y; _y = temp; } } void input(int xInput, int yInput) { _x = xInput; _y = yInput; } void printTuple() { cout << _x << ' ' << _y << endl; } };...
[ "control_flow.loop.condition.change", "misc.opposites", "expression.operator.compare.change" ]
177,243
177,244
u838759969
cpp
p02397
#include <stdio.h> int main() { int a, b; scanf("%d %d", &a, &b); while (a != 0 && b != 0) { if (a <= b) { printf("%d %d", a, b); } else { printf("%d %d", b, a); } scanf("%d %d", &a, &b); } return 0; }
#include <stdio.h> int main() { int a, b; scanf("%d %d", &a, &b); while (a != 0 || b != 0) { if (a <= b) { printf("%d %d\n", a, b); } else { printf("%d %d\n", b, a); } scanf("%d %d", &a, &b); } return 0; }
[ "misc.opposites", "control_flow.loop.condition.change", "literal.string.change", "call.arguments.change", "io.output.change", "io.output.newline.add" ]
177,245
177,246
u784626891
cpp
p02397
#include <stdio.h> int main() { int a, b; scanf("%d %d", &a, &b); while (a != 0 && b != 0) { if (a <= b) { printf("%d %d?\n", a, b); } else { printf("%d %d?\n", b, a); } scanf("%d %d", &a, &b); } return 0; }
#include <stdio.h> int main() { int a, b; scanf("%d %d", &a, &b); while (a != 0 || b != 0) { if (a <= b) { printf("%d %d\n", a, b); } else { printf("%d %d\n", b, a); } scanf("%d %d", &a, &b); } return 0; }
[ "misc.opposites", "control_flow.loop.condition.change", "literal.string.change", "call.arguments.change", "io.output.change" ]
177,247
177,246
u784626891
cpp
p02397
#include <stdio.h> int main() { int a, b; scanf("%d %d", &a, &b); while (a != 0 || b != 0) { if (a <= b) { printf("%d %d?\n", a, b); } else { printf("%d %d?\n", b, a); } scanf("%d %d", &a, &b); } return 0; }
#include <stdio.h> int main() { int a, b; scanf("%d %d", &a, &b); while (a != 0 || b != 0) { if (a <= b) { printf("%d %d\n", a, b); } else { printf("%d %d\n", b, a); } scanf("%d %d", &a, &b); } return 0; }
[ "literal.string.change", "call.arguments.change", "io.output.change" ]
177,248
177,246
u784626891
cpp
p02397
#include <iostream> using namespace std; int main() { int x, y, z; while (cin >> x >> y) { if (x == 0 && y == 0) { break; } if (x < y) { z = x, x = y, y = z; } cout << x << " " << y << endl; } return 0; }
#include <iostream> using namespace std; int main() { int x, y, z; while (cin >> x >> y) { if (x == 0 && y == 0) { break; } if (x > y) { z = x; x = y; y = z; } cout << x << " " << y << endl; } return 0; }
[ "misc.opposites", "expression.operator.compare.change", "control_flow.branch.if.condition.change" ]
177,249
177,250
u459663658
cpp
p02397
#include <iostream> using namespace std; int main() { int x, y, z; for (;;) { cin >> x, y; if (x == 0 || y == 0) { break; } else if (x > y) { z = x, x = y, y = z; } cout << x << " " << y << endl; } return 0; }
#include <iostream> using namespace std; int main() { int x, y, z; for (;;) { cin >> x >> y; if (x == 0 && y == 0) { break; } else if (x > y) { z = x, x = y, y = z; } cout << x << " " << y << endl; } return 0; }
[ "misc.opposites", "control_flow.branch.if.condition.change", "literal.string.change", "io.output.change" ]
177,251
177,252
u459663658
cpp
p02397
#include <iostream> using namespace std; int main() { int x, y, z; for (;;) { cin >> x >> y; if (x == 0 || y == 0) { break; } else if (x > y) { z = x, x = y, y = z; } cout << x << " " << y << endl; } return 0; }
#include <iostream> using namespace std; int main() { int x, y, z; for (;;) { cin >> x >> y; if (x == 0 && y == 0) { break; } else if (x > y) { z = x, x = y, y = z; } cout << x << " " << y << endl; } return 0; }
[ "misc.opposites", "control_flow.branch.if.condition.change" ]
177,253
177,252
u459663658
cpp
p02397
#include <iostream> using namespace std; int main() { int x, y, z; for (;;) { cin >> x >> y; if (x == 0 || y == 0) { break; } else if (x > y) { z = x, x = y, y = z; } cout << x << " " << y << endl; } cout << endl; return 0; }
#include <iostream> using namespace std; int main() { int x, y, z; for (;;) { cin >> x >> y; if (x == 0 && y == 0) { break; } else if (x > y) { z = x, x = y, y = z; } cout << x << " " << y << endl; } return 0; }
[ "misc.opposites", "control_flow.branch.if.condition.change" ]
177,254
177,252
u459663658
cpp
p02397
#include <stdio.h> int main(void) { int x, y; while (1) { scanf("%d%d", &x, &y); if (x == 0 && y == 0) break; if (x << y) printf("%d %d\n", x, y); else printf("%d %d\n", y, x); } return (0); }
#include <stdio.h> int main(void) { int x, y; while (1) { scanf("%d%d", &x, &y); if (x == 0 && y == 0) break; if (x <= y) printf("%d %d\n", x, y); else printf("%d %d\n", y, x); } return (0); }
[ "control_flow.branch.if.condition.change" ]
177,257
177,258
u008136405
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 << y << " " << x << endl; } else if (x < y) { 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; if (x >= y) { cout << y << " " << x << endl; } else if (x < y) { cout << x << " " << y << endl; } } return 0; }
[ "expression.operator.compare.change", "control_flow.branch.if.condition.change" ]
177,259
177,260
u649830085
cpp
p02397
#include <stdio.h> int main(void) { int x, a; for (int i = 1;; i++) { scanf("%d%d", &x, &a); if (x == 0) break; else if (x > a) { int n = x; x = a; a = n; } printf("%d %d\n", x, a); } return 0; }
#include <stdio.h> int main(void) { int x, a; for (int i = 1;; i++) { scanf("%d%d", &x, &a); if (a == 0 && x == 0) break; else if (x > a) { int n = x; x = a; a = n; } printf("%d %d\n", x, a); } return 0; }
[ "control_flow.branch.if.condition.change", "control_flow.loop.for.condition.change" ]
177,263
177,264
u338380084
cpp
p02397
#include <iostream> int main() { int x, y; while (true) { std::cin >> x >> y; if (x == 0 && y == 0) { break; } else if (x < y) { std::cout << x << " " << y << "\n"; } else if (y < x) { std::cout << y << " " << x << "\n"; } } return 0; }
#include <iostream> int main() { int x, y; while (true) { std::cin >> x >> y; if (x == 0 && y == 0) { break; } else if (x <= y) { std::cout << x << " " << y << "\n"; } else if (y < x) { std::cout << y << " " << x << "\n"; } } return 0; }
[ "expression.operator.compare.change", "control_flow.branch.if.condition.change" ]
177,268
177,269
u437193897
cpp
p02397
#include <stdio.h> int main() { int x[3100], y[3100]; int i, count, temp = 0; while (i <= 3000) { scanf("%d %d", &x[i], &y[i]); if (x[i] == 0 && y[i] == 0) break; if (x[i] > y[i]) { temp = y[i]; y[i] = x[i]; x[i] = y[i]; } count++; i++; } for (i = 0; i < co...
#include <stdio.h> int main() { int x[3000], y[3000]; int i, count, temp = 0; while (i <= 3000) { scanf("%d %d", &x[i], &y[i]); if (x[i] == 0 && y[i] == 0) break; if (x[i] > y[i]) { temp = y[i]; y[i] = x[i]; x[i] = temp; } count++; i++; } for (i = 0; i < co...
[ "literal.number.change", "variable_declaration.array_dimensions.change", "assignment.value.change" ]
177,270
177,271
u233080611
cpp
p02397
#include <stdio.h> int main() { int a[3000][1], i = 0; do { scanf("%d %d", &a[i][0], &a[i][1]); i++; } while (a[i - 1][0] != 0 && a[i - 1][1] != 0); for (int b = 0; b < i; b++) { if (a[b][0] <= a[b][1]) printf("%d %d\n", a[b][0], a[b][1]); else if (a[b][0] > a[b][1]) printf("%d %d\n"...
#include <stdio.h> int main() { int a[3001][2], i = 0; do { scanf("%d %d", &a[i][0], &a[i][1]); i++; } while (a[i - 1][0] != 0 || a[i - 1][1] != 0); for (int b = 0; b < i - 1; b++) { if (a[b][0] <= a[b][1]) printf("%d %d\n", a[b][0], a[b][1]); else if (a[b][0] > a[b][1]) printf("%d %...
[ "literal.number.change", "variable_declaration.array_dimensions.change", "misc.opposites", "control_flow.loop.for.condition.change", "expression.operation.binary.change", "misc.off_by_one" ]
177,272
177,273
u067559662
cpp
p02397
#include <stdio.h> int main() { int a[3001][2], i = 0; do { scanf("%d %d", &a[i][0], &a[i][1]); i++; } while (a[i - 1][0] != 0 && a[i - 1][1] != 0); for (int b = 0; b < i; b++) { if (a[b][0] <= a[b][1]) printf("%d %d\n", a[b][0], a[b][1]); else if (a[b][0] > a[b][1]) printf("%d %d\n"...
#include <stdio.h> int main() { int a[3001][2], i = 0; do { scanf("%d %d", &a[i][0], &a[i][1]); i++; } while (a[i - 1][0] != 0 || a[i - 1][1] != 0); for (int b = 0; b < i - 1; b++) { if (a[b][0] <= a[b][1]) printf("%d %d\n", a[b][0], a[b][1]); else if (a[b][0] > a[b][1]) printf("%d %...
[ "misc.opposites", "control_flow.loop.for.condition.change", "expression.operation.binary.change", "misc.off_by_one" ]
177,274
177,273
u067559662
cpp
p02397
#include <stdio.h> int main() { int a[3001][2], i = 0; do { scanf("%d %d", &a[i][0], &a[i][1]); i++; } while (a[i - 1][0] != 0 || a[i - 1][1] != 0); for (int b = 0; b < i; b++) { if (a[b][0] <= a[b][1]) printf("%d %d\n", a[b][0], a[b][1]); else if (a[b][0] > a[b][1]) printf("%d %d\n"...
#include <stdio.h> int main() { int a[3001][2], i = 0; do { scanf("%d %d", &a[i][0], &a[i][1]); i++; } while (a[i - 1][0] != 0 || a[i - 1][1] != 0); for (int b = 0; b < i - 1; b++) { if (a[b][0] <= a[b][1]) printf("%d %d\n", a[b][0], a[b][1]); else if (a[b][0] > a[b][1]) printf("%d %...
[ "control_flow.loop.for.condition.change", "misc.off_by_one" ]
177,275
177,273
u067559662
cpp
p02397
#include <stdio.h> int main() { int a[3000][1], i = 0; do { scanf("%d %d", &a[i][0], &a[i][1]); i++; } while (a[i - 1][0] != 0 && a[i - 1][1] != 0); for (int b; b < i; b++) { if (a[b][0] <= a[b][1]) printf("%d %d\n", a[b][0], a[b][1]); else if (a[b][0] > a[b][1]) printf("%d %d\n", a[...
#include <stdio.h> int main() { int a[3000][2], i = 0; do { scanf("%d %d", &a[i][0], &a[i][1]); i++; } while (a[i - 1][0] != 0 || a[i - 1][1] != 0); for (int b = 0; b < i - 1; b++) { if (a[b][0] <= a[b][1]) printf("%d %d\n", a[b][0], a[b][1]); else if (a[b][0] > a[b][1]) printf("%d %...
[ "literal.number.change", "variable_declaration.array_dimensions.change", "misc.opposites", "control_flow.loop.for.condition.change", "expression.operation.binary.change", "control_flow.loop.for.initializer.change", "variable_declaration.value.change", "misc.off_by_one" ]
177,276
177,277
u067559662
cpp
p02397
#include <stdio.h> int main() { int a[3000][1], i = 0; do { scanf("%d %d", &a[i][0], &a[i][1]); i++; } while (a[i - 1][0] != 0 && a[i - 1][1] != 0); for (int b = 0; b < i; b++) { if (a[b][0] <= a[b][1]) printf("%d %d\n", a[b][0], a[b][1]); else if (a[b][0] > a[b][1]) printf("%d %d\n"...
#include <stdio.h> int main() { int a[3000][2], i = 0; do { scanf("%d %d", &a[i][0], &a[i][1]); i++; } while (a[i - 1][0] != 0 || a[i - 1][1] != 0); for (int b = 0; b < i - 1; b++) { if (a[b][0] <= a[b][1]) printf("%d %d\n", a[b][0], a[b][1]); else if (a[b][0] > a[b][1]) printf("%d %...
[ "literal.number.change", "variable_declaration.array_dimensions.change", "misc.opposites", "control_flow.loop.for.condition.change", "expression.operation.binary.change", "misc.off_by_one" ]
177,272
177,277
u067559662
cpp
p02397
#include <stdio.h> int main() { int a[3001][2], i = 0; do { scanf("%d %d", &a[i][0], &a[i][1]); i++; } while (a[i - 1][0] != 0 && a[i - 1][1] != 0); for (int b = 0; b < i; b++) { if (a[b][0] <= a[b][1]) printf("%d %d\n", a[b][0], a[b][1]); else if (a[b][0] > a[b][1]) printf("%d %d\n"...
#include <stdio.h> int main() { int a[3000][2], i = 0; do { scanf("%d %d", &a[i][0], &a[i][1]); i++; } while (a[i - 1][0] != 0 || a[i - 1][1] != 0); for (int b = 0; b < i - 1; b++) { if (a[b][0] <= a[b][1]) printf("%d %d\n", a[b][0], a[b][1]); else if (a[b][0] > a[b][1]) printf("%d %...
[ "literal.number.change", "variable_declaration.array_dimensions.change", "misc.opposites", "control_flow.loop.for.condition.change", "expression.operation.binary.change", "misc.off_by_one" ]
177,274
177,277
u067559662
cpp
p02397
#include <stdio.h> int main() { int a[3001][2], i = 0; do { scanf("%d %d", &a[i][0], &a[i][1]); i++; } while (a[i - 1][0] != 0 || a[i - 1][1] != 0); for (int b = 0; b < i; b++) { if (a[b][0] <= a[b][1]) printf("%d %d\n", a[b][0], a[b][1]); else if (a[b][0] > a[b][1]) printf("%d %d\n"...
#include <stdio.h> int main() { int a[3000][2], i = 0; do { scanf("%d %d", &a[i][0], &a[i][1]); i++; } while (a[i - 1][0] != 0 || a[i - 1][1] != 0); for (int b = 0; b < i - 1; b++) { if (a[b][0] <= a[b][1]) printf("%d %d\n", a[b][0], a[b][1]); else if (a[b][0] > a[b][1]) printf("%d %...
[ "literal.number.change", "variable_declaration.array_dimensions.change", "control_flow.loop.for.condition.change", "misc.off_by_one" ]
177,275
177,277
u067559662
cpp
p02397
#include <stdio.h> int main() { int a, b, c; while (1) { scanf("%d %d", &a, &b); if (a == 0 && b == 0) { break; } else if (a > b) { c = a; a = b; b = c; printf("%d %d", a, b); } else printf("%d %d", a, b); } return 0; }
#include <stdio.h> int main() { int a, b, c; while (1) { scanf("%d %d", &a, &b); if (a == 0 && b == 0) { break; } else if (a > b) { c = a; a = b; b = c; printf("%d %d\n", a, b); } else printf("%d %d\n", a, b); } return 0; }
[ "literal.string.change", "call.arguments.change", "io.output.change", "io.output.newline.add" ]
177,278
177,279
u279808390
cpp
p02397
#include <algorithm> #include <cmath> #include <cstdio> #include <cstring> #include <iostream> #include <map> #include <queue> #include <set> #include <stack> #include <vector> using namespace std; int a, b; int main() { cin >> a >> b; if (!a && !b) return 0; cout << min(a, b) << ' ' << max(a, b) << endl; }
#include <algorithm> #include <cmath> #include <cstdio> #include <cstring> #include <iostream> #include <map> #include <queue> #include <set> #include <stack> #include <vector> using namespace std; int a, b; int main() { while (1) { cin >> a >> b; if (!a && !b) return 0; cout << min(a, b) << ' ' << ...
[]
177,280
177,281
u045619227
cpp
p02397
#include <stdio.h> int main() { int x[3000], y[3000], n, a; n = 0; while (1) { scanf("%d %d", &x[n], &y[n]); if ((x[n] == 0) && (y[n])) break; if (x[n] > y[n]) { a = y[n]; y[n] = x[n]; x[n] = a; } n = n + 1; } n = 0; while (1) { if ((x[n] == 0) && (y[n])) ...
#include <stdio.h> int main() { int x[3000], y[3000], n, a; n = 0; while (1) { scanf("%d %d", &x[n], &y[n]); if ((x[n] == 0) && (y[n] == 0)) break; if (x[n] > y[n]) { a = y[n]; y[n] = x[n]; x[n] = a; } n = n + 1; } n = 0; while (1) { if ((x[n] == 0) && (y[n] =...
[ "control_flow.branch.if.condition.change" ]
177,285
177,286
u306023119
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 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; if (x < y) cout << x << " " << y << endl; else cout << y << " " << x << endl; } }
[]
177,287
177,288
u890344471
cpp
p02397
#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 << " " << b << 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; }
[ "identifier.change", "io.output.change" ]
177,290
177,291
u406950580
cpp
p02397
#define _GRIBCXX_DEBUG #include <algorithm> #include <cctype> #include <climits> #include <cmath> #include <complex> #include <cstdio> #include <cstdlib> #include <cstring> #include <ctime> #include <deque> #include <functional> #include <iostream> #include <list> #include <map> #include <memory> #include <numeric> #in...
#define _GRIBCXX_DEBUG #include <algorithm> #include <cctype> #include <climits> #include <cmath> #include <complex> #include <cstdio> #include <cstdlib> #include <cstring> #include <ctime> #include <deque> #include <functional> #include <iostream> #include <list> #include <map> #include <memory> #include <numeric> #in...
[ "literal.string.change", "call.arguments.change", "io.output.change", "io.output.newline.add" ]
177,294
177,293
u915343634
cpp
p02397
#include <iostream> using namespace std; int main() { int x, y; for (int i = 1;; i++) { cin >> x >> y; if (x > y) swap(x, y); if (x == y == 0) break; cout << x << " " << y << endl; } }
#include <iostream> using namespace std; int main() { int x, y; for (int i = 1;; i++) { cin >> x >> y; if (x > y) swap(x, y); if (x == 0 && y == 0) break; cout << x << " " << y << endl; } }
[ "control_flow.branch.if.condition.change", "control_flow.loop.for.condition.change" ]
177,295
177,296
u091820616
cpp
p02397
#include <algorithm> #include <iostream> using namespace std; 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 <algorithm> #include <iostream> using namespace std; 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,299
177,300
u718118814
cpp
p02397
#include <iostream> using namespace std; void swap(int &x, int &y) { int tmp = x; x = y; y = tmp; } int main() { int x, y; cin >> x >> y; while (x == 0 && y == 0) { if (x > y) swap(x, y); cout << x << " " << y << endl; cin >> x >> y; } return 0; }
#include <iostream> using namespace std; void swap(int &x, int &y) { int tmp = x; x = y; y = tmp; } int main() { int x, y; cin >> x >> y; while (x != 0 || y != 0) { if (x > y) swap(x, y); cout << x << " " << y << endl; cin >> x >> y; } return 0; }
[ "misc.opposites", "expression.operator.compare.change", "control_flow.loop.condition.change" ]
177,307
177,308
u596615608
cpp
p02397
#include <iostream> using namespace std; void swap(int &x, int &y) { int tmp = x; x = y; y = tmp; } int main() { int x, y; cin >> x >> y; while (x == 0 && y == 0) { if (x > y) swap(x, y); cout << x << " " << y << endl; cin >> x >> y; } return 0; }
#include <iostream> using namespace std; void swap(int &x, int &y) { int tmp = x; x = y; y = tmp; } int main() { int x, y; cin >> x >> y; while (!(x == 0 && y == 0)) { if (x > y) swap(x, y); cout << x << " " << y << endl; cin >> x >> y; } return 0; }
[ "control_flow.loop.condition.change" ]
177,307
177,309
u596615608
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; 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 (1) { cin >> x >> y; if (x == 0 && y == 0) break; if (x > y) swap(x, y); cout << x << " " << y << endl; } return 0; }
[ "misc.opposites", "expression.operator.compare.change", "control_flow.branch.if.condition.change" ]
177,310
177,311
u860644742
cpp
p02397
#include <iostream> using namespace std; int main() { int i; int a; int b; for (i = 0; i < 10000; i++) { cin >> a >> b; if (a == 0 && b == 0) break; if (a > b) cout << a << " " << b << "\n"; else cout << b << " " << a << "\n"; } }
#include <iostream> using namespace std; int main() { int i; int a; int b; for (i = 0; i < 10000; i++) { cin >> a >> b; if (a == 0 && b == 0) break; if (a > b) cout << b << " " << a << "\n"; else cout << a << " " << b << "\n"; } }
[ "control_flow.branch.else.remove", "control_flow.branch.else_if.replace.remove", "control_flow.branch.if.replace.add" ]
177,312
177,313
u064835577
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 << y << " " << x << "\n"; } else { cout << x << " " << y << "\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 << y << " " << x << "\n"; } else { cout << x << " " << y << "\n"; } } return 0; }
[]
177,314
177,315
u960548659
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 << y << ' ' << x << "\n"; } else { cout << x << ' ' << y << "\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 << y << " " << x << "\n"; } else { cout << x << " " << y << "\n"; } } return 0; }
[ "literal.string.change", "io.output.change" ]
177,316
177,315
u960548659
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 << "\n"; } else { cout << x << " " << y << "\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 << y << " " << x << "\n"; } else { cout << x << " " << y << "\n"; } } return 0; }
[]
177,318
177,315
u960548659
cpp
p02397
#include <iostream> using namespace std; int main() { int x, y; while (cin >> x >> y, !(x == 0 == y == 0)) { 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, !(x == 0 && y == 0)) { if (x <= y) cout << x << " " << y << endl; else cout << y << " " << x << endl; } return 0; }
[ "control_flow.loop.condition.change" ]
177,321
177,322
u364509382
cpp
p02397
#include <stdio.h> int main() { int a, b, temp; scanf("%d %d", &a, &b); while (a != 0 && b != 0) { if (b < a) { temp = b; b = a; a = temp; } printf("%d %d\n", a, b); scanf("%d %d", &a, &b); } return 0; }
#include <stdio.h> int main() { int a, b, temp; scanf("%d %d", &a, &b); while (a != 0 || b != 0) { if (b < a) { temp = b; b = a; a = temp; } printf("%d %d\n", a, b); scanf("%d %d", &a, &b); } return 0; }
[ "misc.opposites", "control_flow.loop.condition.change" ]
177,325
177,326
u918276501
cpp
p02397
#include <stdio.h> int main(void) { int x, y; while (1) { scanf("%d", &x); scanf("%d", &y); if (x == 0 && y == 0) break; if (x < y) { printf("%d %d\n", x, y); } else { printf("%d %d\n", x, y); } } return 0; }
#include <stdio.h> int main(void) { int x, y; while (1) { scanf("%d", &x); scanf("%d", &y); if (x == 0 && y == 0) break; if (x < y) { printf("%d %d\n", x, y); } else { printf("%d %d\n", y, x); } } return 0; }
[ "call.arguments.change", "call.arguments.add" ]
177,327
177,328
u117098586
cpp
p02397
#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 << b << " " << a << endl; else cout << a << " " << b << endl; } return 0; }
#include <iostream> using namespace std; int main() { int a, b; while (true) { cin >> a >> b; if (a == 0 && b == 0) break; if (a > b) cout << b << " " << a << endl; else cout << a << " " << b << endl; } }
[ "control_flow.loop.condition.change", "misc.opposites", "expression.operator.compare.change", "control_flow.branch.if.condition.change" ]
177,329
177,330
u974788383
cpp
p02397
#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 << b << " " << a << endl; else cout << a << " " << b << 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 << b << " " << a << endl; else cout << a << " " << b << endl; } return 0; }
[ "misc.opposites", "expression.operator.compare.change", "control_flow.branch.if.condition.change" ]
177,329
177,331
u974788383
cpp
p02397
#include <iostream> using namespace std; void swap(int *, int *); int main() { int x, y; while (1) { cin >> x >> y; if (x == 0 && y == 0) break; swap(&x, &y); cout << x << " " << y << endl; } return 0; } void swap(int *a, int *b) { int temp; temp = *b; *b = *a; *a = temp; }
#include <iostream> using namespace std; void swap(int *, int *); int main() { int x, y; while (1) { cin >> x >> y; if (x == 0 && y == 0) break; if (x > y) swap(&x, &y); cout << x << " " << y << endl; } return 0; } void swap(int *a, int *b) { int temp; temp = *b; *b = *...
[ "control_flow.branch.if.add" ]
177,332
177,333
u515426150
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 << y << " " << x; } if (x <= y) { 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; if (x > y) { cout << y << " " << x << endl; } if (x <= y) { cout << x << " " << y << endl; } } return 0; }
[ "io.output.newline.add" ]
177,334
177,335
u269653912
cpp
p02397
#include <iostream> using namespace std; int main() { int x, y, n; while (1) { cin >> x >> y; if (x == 0 && y == 0) { break; } if (x < y) { n = x; x = y; x = n; } cout << x << " " << y << endl; } return 0; }
#include <iostream> using namespace std; int main() { int x, y, n; while (1) { cin >> x >> y; if (x == 0 && y == 0) { break; } if (x > y) { n = x; x = y; y = n; } cout << x << " " << y << endl; } return 0; }
[ "misc.opposites", "expression.operator.compare.change", "control_flow.branch.if.condition.change", "assignment.variable.change", "identifier.change" ]
177,338
177,339
u965211739
cpp
p02397
#include <iostream> using namespace std; int main() { int x, y, n; while (1) { cin >> x >> y; if (x == 0 && y == 0) { break; } if (x < y) { n = x; x = y; y = n; } cout << x << " " << y << endl; } return 0; }
#include <iostream> using namespace std; int main() { int x, y, n; while (1) { cin >> x >> y; if (x == 0 && y == 0) { break; } if (x > y) { n = x; x = y; y = n; } cout << x << " " << y << endl; } return 0; }
[ "misc.opposites", "expression.operator.compare.change", "control_flow.branch.if.condition.change" ]
177,340
177,339
u965211739
cpp
p02397
#include <cstdio> int main() { int a, b; for (int i = 1; i <= 10000; i++) { scanf("%d %d", &a, &b); if (a == 0) { break; } else if (a < b) { printf("%d %d\n", a, b); } else { printf("%d %d\n", b, a); } } }
#include <cstdio> int main() { int a, b; for (int i = 1; i <= 10000; i++) { scanf("%d %d", &a, &b); if (a == 0 && b == 0) { break; } else if (a < b) { printf("%d %d\n", a, b); } else { printf("%d %d\n", b, a); } } }
[ "control_flow.branch.if.condition.change", "control_flow.loop.for.condition.change" ]
177,341
177,342
u329132105
cpp
p02397
#include <cstdio> int main() { for (int i = 0; i < 10000; i++) { int x, y; scanf("%d%d", &x, &y); if (x == 0 && y == 0) { break; } if (x < y) { printf("%d,%d\n", x, y); } else { printf("%d,%d\n", y, x); } } }
#include <cstdio> int main() { for (int i = 0; i < 10000; i++) { int x, y; scanf("%d%d", &x, &y); if (x == 0 && y == 0) { break; } if (x < y) { printf("%d %d\n", x, y); } else { printf("%d %d\n", y, x); } } }
[ "literal.string.change", "call.arguments.change", "io.output.change" ]
177,343
177,344
u332563052
cpp
p02397
#include <cstdio> int main() { for (int i = 0; i <= 10000; i++) { int x, y; scanf("%d%d", &x, &y); //??\??? if (x == 0 && y == 0) { // 0???????????? break; } if (x < y) { printf("%d,%d\n", x, y); } else { printf("%d,%d\n", y, x); } } }
#include <cstdio> int main() { for (int i = 0; i <= 10000; i++) { int x, y; scanf("%d%d", &x, &y); //??\??? if (x == 0 && y == 0) { // 0???????????? break; } if (x < y) { printf("%d %d\n", x, y); } else { printf("%d %d\n", y, x); } } }
[ "literal.string.change", "call.arguments.change", "io.output.change" ]
177,345
177,346
u656034025
cpp
p02397
#include <iostream> using namespace std; int main() { int a, b; scanf("%d %d", &a, &b); while (a != 0 && b != 0) { if (a > b) cout << b << " " << a << endl; else cout << a << " " << b << endl; scanf("%d %d", &a, &b); } }
#include <iostream> using namespace std; int main() { int a, b; scanf("%d %d", &a, &b); while (a != 0 || b != 0) { if (a > b) cout << b << " " << a << endl; else cout << a << " " << b << endl; scanf("%d %d", &a, &b); } }
[ "misc.opposites", "control_flow.loop.condition.change" ]
177,348
177,349
u508732591
cpp
p02397
#include <iostream> using namespace std; int main() { int x, y, z, i; for (i = 0; i < 3001; i++) { cin >> x >> y; if (x == 0 && y == 0) break; if (x > y) { z = x; x = y; x = z; } else { } cout << x << " " << y << '\n'; /* code */ } return 0; }
#include <iostream> using namespace std; int main() { int x, y, z, i; for (i = 0; i < 3001; i++) { cin >> x >> y; if (x == 0 && y == 0) break; if (x > y) { z = x; x = y; y = z; } else { } cout << x << " " << y << '\n'; /* code */ } return 0; }
[ "assignment.variable.change", "identifier.change" ]
177,353
177,354
u530576146
cpp
p02397
#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"; }
#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"; }
[ "expression.operator.compare.change", "control_flow.loop.condition.change", "misc.opposites" ]
177,355
177,356
u557138543
cpp