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
p02394
#include <iostream> using namespace std; int main() { int W, X, x, y, r, w, h, a, b; cin >> W >> X >> x >> y >> r; w = x + r; h = y + r; a = x - r; b = y - r; if (w < W && a >= 0 && h < X && b >= 0) { cout << "Yes" << endl; } else { cout << "No" << endl; } return 0; }
#include <iostream> using namespace std; int main() { int W, X, x, y, r, w, h, a, b; cin >> W >> X >> x >> y >> r; w = x + r; h = y + r; a = x - r; b = y - r; if (w <= W && a >= 0 && h <= X && b >= 0) { cout << "Yes" << endl; } else { cout << "No" << endl; } return 0; }
[ "expression.operator.compare.change", "control_flow.branch.if.condition.change" ]
170,965
170,964
u619552660
cpp
p02394
#include <iostream> using namespace std; int main() { int W, H, x, y, r; cin >> W >> H >> x >> y >> r; if (W >= x + r && H >= y + r && 0 <= x + r && 0 <= y + r) { cout << "Yes" << endl; } else { cout << "No" << endl; } }
#include <iostream> using namespace std; int main() { int W, H, x, y, r; cin >> W >> H >> x >> y >> r; if (W >= x + r && H >= y + r && 0 <= x - r && 0 <= y - r) { cout << "Yes" << endl; } else { cout << "No" << endl; } }
[ "misc.opposites", "expression.operator.arithmetic.change", "control_flow.branch.if.condition.change" ]
170,966
170,967
u529601451
cpp
p02394
#include <cstdio> int main() { int W, H, x, y, r; scanf("%d%d%d%d%d", &W, &H, &x, &y, &r); if (0 < x - r && x + r < W && 0 < y - r && y + r < H) puts("Yes"); else puts("No"); return 0; }
#include <cstdio> int main() { int W, H, x, y, r; scanf("%d%d%d%d%d", &W, &H, &x, &y, &r); if (0 <= x - r && x + r <= W && 0 <= y - r && y + r <= H) puts("Yes"); else puts("No"); return 0; }
[ "expression.operator.compare.change", "control_flow.branch.if.condition.change" ]
170,968
170,969
u809931314
cpp
p02394
#include <iostream> using namespace std; int main() { int W, H, x, y, r; cin >> W >> H >> x >> y >> r; if ((x - r >= 0 && x + r <= W) || (y - r >= 0 && y + r <= H)) { cout << "Yes" << endl; } else { cout << "No" << endl; } return 0; }
#include <iostream> using namespace std; int main() { int W, H, x, y, r; cin >> W >> H >> x >> y >> r; if ((x - r >= 0 && x + r <= W) && (y - r >= 0 && y + r <= H)) { cout << "Yes" << endl; } else { cout << "No" << endl; } return 0; }
[ "misc.opposites", "control_flow.branch.if.condition.change" ]
170,977
170,979
u301911100
cpp
p02394
#include <iostream> using namespace std; int main() { int W, H, x, y, r; cin >> W >> H >> x >> y >> r; if (x > 0 || y > 0) { cout << "No" << endl; return 0; } if (x + r <= W && x - r >= 0 && y + r <= H && y - r >= 0) { cout << "Yes" << endl; return 0; } else { cout << "No" << endl; ...
#include <iostream> using namespace std; int main() { int W, H, x, y, r; cin >> W >> H >> x >> y >> r; if (x < 0 || y < 0) { cout << "No" << endl; return 0; } if (x + r <= W && x - r >= 0 && y + r <= H && y - r >= 0) { cout << "Yes" << endl; return 0; } else { cout << "No" << endl; ...
[ "misc.opposites", "expression.operator.compare.change", "control_flow.branch.if.condition.change" ]
170,985
170,986
u438713646
cpp
p02394
#include <iostream> using namespace std; int main() { int w, h, x, y, r; cin >> w >> h >> x >> y >> r; if (x > r && x < w - r && y > r && y < h - r) { cout << "Yes" << endl; } else { cout << "No" << endl; }; return 0; }
#include <iostream> using namespace std; int main() { int w, h, x, y, r; cin >> w >> h >> x >> y >> r; if (x >= r && x <= w - r && y >= r && y <= h - r) { cout << "Yes" << endl; } else { cout << "No" << endl; }; return 0; }
[ "expression.operator.compare.change", "control_flow.branch.if.condition.change" ]
170,987
170,988
u542568508
cpp
p02394
#include <iostream> using namespace std; int main() { int W, H, x, y, r; cin >> W; cin >> H; cin >> x; cin >> y; cin >> r; if (x - r >= 0 && x + r >= W && y - r >= 0 && y + r >= H) { cout << "Yes" << endl; } else { cout << "No" << endl; } return 0; }
#include <iostream> using namespace std; int main() { int W, H, x, y, r; cin >> W; cin >> H; cin >> x; cin >> y; cin >> r; if (x - r >= 0 && x + r <= W && y - r >= 0 && y + r <= H) { cout << "Yes" << endl; } else { cout << "No" << endl; } return 0; }
[ "misc.opposites", "expression.operator.compare.change", "control_flow.branch.if.condition.change" ]
171,000
171,001
u765942285
cpp
p02394
#include <iostream> using namespace std; int H, W, x, y, r; int main() { string Ans = "No"; cin >> W >> H >> x >> y >> r; if (r <= W && r <= H) { if ((r < x) && (x < W - r)) { if ((r < y) && (y < H - r)) { Ans = "Yes"; } } } cout << Ans << endl; return 0; }
#include <iostream> using namespace std; int H, W, x, y, r; int main() { string Ans = "No"; cin >> W >> H >> x >> y >> r; if (r <= W && r <= H) { if ((r <= x) && (x <= W - r)) { if ((r <= y) && (y <= H - r)) { Ans = "Yes"; } } } cout << Ans << endl; return 0; }
[ "expression.operator.compare.change", "control_flow.branch.if.condition.change" ]
171,002
171,003
u065621025
cpp
p02394
#include <algorithm> #include <iostream> using namespace std; int main() { int W, H, x, y, r; cin >> W >> H >> x >> y >> r; if (x - r > 0 && x + r <= W && y - r > 0 && y + r <= H) { cout << "Yes" << endl; } else { cout << "No" << endl; } return 0; }
#include <algorithm> #include <iostream> using namespace std; int main() { int W, H, x, y, r; cin >> W >> H >> x >> y >> r; if (x - r >= 0 && x + r <= W && y - r >= 0 && y + r <= H) { cout << "Yes" << endl; } else { cout << "No" << endl; } return 0; }
[ "expression.operator.compare.change", "control_flow.branch.if.condition.change" ]
171,011
171,012
u448745430
cpp
p02394
#include <stdio.h> int main() { int W, H, x, y, r; scanf("%d %d %d %d %d", &W, &H, &x, &y, &r); if ((r <= x) && (x <= W - r) && (r <= y) && (y <= H - r)) printf("Yes?\n"); else printf("No?\n"); return 0; }
#include <stdio.h> int main() { int W, H, x, y, r; scanf("%d %d %d %d %d", &W, &H, &x, &y, &r); if ((r <= x) && (x <= W - r) && (r <= y) && (y <= H - r)) printf("Yes\n"); else printf("No\n"); return 0; }
[ "literal.string.change", "call.arguments.change", "io.output.change" ]
171,013
171,014
u059506306
cpp
p02394
#include <iostream> int main() { int H, W, x, y, r; std::cin >> H >> W >> x >> y >> r; if ((x - r) >= 0 && (x + r) <= W && (y - r) >= 0 && (y + r) <= H) std::cout << "Yes" << std::endl; else std::cout << "No" << std::endl; return 0; }
#include <iostream> int main() { int H, W, x, y, r; std::cin >> W >> H >> x >> y >> r; if ((x - r) >= 0 && (x + r) <= W && (y - r) >= 0 && (y + r) <= H) std::cout << "Yes" << std::endl; else std::cout << "No" << std::endl; return 0; }
[ "expression.operation.binary.remove" ]
171,020
171,021
u751303337
cpp
p02394
#include <stdio.h> int main() { int W, H, x, y, r; scanf("%d%d%d%d%d", &W, &H, &x, &y, &r); if (x - r >= 0 && x + r <= W) { if (y - r >= 0 && y + r <= H) { printf("Yes\n"); } else printf("No\n"); } return 0; }
#include <stdio.h> int main() { int W, H, x, y, r; scanf("%d%d%d%d%d", &W, &H, &x, &y, &r); if (x - r >= 0 && x + r <= W && y - r >= 0 && y + r <= H) { printf("Yes\n"); } else { printf("No\n"); } return 0; }
[ "control_flow.branch.if.condition.change" ]
171,022
171,023
u956360123
cpp
p02394
#include <stdio.h> int main() { int W, H, x, y, r; scanf("%d%d%d%d%d", &W, &H, &x, &y, &r); if (x - r >= 0 && x + r <= W) { if (y - r >= 0 && y + r <= H) { printf("Yes\n"); } else { printf("No\n"); } } return 0; }
#include <stdio.h> int main() { int W, H, x, y, r; scanf("%d%d%d%d%d", &W, &H, &x, &y, &r); if (x - r >= 0 && x + r <= W && y - r >= 0 && y + r <= H) { printf("Yes\n"); } else { printf("No\n"); } return 0; }
[ "control_flow.branch.if.condition.change" ]
171,025
171,023
u956360123
cpp
p02394
#include <iostream> using namespace std; int main() { unsigned int W, H, x, y, r = 0; cin >> W >> H >> x >> y >> r; if ((x < r) || (y < r) || (x + r > W) || (y + r > H)) { cout << "No" << endl; } else { cout << "Yes" << endl; } return 0; }
#include <iostream> using namespace std; int main() { int W, H, x, y, r = 0; cin >> W >> H >> x >> y >> r; if ((x < r) || (y < r) || (x + r > W) || (y + r > H)) { cout << "No" << endl; } else { cout << "Yes" << endl; } return 0; }
[ "variable_declaration.type.narrow.change" ]
171,029
171,030
u745259711
cpp
p02396
#include <iostream> using namespace std; int main() { int x, y = 1; while (1) { cin >> x; if (x == 0) break; cout << "Case " << y << ": " << x << endl; } }
#include <iostream> using namespace std; int main() { int x, y = 1; while (1) { cin >> x; if (x == 0) break; cout << "Case " << y << ": " << x << endl; y++; } }
[ "expression.unary.arithmetic.add" ]
173,697
173,698
u229556171
cpp
p02396
#include <iostream> using namespace std; int main() { int i = 1, x; cin >> x; while (x != 0) { cout << "Case" << i << ":" << " " << x << endl; i = i + 1; cin >> x; } return 0; }
#include <iostream> using namespace std; int main() { int i = 1, x; cin >> x; while (x != 0) { cout << "Case" << " " << i << ":" << " " << x << endl; i = i + 1; cin >> x; } return 0; }
[ "io.output.change" ]
173,699
173,700
u693020448
cpp
p02396
#include <cstdio> #include <iostream> using namespace std; int main() { int x; int i = 0; while (true) { cin >> x; if (x == 0) break; cout << "Case " << i << ": " << x << endl; } return 0; }
#include <cstdio> #include <iostream> using namespace std; int main() { int x; int i = 0; while (true) { cin >> x; ++i; if (x == 0) break; cout << "Case " << i << ": " << x << endl; } return 0; }
[ "expression.unary.arithmetic.add" ]
173,707
173,708
u055040191
cpp
p02396
#include <iostream> int main() { int i, x; i = 1; while (true) { std::cin >> x; if (x == 0) break; std::cout << "case " << i << ": " << x << std::endl; i++; } return 0; }
#include <iostream> int main() { int i, x; i = 1; while (true) { std::cin >> x; if (x == 0) break; std::cout << "Case " << i << ": " << x << std::endl; i++; } return 0; }
[ "literal.string.change", "literal.string.case.change", "expression.operation.binary.change" ]
173,709
173,710
u982080464
cpp
p02396
#include <bits/stdc++.h> using namespace std; int main() { int i, x; for (i = 1; i <= 10000; i++) { cin >> x; if (x == 0) { break; } cout << "case " << i << ": " << x << endl; } }
#include <bits/stdc++.h> using namespace std; int main() { int i, x; for (i = 1; i <= 10000; i++) { cin >> x; if (x == 0) { break; } cout << "Case " << i << ": " << x << endl; } }
[ "literal.string.change", "literal.string.case.change", "io.output.change" ]
173,711
173,712
u623511691
cpp
p02396
#include <iostream> using namespace std; int main() { int a; for (int i;; i++) { cin >> a; if (a == 0) break; cout << "Case" << " " << i + 1 << ":" << " " << a << endl; } return 0; }
#include <iostream> using namespace std; int main() { int a; for (int i = 1;; i++) { cin >> a; if (a == 0) break; cout << "Case" << " " << i << ":" << " " << a << endl; } return 0; }
[ "control_flow.loop.for.initializer.change", "variable_declaration.value.change", "expression.operation.binary.remove" ]
173,713
173,714
u335716381
cpp
p02396
#include <iostream> using namespace std; int main() { int a; for (int i;; i++) { cin >> a; if (a == 0) break; cout << "Case" << " " << i << ":" << " " << a << endl; } return 0; }
#include <iostream> using namespace std; int main() { int a; for (int i = 1;; i++) { cin >> a; if (a == 0) break; cout << "Case" << " " << i << ":" << " " << a << endl; } return 0; }
[ "control_flow.loop.for.initializer.change", "variable_declaration.value.change" ]
173,715
173,714
u335716381
cpp
p02396
#include <iostream> using namespace std; int main() { int i = 1, x; while (true) { cin >> x; if (x) break; cout << "Case " << i << ": " << x << endl; ++i; } return 0; }
#include <iostream> using namespace std; int main() { int i = 1, x; while (true) { cin >> x; if (!x) break; cout << "Case " << i << ": " << x << endl; ++i; } return 0; }
[ "expression.operation.unary.add", "control_flow.branch.if.condition.change" ]
173,722
173,723
u186297440
cpp
p02396
#include <iostream> #include <vector> using namespace std; int main(void) { vector<int> array; while (1) { int tmp; cin >> tmp; if (tmp == 0) break; array.push_back(tmp); } for (int i = 0; i < array.size(); i++) { cout << "Case" << i + 1 << ": " << array.at(i) << endl; } return 0;...
#include <iostream> #include <vector> using namespace std; int main(void) { vector<int> array; while (1) { int tmp; cin >> tmp; if (tmp == 0) break; array.push_back(tmp); } for (int i = 0; i < array.size(); i++) { cout << "Case " << i + 1 << ": " << array.at(i) << endl; } return 0...
[ "literal.string.change", "io.output.change" ]
173,726
173,727
u687879635
cpp
p02396
#include <bits/stdc++.h> using namespace std; int main() { for (int i = 0; i < 10000; i++) { int x; cin >> x; if (x == 0) break; else { cout << "Case" << i + 1 << ": " << x << endl; } } }
#include <bits/stdc++.h> using namespace std; int main() { for (int i = 0; i < 10000; i++) { int x; cin >> x; if (x == 0) break; else { cout << "Case " << i + 1 << ": " << x << endl; } } }
[ "literal.string.change", "io.output.change" ]
173,728
173,729
u242089465
cpp
p02396
#include <iostream> using namespace std; int main() { int i = 0, x; while (cin >> x) cout << "Case " << ++i << ": " << x << endl; return 0; }
#include <iostream> using namespace std; int main() { int i = 0, x; while ((cin >> x) && x) cout << "Case " << ++i << ": " << x << endl; return 0; }
[ "control_flow.loop.condition.change" ]
173,730
173,731
u055268055
cpp
p02396
#include <iostream> using namespace std; int main() { int x[10000]; for (int i = 0; i < 10001; i = i + 1) { cin >> x[i]; } for (int i = 0; i < 10001; i = i + 1) { if (x[i] == 0) { i = 10001; break; } else { cout << "Case " << i << ": " << x[i] << endl; } } return 0; }
#include <iostream> using namespace std; int main() { int x[10000]; for (int i = 1; i < 10001; i = i + 1) { cin >> x[i]; } for (int i = 1; i < 10001; i = i + 1) { if (x[i] == 0) { break; } else { cout << "Case " << i << ": " << x[i] << endl; } } return 0; }
[ "literal.number.change", "variable_declaration.value.change", "control_flow.loop.for.initializer.change", "expression.off_by_one" ]
173,732
173,733
u053643559
cpp
p02396
#include <iostream> #include <vector> using namespace std; int main() { int data, count = 0; vector<int> data_vector; while (1) { cin >> data; if (data == 0) break; data_vector.push_back(data); count++; } for (int i = 0; i < count; i++) { cout << "Case " << i + 1 << ":" << data_vect...
#include <iostream> #include <vector> using namespace std; int main() { int data, count = 0; vector<int> data_vector; while (1) { cin >> data; if (data == 0) break; data_vector.push_back(data); count++; } for (int i = 0; i < count; i++) { cout << "Case " << i + 1 << ": " << data_vec...
[ "literal.string.change", "io.output.change" ]
173,739
173,740
u928491417
cpp
p02396
#include <algorithm> #include <iostream> #include <vector> using namespace std; int main() { int x; for (int i = 1; true; i++) { cin >> x; if (x == 0) break; cout << "Case " << i << ": " << x; } return 0; }
#include <algorithm> #include <iostream> #include <vector> using namespace std; int main() { int x; for (int i = 1; true; i++) { cin >> x; if (x == 0) break; cout << "Case " << i << ": " << x << endl; } return 0; }
[ "io.output.newline.add" ]
173,741
173,742
u100875060
cpp
p02396
#include <iostream> using namespace std; // or std::cin et al. int main() { int i, count = 1; while (1) { cin >> i; if (i == 0) { break; } cout << "Case " << count << ": " << i << endl; } return 0; }
#include <iostream> using namespace std; // or std::cin et al. int main() { int i, count = 1; while (1) { cin >> i; if (i == 0) { break; } cout << "Case " << count << ": " << i << endl; count++; } return 0; }
[ "expression.unary.arithmetic.add" ]
173,745
173,746
u606639970
cpp
p02396
#include <iostream> using namespace std; int main() { int a, i = 1; while (cin >> a) { if (a == 0) break; cout << "Case " << i << ":" << a << endl; ++i; } return 0; }
#include <iostream> using namespace std; int main() { int a, i = 1; while (cin >> a) { if (a == 0) break; cout << "Case " << i << ":" << " " << a << endl; ++i; } return 0; }
[ "io.output.change" ]
173,747
173,748
u532333013
cpp
p02396
#include <iostream> using namespace std; int main() { int x; for (int i = 0; i < 10000; ++i) { cin >> x; if (x == 0) break; cout << "Case " << i << ": " << x << endl; } return 0; }
#include <iostream> using namespace std; int main() { int x; for (int i = 0; i < 10000; ++i) { cin >> x; if (x == 0) break; cout << "Case " << i + 1 << ": " << x << endl; } return 0; }
[ "expression.operation.binary.add" ]
173,753
173,754
u882298196
cpp
p02396
#include <iostream> using namespace std; int main(void) { int i = 1; int in; while (1) { cin >> in; if (in == 0) { break; } else { cout << "Case" << " " << i << ":" << " " << in << endl; } } return 0; }
#include <iostream> using namespace std; int main(void) { int i = 1; int in; while (1) { cin >> in; if (in == 0) { break; } else { cout << "Case" << " " << i << ":" << " " << in << endl; i++; } } return 0; }
[ "expression.unary.arithmetic.add" ]
173,757
173,758
u188112283
cpp
p02396
#include <iostream> using namespace std; int main() { int i = 1; int x; cin >> x; while (x) { cout << "Case " << i << ": " << endl; i++; cin >> x; } return 0; }
#include <iostream> using namespace std; int main() { int i = 1; int x; cin >> x; while (x) { cout << "Case " << i << ": " << x << endl; i++; cin >> x; } return 0; }
[ "io.output.change" ]
173,768
173,769
u777425674
cpp
p02396
#include <iostream> using namespace std; int main() { int i = 0; int x; cin >> x; while (x) { cout << "Case " << i << ": " << x << endl; i++; cin >> x; } return 0; }
#include <iostream> using namespace std; int main() { int i = 1; int x; cin >> x; while (x) { cout << "Case " << i << ": " << x << endl; i++; cin >> x; } return 0; }
[ "literal.number.change", "variable_declaration.value.change" ]
173,770
173,769
u777425674
cpp
p02396
#include <bits/stdc++.h> using namespace std; int main() { int x; for (int i = 1; i <= 10001; i++) { cin >> x; if (x == 0) break; cout << "Case" << i << ":" << x << endl; } }
#include <bits/stdc++.h> using namespace std; int main() { int x; for (int i = 1; i <= 10001; i++) { cin >> x; if (x == 0) break; cout << "Case " << i << ": " << x << endl; } }
[ "literal.string.change", "io.output.change" ]
173,771
173,772
u028812761
cpp
p02396
#include <iostream> using namespace std; int main(void) { int x; //繰り返し処理をするときは「 for文 」を使う for (int i = 1; i <= 10000; i++) { cin >> x; if (x != 0) { cout << "Case " << i << ":" << x; } else { break; } } return 0; }
#include <iostream> using namespace std; int main(void) { int x; //繰り返し処理をするときは「 for文 」を使う for (int i = 1; i <= 10000; i++) { cin >> x; if (x != 0) { cout << "Case " << i << ": " << x << endl; } else { break; } } return 0; }
[ "literal.string.change", "io.output.change", "io.output.newline.add" ]
173,773
173,774
u585536969
cpp
p02396
#include <iostream> using namespace std; int main(void) { int x; //繰り返し処理をするときは「 for文 」を使う for (int i = 1; i <= 10000; i++) { cin >> x; if (x != 0) { cout << "Case " << i << ":" << x << endl; } else { break; } } return 0; }
#include <iostream> using namespace std; int main(void) { int x; //繰り返し処理をするときは「 for文 」を使う for (int i = 1; i <= 10000; i++) { cin >> x; if (x != 0) { cout << "Case " << i << ": " << x << endl; } else { break; } } return 0; }
[ "literal.string.change", "io.output.change" ]
173,775
173,774
u585536969
cpp
p02396
#include <iostream> using namespace std; int main() { int x[10000], a, i, j; for (i = 0; i < 10000; ++i) { cin >> x[i]; a = x[i]; if (a == 0) { break; } } for (j = 0; j < i; ++j) { cout << "Case " << j << " " << x[j] << endl; } return 0; }
#include <iostream> using namespace std; int main() { int x[10000], a, i, j; for (i = 0; i < 10000; ++i) { cin >> x[i]; a = x[i]; if (a == 0) { break; } } for (j = 0; j < i; ++j) { cout << "Case " << j + 1 << ": " << x[j] << endl; } return 0; }
[ "literal.string.change", "io.output.change" ]
173,776
173,777
u828994052
cpp
p02396
#include <iostream> using namespace std; int main() { int x[10000], a, i, j; for (i = 0; i < 10000; ++i) { cin >> x[i]; a = x[i]; if (a == 0) { break; } } for (j = 1; j < i + 1; ++j) { cout << "Case " << j << " " << x[j] << endl; } return 0; }
#include <iostream> using namespace std; int main() { int x[10000], a, i, j; for (i = 0; i < 10000; ++i) { cin >> x[i]; a = x[i]; if (a == 0) { break; } } for (j = 0; j < i; ++j) { cout << "Case " << j + 1 << ": " << x[j] << endl; } return 0; }
[ "literal.number.change", "assignment.value.change", "control_flow.loop.for.initializer.change", "expression.off_by_one", "control_flow.loop.for.condition.change", "expression.operation.binary.remove", "literal.string.change", "io.output.change" ]
173,778
173,777
u828994052
cpp
p02396
#include <iostream> using namespace std; int main() { int x[10000], a, i, j; for (i = 0; i < 10000; ++i) { cin >> x[i]; a = x[i]; if (a == 0) { break; } } for (j = 1; j < i + 1; ++j) { cout << "Case " << j << "; " << x[j] << endl; } return 0; }
#include <iostream> using namespace std; int main() { int x[10000], a, i, j; for (i = 0; i < 10000; ++i) { cin >> x[i]; a = x[i]; if (a == 0) { break; } } for (j = 0; j < i; ++j) { cout << "Case " << j + 1 << ": " << x[j] << endl; } return 0; }
[ "literal.number.change", "assignment.value.change", "control_flow.loop.for.initializer.change", "expression.off_by_one", "control_flow.loop.for.condition.change", "expression.operation.binary.remove", "literal.string.change", "io.output.change" ]
173,779
173,777
u828994052
cpp
p02396
#include <iostream> using namespace std; int main() { int x[10000], a, i, j; for (i = 0; i < 10000; ++i) { cin >> x[i]; a = x[i]; if (a == 0) { break; } } for (j = 0; j < i; ++j) { cout << "Case " << j + 1 << "; " << x[j] << endl; } return 0; }
#include <iostream> using namespace std; int main() { int x[10000], a, i, j; for (i = 0; i < 10000; ++i) { cin >> x[i]; a = x[i]; if (a == 0) { break; } } for (j = 0; j < i; ++j) { cout << "Case " << j + 1 << ": " << x[j] << endl; } return 0; }
[ "literal.string.change", "io.output.change" ]
173,780
173,777
u828994052
cpp
p02396
#include <algorithm> #include <cstdio> #include <cstdlib> #include <functional> #include <iomanip> #include <iostream> #include <string> #include <vector> using namespace std; int main() { for (int i = 0; i < 10000; i++) { int x = 0; cin >> x; if (x == 0) break; else cout << "Case " << i ...
#include <algorithm> #include <cstdio> #include <cstdlib> #include <functional> #include <iomanip> #include <iostream> #include <string> #include <vector> using namespace std; int main() { for (int i = 0; i < 10000; i++) { int x = 0; cin >> x; if (x == 0) break; else cout << "Case " << i ...
[ "expression.operation.binary.add" ]
173,781
173,782
u199829264
cpp
p02396
#include <iostream> using namespace std; int main() { int x; cin >> x; int i = 1; while (x != 0) { cout << "Case " << i << ":" << x << endl; i += 1; cin >> x; } return 0; }
#include <iostream> using namespace std; int main() { int x; cin >> x; int i = 1; while (x != 0) { cout << "Case " << i << ": " << x << endl; i += 1; cin >> x; } return 0; }
[ "literal.string.change", "io.output.change" ]
173,791
173,792
u114860785
cpp
p02396
#include <iostream> using namespace std; int main() { int x; for (int i = 1;; i++) { cin >> x; if (x == 0) break; cout << "Case " << i << " " << x << endl; } return 0; }
#include <iostream> using namespace std; int main() { int x; for (int i = 1;; i++) { cin >> x; if (x == 0) break; cout << "Case " << i << ": " << x << endl; } return 0; }
[ "literal.string.change", "io.output.change" ]
173,798
173,799
u224956920
cpp
p02396
#include <iostream> using namespace std; int main() { int number; int i = 1; while (1 < 3) { cin >> number; if (number == 0) { break; } cout << "case " << i << ": " << number << endl; } return 0; }
#include <iostream> using namespace std; int main() { int number; int i = 1; while (1 < 3) { cin >> number; if (number == 0) { break; } cout << "Case " << i << ": " << number << endl; i++; } return 0; }
[ "literal.string.change", "literal.string.case.change", "io.output.change", "expression.unary.arithmetic.add" ]
173,800
173,801
u712985670
cpp
p02396
#include <iostream> using namespace std; int main() { int number; int i = 1; while (1 < 3) { cin >> number; if (number == 0) { break; } cout << "case " << i << ": " << number << endl; i++; } return 0; }
#include <iostream> using namespace std; int main() { int number; int i = 1; while (1 < 3) { cin >> number; if (number == 0) { break; } cout << "Case " << i << ": " << number << endl; i++; } return 0; }
[ "literal.string.change", "literal.string.case.change", "io.output.change" ]
173,802
173,801
u712985670
cpp
p02396
#include <iostream> using namespace std; int main() { int i = 1; while (true) { int a; cin >> a; if (a != 0) { cout << "Cace " << i << ": " << a << endl; i++; } else { break; } } return 0; }
#include <iostream> using namespace std; int main() { int i = 1; while (true) { int a; cin >> a; if (a != 0) { cout << "Case " << i << ": " << a << endl; i++; } else { break; } } return 0; }
[ "literal.string.change", "io.output.change" ]
173,804
173,805
u172466930
cpp
p02396
#include <iostream> using namespace std; int main() { int x; int i = 1; while (1) { cin >> x; if (x == 0) break; cout << "Case" << " " << i << ":" << " " << x << endl; i++; return 0; } return 0; }
#include <iostream> using namespace std; int main() { int x; int i = 1; while (1) { cin >> x; if (x == 0) break; cout << "Case" << " " << i << ":" << " " << x << endl; i++; } return 0; }
[]
173,806
173,807
u776248715
cpp
p02396
#include <iostream> using namespace std; int main() { int x, i = 1; cin >> x; while (true) { cout << "Case" << " " << i << ":" << " " << x << endl; i = i + 1; int x; cin >> x; if (x == 0) break; } return 0; }
#include <iostream> using namespace std; int main() { int x, i = 1; cin >> x; while (true) { cout << "Case" << " " << i << ":" << " " << x << endl; i = i + 1; cin >> x; if (x == 0) break; } return 0; }
[ "variable_declaration.remove" ]
173,820
173,821
u174469610
cpp
p02396
#include <iostream> using namespace std; int main() { int x, i = 1; while (true) { cin >> x; if (x == 0) break; else { cout << "Case" << " " << i << ":" << " " << x << endl; } } return 0; }
#include <iostream> using namespace std; int main() { int x, i = 1; while (true) { cin >> x; if (x == 0) break; else { cout << "Case" << " " << i << ":" << " " << x << endl; i = i + 1; } } return 0; }
[ "assignment.add" ]
173,824
173,825
u174469610
cpp
p02396
#include <iostream> using namespace std; int main() { int cou = 1; int n; while (n != 0) { cin >> n; if (n == 0) break; cout << "Case" << " " << cou << ":" << " " << n << endl; cou++; } return 0; }
#include <iostream> using namespace std; int main() { int cou = 1; int n; while (1) { cin >> n; if (n == 0) break; cout << "Case" << " " << cou << ":" << " " << n << endl; cou++; } return 0; }
[ "identifier.replace.remove", "literal.replace.add", "control_flow.loop.condition.change", "expression.operation.binary.remove" ]
173,828
173,827
u623817109
cpp
p02396
#include <iostream> using namespace std; int main() { int x; int i = 1; while (1) { cin >> x; if (x == 0) break; else cout << "Case" << i << ":" << " " << x << endl; i += 1; } return 0; }
#include <iostream> using namespace std; int main() { int x; int i = 1; while (1) { cin >> x; if (x == 0) break; else cout << "Case" << " " << i << ":" << " " << x << endl; i += 1; } return 0; }
[ "io.output.change" ]
173,841
173,842
u976920433
cpp
p02396
#include <iostream> using namespace std; int main() { int x = 1; int i = 0; for (i = 0; x != 0; i++) { cin >> x; if (x == 0) break; cout << "Case" << " " << i << ":" << " " << x << endl; } return 0; }
#include <iostream> using namespace std; int main() { int x = 1; int i = 1; for (i = 1; x != 0; i++) { cin >> x; if (x == 0) break; cout << "Case" << " " << i << ":" << " " << x << endl; } return 0; }
[ "literal.number.change", "variable_declaration.value.change", "assignment.value.change", "control_flow.loop.for.initializer.change", "expression.off_by_one" ]
173,845
173,844
u983984357
cpp
p02396
#include <iostream> using namespace std; int main() { int i; int x; while (1) { cin >> x; if (x == 0) break; cout << "Case" << " " << i++ << ":" << " " << x << endl; } return 0; }
#include <iostream> using namespace std; int main() { int i = 1; int x; while (1) { cin >> x; if (x == 0) break; cout << "Case" << " " << i++ << ":" << " " << x << endl; } return 0; }
[ "variable_declaration.value.change" ]
173,850
173,851
u429069556
cpp
p02396
#include <iostream> using namespace std; int main() { int n = 0, x; while (1) { cin >> x; if (x == 0) break; n++; cout << "Case" << n << ": " << x << endl; } return 0; }
#include <iostream> using namespace std; int main() { int n = 0, x; while (1) { cin >> x; if (x == 0) break; n++; cout << "Case " << n << ": " << x << endl; } return 0; }
[ "literal.string.change", "io.output.change" ]
173,858
173,859
u605366935
cpp
p02396
#include <stdio.h> using namespace std; int main(void) { // Your code here! int i, x; i = 1; while (1) { scanf("%d", &x); if (x == 0) break; printf("case %d: %d\n", i, x); i++; } }
#include <stdio.h> using namespace std; int main(void) { // Your code here! int i, x; i = 1; while (1) { scanf("%d", &x); if (x == 0) break; printf("Case %d: %d\n", i, x); i++; } }
[ "literal.string.change", "literal.string.case.change", "call.arguments.change", "io.output.change" ]
173,860
173,861
u475949556
cpp
p02396
#include <iostream> using namespace std; int x, i; int main() { i = 0; while (true) { i++; cin >> x; if (x == 0) { break; } cout << "case " << i + 1 << ": " << x << endl; } return 0; }
#include <iostream> using namespace std; int x, i; int main() { i = 0; while (true) { i++; cin >> x; if (x == 0) { break; } cout << "Case " << i << ": " << x << endl; } return 0; }
[ "literal.string.change", "literal.string.case.change", "io.output.change", "expression.operation.binary.remove" ]
173,862
173,863
u424595773
cpp
p02396
#include <iostream> using namespace std; int x, i; int main() { i = 0; while (true) { i++; cin >> x; if (x == 0) { break; } cout << "Case " << i + 1 << ": " << x << endl; } return 0; }
#include <iostream> using namespace std; int x, i; int main() { i = 0; while (true) { i++; cin >> x; if (x == 0) { break; } cout << "Case " << i << ": " << x << endl; } return 0; }
[ "expression.operation.binary.remove" ]
173,864
173,863
u424595773
cpp
p02396
#include <bits/stdc++.h> using namespace std; int main() { vector<int> X; int x; for (;;) { cin >> x; if (x == 0) break; X.push_back(x); } for (int i = 0; i < X.size(); i++) { cout << "Case " << i << ": " << X.at(i) << endl; } }
#include <bits/stdc++.h> using namespace std; int main() { vector<int> X; int x; for (;;) { cin >> x; if (x == 0) break; X.push_back(x); } for (int i = 0; i < X.size(); i++) { cout << "Case " << (i + 1) << ": " << X.at(i) << endl; } }
[]
173,873
173,874
u050848146
cpp
p02396
#include <bits/stdc++.h> using namespace std; int main() { int i, x; cin >> i; for (i = 1; i < 10000; i++) { cin >> x; if (x == 0) break; cout << "Case " << i << ": " << x << endl; } return 0; }
#include <bits/stdc++.h> using namespace std; int main() { int i, x; for (i = 1; i < 100000; i++) { cin >> x; if (x == 0) break; cout << "Case " << i << ": " << x << endl; } return 0; }
[ "literal.number.change", "control_flow.loop.for.condition.change", "expression.operation.binary.change" ]
173,879
173,880
u470301655
cpp
p02396
#include <stdio.h> int main(void) { int x, i; i = 0; while (x != 0) { scanf("%d\n", &x); i++; if (x == 0) { break; } printf("Case %d: %d\n", i, x); } return 0; }
#include <stdio.h> int main(void) { int x, i; i = 0; while (1) { scanf("%d\n", &x); i++; if (x == 0) { break; } printf("Case %d: %d\n", i, x); } return 0; }
[ "identifier.replace.remove", "literal.replace.add", "control_flow.loop.condition.change", "expression.operation.binary.remove" ]
173,885
173,886
u543147617
cpp
p02396
#include <iostream> #include <vector> using namespace std; int main() { int x; int a[10000]; int total = 0; for (int i = 0; i <= 10; i++) { int tmp; cin >> tmp; if (tmp == 0) { break; } a[i] = tmp; total++; } for (int j = 0; j <= total - 1; j++) cout << "Case " << j << ":...
#include <iostream> #include <vector> using namespace std; int main() { int a[10000]; int total = 0; for (int i = 0; i <= 10000; i++) { int tmp; cin >> tmp; // if(tmp < 0 || tmp >= 10000) return -1; if (tmp == 0) { break; } a[i] = tmp; total++; } for (int j = 0; j <=...
[ "variable_declaration.remove", "literal.number.change", "control_flow.loop.for.condition.change", "expression.operation.binary.change" ]
173,887
173,888
u047152630
cpp
p02396
#include <iostream> using namespace std; int main() { int x, i; for (i = 1;; i++) { cin >> x; if (x == 0) { break; } else { cout << "Case" << " " << i << ":" << x << endl; } } return 0; }
#include <iostream> using namespace std; int main() { int x, i; for (i = 1;; i++) { cin >> x; if (x == 0) { break; } else { cout << "Case" << " " << i << ":" << " " << x << endl; } } return 0; }
[ "io.output.change" ]
173,891
173,892
u185911390
cpp
p02396
#include <cstdio> int main(void) { int count = 0; while (true) { int a = 0; scanf("%d", &a); if (a == 0) { break; } count++; printf("Case %d: %d", count, a); } return 0; }
#include <cstdio> int main(void) { int count = 0; while (true) { int a = 0; scanf("%d", &a); if (a == 0) { break; } count++; printf("Case %d: %d\n", count, a); } return 0; }
[ "literal.string.change", "call.arguments.change", "io.output.change", "io.output.newline.add" ]
173,893
173,894
u644493027
cpp
p02396
#include <iostream> int main() { int x, i = 0; while (1) { std::cin >> x; if (x == 0) { break; } i += 1; std::cout << "Case" << " " << i << ":" << x << std::endl; } return 0; }
#include <iostream> int main() { int x, i = 0; while (1) { std::cin >> x; if (x == 0) { break; } i += 1; std::cout << "Case" << " " << i << ":" << " " << x << std::endl; } return 0; }
[ "expression.operation.binary.add" ]
173,897
173,898
u814824348
cpp
p02396
#include <stdio.h> int main() { int x; for (int i = 1;; i++) { scanf("%d", &x); if (x == 0) return 0; printf("Case %d: %d", i, x); } }
#include <stdio.h> int main() { int x; for (int i = 1;; i++) { scanf("%d", &x); if (x == 0) return 0; printf("Case %d: %d\n", i, x); } }
[ "literal.string.change", "call.arguments.change", "io.output.change", "io.output.newline.add" ]
173,905
173,904
u994696641
cpp
p02396
#include <iostream> using namespace std; int main(void) { int i = 1, x; while (1) { cin >> x; if (x == 0) break; cout << "Case " << i << ": " << x; i++; } return 0; }
#include <iostream> using namespace std; int main(void) { int i = 1, x; while (1) { cin >> x; if (x == 0) break; cout << "Case " << i << ": " << x << endl; i++; } return 0; }
[ "io.output.newline.add" ]
173,913
173,914
u946954946
cpp
p02396
#include <bits/stdc++.h> using namespace std; int main() { int a, b; for (a = 0; a < 10000; a++) { cin >> b; if (b == 0) break; else { cout << "Case " << a << " " << b << endl; } } return 0; }
#include <bits/stdc++.h> using namespace std; int main() { int a, b; for (a = 0; a < 10000; a++) { cin >> b; if (b == 0) break; else { cout << "Case " << a + 1 << ": " << b << endl; } } return 0; }
[ "literal.string.change", "io.output.change" ]
173,915
173,916
u005471710
cpp
p02396
#include <bits/stdc++.h> using namespace std; int main() { int a, b; for (a = 0; a < 10000; a++) { cin >> b; if (b == 0) break; else { cout << "Case " << a << ": " << b << endl; } } return 0; }
#include <bits/stdc++.h> using namespace std; int main() { int a, b; for (a = 0; a < 10000; a++) { cin >> b; if (b == 0) break; else { cout << "Case " << a + 1 << ": " << b << endl; } } return 0; }
[ "expression.operation.binary.add" ]
173,917
173,916
u005471710
cpp
p02396
#include <stdio.h> using namespace std; int main(void) { int x, i; i = 0; while (1) { scanf("%d", &x); if (x == 0) break; i = i + 1; printf("Case %d:%d\n", i, x); } }
#include <stdio.h> using namespace std; int main(void) { int x, i; i = 0; while (1) { scanf("%d", &x); if (x == 0) break; i = i + 1; printf("Case %d: %d\n", i, x); } }
[ "literal.string.change", "call.arguments.change", "io.output.change" ]
173,918
173,919
u467178918
cpp
p02396
#include <iostream> using namespace std; int main() { for (int i = 1;; i++) { int x; cin >> x; if (x == 0) break; cout << "Case" << " " << i << ":" << x << endl; } return 0; }
#include <iostream> using namespace std; int main() { for (int i = 1;; i++) { int x; cin >> x; if (x == 0) break; cout << "Case" << " " << i << ":" << " " << x << endl; } return 0; }
[ "io.output.change" ]
173,924
173,925
u573665385
cpp
p02396
#include <bits/stdc++.h> using namespace std; int main() { int x, i = 1; while (1) { cin >> x; if (x == 0) break; cout << "Case " << i << ":" << x << endl; i++; } }
#include <bits/stdc++.h> using namespace std; int main() { int x, i = 1; while (1) { cin >> x; if (x == 0) break; cout << "Case " << i << ": " << x << endl; i++; } }
[ "literal.string.change", "io.output.change" ]
173,926
173,927
u707669604
cpp
p02396
#include <algorithm> #include <cstdlib> #include <iostream> #include <list> #include <queue> #include <stack> #include <string> #include <vector> typedef long long ll; using namespace std; int main() { int s[10000]; for (int i = 0; i < 10000; i++) { cin >> s[i]; if (s[i] == 0) break; } for (int ...
#include <algorithm> #include <cstdlib> #include <iostream> #include <list> #include <queue> #include <stack> #include <string> #include <vector> typedef long long ll; using namespace std; int main() { int s[10000]; for (int i = 0; i < 10000; i++) { cin >> s[i]; if (s[i] == 0) break; } for (int ...
[ "literal.number.change", "variable_declaration.value.change", "control_flow.loop.for.initializer.change", "expression.off_by_one" ]
173,928
173,929
u553771371
cpp
p02396
#include <array> #include <cstdio> #include <iostream> using namespace std; int main(int argc, char *argv[]) { int i, j = 1; while (i != 0) { cin >> i; if (i == 0) break; cout << "Case " << j << ": " << i << endl; j++; } return 0; }
#include <array> #include <cstdio> #include <iostream> using namespace std; int main(int argc, char *argv[]) { int i, j = 1; for (;;) { cin >> i; if (i == 0) break; cout << "Case " << j << ": " << i << endl; j++; } return 0; }
[ "control_flow.loop.condition.change" ]
173,932
173,933
u478446516
cpp
p02396
#include <iostream> using namespace std; int main() { int i = 1, x; while (1) { cin >> x; if (x == 0) break; cout << "Case " << i << ": " << x; i++; } }
#include <iostream> using namespace std; int main() { int i = 1, x; while (1) { cin >> x; if (x == 0) break; cout << "Case " << i << ": " << x << endl; i++; } }
[ "io.output.newline.add" ]
173,934
173,935
u017200929
cpp
p02396
#include <iostream> using namespace std; #define START 1 #define INIT 0 #define TRUE 1 int main() { int iCounter = START; int x = INIT; while (TRUE) { cin >> x; if (x == INIT) { break; } else { cout << "Case" << iCounter << ":" << x << endl; iCounter++; } } }
#include <iostream> using namespace std; #define START 1 #define INIT 0 #define TRUE 1 int main() { int iCounter = START; int x = INIT; while (TRUE) { cin >> x; if (x == INIT) { break; } else { cout << "Case " << iCounter << ": " << x << endl; iCounter++; } } }
[ "literal.string.change", "io.output.change" ]
173,936
173,937
u357670033
cpp
p02396
#include <iostream> using namespace std; #define START 1 #define INIT 0 #define TRUE 1 int main() { int iCounter = START; int x = INIT; while (TRUE) { cin >> x; if (x == INIT) { break; } else { cout << "Case " << iCounter << ":" << x << endl; iCounter++; } } }
#include <iostream> using namespace std; #define START 1 #define INIT 0 #define TRUE 1 int main() { int iCounter = START; int x = INIT; while (TRUE) { cin >> x; if (x == INIT) { break; } else { cout << "Case " << iCounter << ": " << x << endl; iCounter++; } } }
[ "literal.string.change", "io.output.change" ]
173,938
173,937
u357670033
cpp
p02396
#include <iostream> using namespace std; int main() { int i = 1, x; while (cin >> x, x) { cout << "Case " << i++ << ":" << x << endl; } return 0; }
#include <iostream> using namespace std; int main() { int i = 1, x; while (cin >> x, x) { cout << "Case " << i++ << ": " << x << endl; } return 0; }
[ "literal.string.change", "io.output.change" ]
173,939
173,940
u585391547
cpp
p02396
#include <iostream> using namespace std; int main() { int x; int y; y = 0; while (true) { cin >> x; if (x == 0) { break; }; cout << "Case " << y << ": " << x << endl; y = y + 1; }; return 0; }
#include <iostream> using namespace std; int main() { int x; int y; y = 1; while (true) { cin >> x; if (x == 0) { break; }; cout << "Case " << y << ": " << x << endl; y = y + 1; }; return 0; }
[ "literal.number.change", "assignment.value.change" ]
173,944
173,945
u876038795
cpp
p02396
#include <iostream> using namespace std; int main() { int x, y = 1; while (cin >> x) { cout << "Case " << y << ": " << x << endl; y++; } return 0; }
#include <iostream> using namespace std; int main() { int x, y = 1; while (cin >> x, x) { cout << "Case " << y << ": " << x << endl; y++; } return 0; }
[ "control_flow.loop.condition.change" ]
173,946
173,947
u081244858
cpp
p02396
#include <iostream> using namespace std; int main() { int i; for (i = 0; 0; i++) { int x; cin >> x; if (x == 0) break; cout << "Case " << i << ": " << x << "\n"; } return 0; }
#include <iostream> using namespace std; int main() { int i; for (i = 1;; i++) { int x; cin >> x; if (x == 0) break; cout << "Case " << i << ": " << x << "\n"; } return 0; }
[ "literal.number.change", "assignment.value.change", "control_flow.loop.for.initializer.change", "expression.off_by_one" ]
173,948
173,949
u145082279
cpp
p02396
#include <iostream> using namespace std; int main() { int i; for (i = 0; 0; i++) { int x; cin >> x; if (x == 0) break; cout << "Case " << i << ": " << x; cout << "\n"; } return 0; }
#include <iostream> using namespace std; int main() { int i; for (i = 1;; i++) { int x; cin >> x; if (x == 0) break; cout << "Case " << i << ": " << x << "\n"; } return 0; }
[ "literal.number.change", "assignment.value.change", "control_flow.loop.for.initializer.change", "expression.off_by_one" ]
173,951
173,949
u145082279
cpp
p02396
#include <stdio.h> int main() { int c = 0; while (true) { int n; scanf("%d", &n); if (0 == n) break; ++c; printf("Case %d: %d", c, n); } return 0; }
#include <stdio.h> int main() { int c = 0; while (true) { int n; scanf("%d", &n); if (0 == n) break; ++c; printf("Case %d: %d\n", c, n); } return 0; }
[ "literal.string.change", "call.arguments.change", "io.output.change", "io.output.newline.add" ]
173,954
173,955
u701536962
cpp
p02396
#include <cstdio> using namespace std; int main(void) { int i = 1; int x; while (1) { scanf("%d", &x); if (x == 0) break; printf("Case %d: %d", i, x); i++; } return 0; }
#include <cstdio> using namespace std; int main(void) { int i = 1; int x; while (1) { scanf("%d", &x); if (x == 0) break; printf("Case %d: %d\n", i, x); i++; } return 0; }
[ "literal.string.change", "call.arguments.change", "io.output.change", "io.output.newline.add" ]
173,956
173,957
u974611510
cpp
p02396
#include <iostream> using namespace std; int main() { int i = 0; int x; while (1) { cin >> x; if (x == 0) break; i++; cout << "case " << i + 1 << ": " << x << endl; } // while(1); return 0; }
#include <iostream> using namespace std; int main() { int i = 0; int x; while (1) { cin >> x; if (x == 0) break; i++; cout << "Case " << i << ": " << x << endl; } // while(1); return 0; }
[ "literal.string.change", "literal.string.case.change", "io.output.change", "expression.operation.binary.remove" ]
173,958
173,959
u940742903
cpp
p02396
#include <iostream> #include <vector> int input() { int val; std::cin >> val; return val; } int main() { std::vector<int> x; while (true) { int val = input(); if (val == 0) break; x.push_back(val); } for (int i = 0; i < x.size(); ++i) std::cout << "Case " << i + 1 << ":" << x[i] ...
#include <iostream> #include <vector> int input() { int val; std::cin >> val; return val; } int main() { std::vector<int> x; while (true) { int val = input(); if (val == 0) break; x.push_back(val); } for (int i = 0; i < x.size(); ++i) std::cout << "Case " << i + 1 << ": " << x[i]...
[ "literal.string.change", "expression.operation.binary.change" ]
173,962
173,963
u151928415
cpp
p02396
#include <iostream> int i = 0, x = 1; int main() { for (; x != 0; i++) { std::cin >> x; if (x != 0) { std::cout << "Case " << i << ": " << x << std::endl; } } }
#include <iostream> int i = 1, x = 1; int main() { for (; x != 0; i++) { std::cin >> x; if (x != 0) { std::cout << "Case " << i << ": " << x << std::endl; } } }
[ "literal.number.change", "variable_declaration.value.change" ]
173,965
173,966
u156586727
cpp
p02396
#include <iostream> using namespace std; int main() { int x; cin >> x; for (int i = 1; x; cin >> x) { cout << "Case " << i << ": " << x << endl; } return 0; }
#include <iostream> using namespace std; int main() { int x; cin >> x; for (int i = 1; x; cin >> x, i++) { cout << "Case " << i << ": " << x << endl; } return 0; }
[ "control_flow.loop.for.update.change" ]
173,969
173,970
u376883550
cpp
p02396
#include <iostream> using namespace std; int main() { int x; cin >> x; for (int i = 1; x != 0; ++i) { cout << "Case " << i << ':' << x << endl; cin >> x; } return 0; }
#include <iostream> using namespace std; int main() { int x; cin >> x; for (int i = 1; x != 0; ++i) { cout << "Case " << i << ": " << x << endl; cin >> x; } return 0; }
[]
173,973
173,974
u294593214
cpp
p02396
#include <iostream> using namespace std; int main() { int n, count = 0; while (1) { cin >> n; if (n == 0) break; ++count; cout << "case " << count << ": " << n << endl; } return 0; }
#include <iostream> using namespace std; int main() { int n, count = 0; while (1) { cin >> n; if (n == 0) break; ++count; cout << "Case " << count << ": " << n << endl; } return 0; }
[ "literal.string.change", "literal.string.case.change", "io.output.change" ]
173,975
173,976
u802606388
cpp
p02396
#include <algorithm> #include <cmath> #include <complex> #include <iomanip> #include <iostream> #include <map> #include <queue> #include <sstream> #include <stack> #include <string> #include <vector> using namespace std; #define ll long long #define vvi vector<vector<int>> #define vi vector<int> #define All(X) X.begin...
#include <algorithm> #include <cmath> #include <complex> #include <iomanip> #include <iostream> #include <map> #include <queue> #include <sstream> #include <stack> #include <string> #include <vector> using namespace std; #define ll long long #define vvi vector<vector<int>> #define vi vector<int> #define All(X) X.begin...
[ "literal.string.change", "io.output.change" ]
173,977
173,978
u220216937
cpp
p02396
#include <iostream> using namespace std; int main() { int x, i = 1; while (cin >> x) { if (x = 0) { break; } else { cout << "Case " << i << ':' << x << endl; i++; } } return 0; }
#include <iostream> using namespace std; int main() { int x, i = 1; while (cin >> x) { if (x == 0) { break; } else { cout << "Case " << i << ": " << x << endl; i++; } } return 0; }
[ "expression.operation.compare.replace.add", "assignment.replace.remove", "misc.typo" ]
173,979
173,980
u936401118
cpp
p02396
#include <iostream> using namespace std; int main() { int x, i = 1; while (cin >> x) { if (x == 0) { break; } else { cout << "Case " << i << ':' << x << endl; i++; } } return 0; }
#include <iostream> using namespace std; int main() { int x, i = 1; while (cin >> x) { if (x == 0) { break; } else { cout << "Case " << i << ": " << x << endl; i++; } } return 0; }
[]
173,981
173,980
u936401118
cpp
p02396
#include <cstdio> int main() { int x; int n = 1; while (1) { scanf("%d", &x); if (x == 0) break; printf("Case %d: %d", n, x); n = n++; } return 0; }
#include <cstdio> int main() { int x; int n = 1; while (1) { scanf("%d", &x); if (x == 0) break; printf("Case %d: %d\n", n, x); n++; } return 0; }
[ "literal.string.change", "call.arguments.change", "io.output.change", "io.output.newline.add", "assignment.change" ]
173,991
173,992
u806178009
cpp
p02396
#include <cstdio> int main() { int x; int n = 1; while (1) { scanf("%d", &x); if (x == 0) break; printf("Case %d: %d", n, x); n++; } return 0; }
#include <cstdio> int main() { int x; int n = 1; while (1) { scanf("%d", &x); if (x == 0) break; printf("Case %d: %d\n", n, x); n++; } return 0; }
[ "literal.string.change", "call.arguments.change", "io.output.change", "io.output.newline.add" ]
173,993
173,992
u806178009
cpp
p02396
#include <iostream> using namespace std; int main() { int a, count, count1; for (count = 0;; count++) { cin >> a; if (a == 0) { break; } cout << "case " << count + 1 << ": " << a << endl; } return 0; }
#include <iostream> using namespace std; int main() { int a, count; for (count = 0;; count++) { cin >> a; if (a == 0) { break; } cout << "Case " << count + 1 << ": " << a << endl; } return 0; }
[ "variable_declaration.remove", "literal.string.change", "literal.string.case.change", "io.output.change" ]
173,994
173,995
u256874901
cpp
p02396
#include <stdio.h> int main() { int i; int a; for (i = 0; 1; i++) { scanf("%d", &a); if (a == 0) { break; } printf("Case %d: %d\n", i, a); } return 0; }
#include <stdio.h> int main() { int i, a; for (i = 1; 1; i++) { scanf("%d", &a); if (a == 0) { break; } printf("Case %d: %d\n", i, a); } return 0; }
[ "literal.number.change", "assignment.value.change", "control_flow.loop.for.initializer.change", "expression.off_by_one" ]
173,996
173,997
u336766887
cpp
p02396
#include <stdio.h> int main() { int a; for (int i = 1;; i++) { scanf("%d", &a); if (a == 0) break; printf("Case %d: %d", i, a); } return 0; }
#include <stdio.h> int main() { int a; for (int i = 1;; i++) { scanf("%d", &a); if (a == 0) break; printf("Case %d: %d\n", i, a); } return 0; }
[ "literal.string.change", "call.arguments.change", "io.output.change", "io.output.newline.add" ]
173,999
174,000
u972730157
cpp
p02396
#include <iostream> using namespace std; int a[100000] = {0}; int main() { int i = 0, n; while (1) { cin >> n; if (!n) break; a[i++] = n; } for (int j = 0; a[j] != 0; j++) { cout << "Case " << j << ":" << " " << a[j] << endl; } return 0; }
#include <iostream> using namespace std; int a[100000] = {0}; int main() { int i = 0, n; while (1) { cin >> n; if (!n) break; a[i++] = n; } for (int j = 0; a[j] != 0; j++) { cout << "Case " << j + 1 << ":" << " " << a[j] << endl; } return 0; }
[ "expression.operation.binary.add" ]
174,004
174,005
u822202919
cpp
p02396
#include <iostream> using namespace std; int main() { int x, cnt = 0; while (cin >> x && x) { cout << "Case " << cnt++ << ": " << x << endl; } return 0; }
#include <iostream> using namespace std; int main() { int x, cnt = 1; while (cin >> x && x) { cout << "Case " << cnt++ << ": " << x << endl; } return 0; }
[ "literal.number.change", "variable_declaration.value.change" ]
174,006
174,007
u822202919
cpp