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 |
|---|---|---|---|---|---|---|---|
p02396 | #include <stdio.h>
int main(void) {
int i, j, x;
int a[10000];
for (i = 1;; i++) {
scanf("%d", &x);
if (x == 0) {
break;
}
a[i] = x;
}
for (j = 1; j < i + 1; j++) {
printf("Case %d: %d\n", a[j], x);
}
return 0;
}
| #include <stdio.h>
int main(void) {
int i, j, x;
int a[10000];
for (i = 1;; i++) {
scanf("%d", &x);
if (x == 0) {
break;
}
a[i] = x;
}
for (j = 1; j < i; j++) {
printf("Case %d: %d\n", j, a[j]);
}
return 0;
}
| [
"control_flow.loop.for.condition.change",
"expression.operation.binary.remove",
"call.arguments.add",
"call.arguments.change"
] | 175,170 | 175,169 | u949566118 | cpp |
p02396 | #include <iostream>
using namespace std;
int main(void) {
int x, i = 0;
while (++i) {
cin >> x;
if (x == 0) {
break;
}
cout << "Case " << i << ":" << x << endl;
}
}
| #include <iostream>
using namespace std;
int main(void) {
int x, i = 0;
while (++i) {
cin >> x;
if (x == 0) {
break;
}
cout << "Case " << i << ": " << x << endl;
}
}
| [
"literal.string.change",
"io.output.change"
] | 175,171 | 175,172 | u355269727 | cpp |
p02396 | #include <iostream>
#include <vector>
int main() {
std::vector<int> inputs;
inputs.reserve(10000);
int val;
while (std::cin >> val) {
inputs.push_back(val);
}
for (int i = 0; i < inputs.size(); i++) {
std::cout << "Case " << i + 1 << ": " << inputs.at(i) << std::endl;
}
return 0;
}
| #include <iostream>
#include <vector>
int main() {
std::vector<int> inputs;
inputs.reserve(10000);
int val;
while (std::cin >> val && val) {
inputs.push_back(val);
}
for (int i = 0; i < inputs.size(); i++) {
std::cout << "Case " << i + 1 << ": " << inputs.at(i) << std::endl;
}
return 0;
}
| [
"control_flow.loop.condition.change"
] | 175,174 | 175,175 | u191088660 | cpp |
p02396 | #include <iostream>
using namespace std;
int main() {
int count = 1;
int p;
while (1) {
cin >> p;
if (cin.fail()) {
break;
}
cout << "Case " << count << ": " << p << endl;
count++;
}
return 0;
}
| #include <iostream>
using namespace std;
int main() {
int count = 1;
int p;
while (1) {
cin >> p;
if (p == 0) {
break;
}
cout << "Case " << count << ": " << p << endl;
count++;
}
return 0;
}
| [
"call.arguments.change"
] | 175,176 | 175,177 | u261541966 | cpp |
p02396 | #include <iostream>
using namespace std;
int main() {
int w, h, x, y = 1, r;
while (true) {
cin >> x;
if (x == 0)
break;
cout << "Case " << y << ": " << x;
y++;
}
// cout << endl;
}
| #include <iostream>
using namespace std;
int main() {
int w, h, x, y = 1, r;
while (true) {
cin >> x;
if (x == 0)
break;
cout << "Case " << y << ": " << x << endl;
y++;
}
// cout << endl;
}
| [
"io.output.newline.add"
] | 175,178 | 175,179 | u721602113 | cpp |
p02396 | #include <algorithm>
#include <iostream>
using namespace std;
int main() {
int a;
int i = 0;
cin >> a;
while (a) {
cout << "Case " << i << ": " << a << endl;
++i;
cin >> a;
}
}
| #include <algorithm>
#include <iostream>
using namespace std;
int main() {
int a;
int i = 1;
cin >> a;
while (a) {
cout << "Case " << i << ": " << a << endl;
++i;
cin >> a;
}
}
| [
"literal.number.change",
"variable_declaration.value.change"
] | 175,189 | 175,190 | u115352705 | cpp |
p02396 | #include <bits/stdc++.h>
int main() {
int n;
for (int i = 1;; i++) {
scanf("%d", &n);
if (n)
printf("Case %d: %d", i, n);
else
break;
}
}
| #include <bits/stdc++.h>
int main() {
int n;
for (int i = 1;; i++) {
scanf("%d", &n);
if (n != 0)
printf("Case %d: %d\n", i, n);
else
break;
}
}
| [
"control_flow.branch.if.condition.change",
"control_flow.loop.for.condition.change",
"literal.string.change",
"call.arguments.change",
"io.output.change",
"io.output.newline.add"
] | 175,191 | 175,192 | u664421124 | cpp |
p02396 | #include <bits/stdc++.h>
int main() {
int n;
for (int i = 1; i < 10000; i++) {
scanf("%d", &n);
if (n != 0)
printf("Case %d: %d", i, n);
else
break;
}
}
| #include <bits/stdc++.h>
int main() {
int n;
for (int i = 1;; i++) {
scanf("%d", &n);
if (n != 0)
printf("Case %d: %d\n", i, n);
else
break;
}
}
| [
"control_flow.loop.for.condition.change",
"expression.operation.binary.remove",
"literal.string.change",
"call.arguments.change",
"io.output.change",
"io.output.newline.add"
] | 175,193 | 175,192 | u664421124 | cpp |
p02396 | #include <iostream>
using namespace std;
int main() {
int t = 0;
for (int x = 1; x <= 10000; x++) {
cin >> t;
if (t == 0) {
break;
} else {
cout << "Case " << x << " :" << t << endl;
}
}
}
| #include <iostream>
using namespace std;
int main() {
int t = 0;
for (int x = 1; x <= 10000; x++) {
cin >> t;
if (t == 0) {
break;
} else {
cout << "Case " << x << ": " << t << endl;
}
}
}
| [
"literal.string.change",
"io.output.change"
] | 175,197 | 175,196 | u764658094 | cpp |
p02396 | #include <cstdio>
int main() {
int n;
int i = 0;
while (scanf("%d", &n) && n != 0) {
i++;
printf("Case%d:%d\n", i, n);
}
return 0;
}
| #include <cstdio>
int main() {
int n;
int i = 0;
while (scanf("%d", &n) && n != 0) {
i++;
printf("Case %d: %d\n", i, n);
}
return 0;
}
| [
"literal.string.change",
"call.arguments.change",
"io.output.change"
] | 175,198 | 175,199 | u032207327 | cpp |
p02396 | #include <cstdio>
int main() {
int n;
int i = 0;
while (scanf("%d", &n) && n != 0) {
i++;
printf("Case%d: %d\n", i, n);
}
return 0;
}
| #include <cstdio>
int main() {
int n;
int i = 0;
while (scanf("%d", &n) && n != 0) {
i++;
printf("Case %d: %d\n", i, n);
}
return 0;
}
| [
"literal.string.change",
"call.arguments.change",
"io.output.change"
] | 175,201 | 175,199 | u032207327 | cpp |
p02396 | #include <iomanip>
#include <iostream>
#include <string>
#include <vector>
using namespace std;
int main() {
int x;
for (int i = 1; 1; i++) {
cin >> x;
if (x == 0)
break;
cout << "Case"
<< " " << i << ":" << x << endl;
}
}
| #include <iomanip>
#include <iostream>
#include <string>
#include <vector>
using namespace std;
int main() {
int x;
for (int i = 1; 1; i++) {
cin >> x;
if (x == 0)
break;
cout << "Case"
<< " " << i << ":"
<< " " << x << endl;
}
}
| [
"io.output.change"
] | 175,218 | 175,219 | u412537960 | cpp |
p02396 | #include <stdio.h>
int main() {
int i, j, a[10000];
for (i = 1; i < 10000; i++) {
scanf("%d", &a[i]);
if (a[i] == 0) {
break;
}
}
for (j = 1; j < i + 1; j++) {
printf("Case %d: %d\n", j, a[j]);
if (a[j] == 0) {
break;
}
}
return 0;
}
| #include <stdio.h>
int main() {
int i, j, a[10000];
for (i = 1; i <= 10000; i++) {
scanf("%d", &a[i]);
if (a[i] == 0) {
break;
}
}
for (j = 1; j < i; j++) {
printf("Case %d: %d\n", j, a[j]);
if (a[j] == 0) {
break;
}
}
return 0;
}
| [
"expression.operator.compare.change",
"control_flow.loop.for.condition.change",
"expression.off_by_one",
"expression.operation.binary.change",
"expression.operation.binary.remove"
] | 175,220 | 175,221 | u638857613 | cpp |
p02396 | #include <iostream>
using namespace std;
int main() {
int a = 0, i = 0;
cin >> a;
while (a != 0) {
cout << "Case " << i++ << ": " << a << endl;
cin >> a;
}
return 0;
}
| #include <iostream>
using namespace std;
int main() {
int a = 0, i = 1;
cin >> a;
while (a != 0) {
cout << "Case " << i++ << ": " << a << endl;
cin >> a;
}
return 0;
}
| [
"literal.number.change",
"variable_declaration.value.change"
] | 175,224 | 175,225 | u485741946 | cpp |
p02396 | #include <iostream>
using namespace std;
#define MAX_DATA_NUM 10000
int main() {
int dataNum = 0, inValue[MAX_DATA_NUM] = {0}, i = 0;
for (i = 0; i < MAX_DATA_NUM; i++) {
cin >> inValue[i];
if (0 == inValue[i]) {
break;
}
}
dataNum = i;
for (i = 0; i < dataNum; i++) {
cout << "Cas... | #include <iostream>
using namespace std;
#define MAX_DATA_NUM 10001 // Contain last zero
int main() {
int dataNum = 0, inValue[MAX_DATA_NUM] = {0}, i = 0;
for (i = 0; i < MAX_DATA_NUM; i++) {
cin >> inValue[i];
if (0 == inValue[i]) {
break;
}
}
dataNum = i;
for (i = 0; i < dataNum; i+... | [
"preprocessor.define.value.change",
"literal.integer.change"
] | 175,226 | 175,227 | u380982951 | cpp |
p02396 | #include <iostream>
#include <vector>
using namespace std;
int main() {
int temp = 1;
vector<int> list;
// 0になるまで読み込む
while (true) {
cin >> temp;
if (temp == 0) {
break;
}
list.push_back(temp);
}
//配列内の全ての要素をプリントする
for (int i = 0; i < list.size(); i++) {
cout << "Case " << i ... | #include <iostream>
#include <vector>
using namespace std;
int main() {
int temp = 1;
vector<int> list;
// 0になるまで読み込む
while (true) {
cin >> temp;
if (temp == 0) {
break;
}
list.push_back(temp);
}
//配列内の全ての要素をプリントする
for (int i = 0; i < list.size(); i++) {
cout << "Case " << i ... | [
"expression.operation.binary.add"
] | 175,229 | 175,230 | u286813209 | cpp |
p02396 | #include <iostream>
using namespace std;
int main() {
int x;
for (int i = 0; i < 1000; i++) {
cin >> x;
if (x == 0) {
return 0;
} else {
cout << "Case " << i << ":" << x << endl;
}
}
}
| #include <iostream>
using namespace std;
int main() {
int x;
for (int i = 1; i < 10001; i++) {
cin >> x;
if (x == 0) {
return 0;
} else {
cout << "Case " << i << ": " << x << endl;
}
}
}
| [
"literal.number.change",
"variable_declaration.value.change",
"control_flow.loop.for.initializer.change",
"expression.off_by_one",
"control_flow.loop.for.condition.change",
"expression.operation.binary.change",
"literal.string.change",
"io.output.change"
] | 175,232 | 175,233 | u473234292 | cpp |
p02396 | #include <iostream>
void output_each_case() {
int x;
for (int i = 0; i < 10000; i++) {
std::cin >> x;
if (x == 0)
break;
std::cout << "Case " << i << ": " << x << std::endl;
}
}
int main() {
output_each_case();
return 0;
}
| #include <iostream>
void output_each_case() {
int x;
for (int i = 1; i <= 10000; i++) {
std::cin >> x;
if (x == 0)
break;
std::cout << "Case " << i << ": " << x << std::endl;
}
}
int main() {
output_each_case();
return 0;
}
| [
"literal.number.change",
"variable_declaration.value.change",
"control_flow.loop.for.initializer.change",
"expression.off_by_one",
"expression.operator.compare.change",
"control_flow.loop.for.condition.change",
"expression.operation.binary.change"
] | 175,238 | 175,239 | u662488567 | cpp |
p02396 | #include <bits/stdc++.h>
using namespace std;
int main() {
int i = 1, x;
while (1) {
cin >> x;
if (x == 0)
break;
cout << "case " << i << ": " << x << endl;
x = 0;
i++;
}
return 0;
}
| #include <bits/stdc++.h>
using namespace std;
int main() {
int i = 1, x;
while (1) {
cin >> x;
if (x == 0)
break;
cout << "Case " << i << ": " << x << endl;
x = 0;
i++;
}
return 0;
}
| [
"literal.string.change",
"literal.string.case.change",
"io.output.change"
] | 175,240 | 175,241 | u575569688 | cpp |
p02396 | #include <iostream>
using namespace std;
int main() {
int n = 1;
int x;
while (1) {
cin >> x;
if (x == 0)
break;
cout << "Case " << n << ": " << x << endl;
}
return 0;
}
| #include <iostream>
using namespace std;
int main() {
int n = 1;
int x;
while (1) {
cin >> x;
if (x == 0)
break;
cout << "Case " << n << ": " << x << endl;
n++;
}
return 0;
}
| [
"expression.unary.arithmetic.add"
] | 175,244 | 175,245 | u512700093 | cpp |
p02396 | #include <bits/stdc++.h>
using namespace std;
int main() {
int x;
for (int i = 1;; 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++) {
cin >> x;
if (x == 0)
break;
cout << "Case " << i << ": " << x << endl;
}
return 0;
}
| [
"literal.string.change",
"literal.string.case.change",
"io.output.change",
"control_flow.return.add",
"control_flow.return.0.add"
] | 175,246 | 175,247 | u851121794 | cpp |
p02396 | #include <bits/stdc++.h>
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 <bits/stdc++.h>
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",
"literal.string.case.change",
"io.output.change"
] | 175,248 | 175,247 | u851121794 | cpp |
p02396 | #include <bits/stdc++.h>
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 <bits/stdc++.h>
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;
}
| [
"io.output.change"
] | 175,253 | 175,254 | u861893636 | cpp |
p02396 | #include <bits/stdc++.h>
using namespace std;
int main() {
int loop = 0, tmp;
int x[10000];
while (true) {
cin >> tmp;
if (tmp == 0) {
break;
} else {
x[loop] = tmp;
loop++;
}
}
for (int i = 0; i < loop; i++) {
cout << "Case " << i << ": " << x[i] << "\n";
}
return 0... | #include <bits/stdc++.h>
using namespace std;
int main() {
int loop = 0, tmp;
int x[10000];
while (true) {
cin >> tmp;
if (tmp == 0) {
break;
} else {
x[loop] = tmp;
loop++;
}
}
for (int i = 0; i < loop; i++) {
cout << "Case " << i + 1 << ": " << x[i] << "\n";
}
retu... | [
"expression.operation.binary.add"
] | 175,257 | 175,256 | u803657704 | cpp |
p02396 | #include <bits/stdc++.h>
using namespace std;
int main() {
int loop = 0, tmp;
int x[10000];
while (true) {
cin >> tmp;
if (tmp == 0) {
break;
} else {
x[loop] = tmp;
loop++;
}
}
for (int i = 0; i < loop; i++) {
cout << "Case " << i - 1 << ": " << x[i] << "\n";
}
retu... | #include <bits/stdc++.h>
using namespace std;
int main() {
int loop = 0, tmp;
int x[10000];
while (true) {
cin >> tmp;
if (tmp == 0) {
break;
} else {
x[loop] = tmp;
loop++;
}
}
for (int i = 0; i < loop; i++) {
cout << "Case " << i + 1 << ": " << x[i] << "\n";
}
retu... | [
"misc.opposites",
"expression.operator.arithmetic.change",
"io.output.change"
] | 175,260 | 175,256 | u803657704 | cpp |
p02396 | #include <bits/stdc++.h>
using namespace std;
int main() {
int x[100];
int i = 0;
while (true) {
cin >> x[i];
if (x[i] == 0) {
break;
}
i++;
}
for (int j = 0; j < i; ++j) {
cout << "Case " << 1 + j << ": " << x[i] << endl;
}
return 0;
}
| #include <bits/stdc++.h>
using namespace std;
int main() {
int x[10000];
int i = 0;
while (true) {
cin >> x[i];
if (x[i] == 0) {
break;
}
++i;
}
for (int j = 0; j < i; ++j) {
cout << "Case " << 1 + j << ": " << x[j] << endl;
}
return 0;
}
| [
"literal.number.change",
"variable_declaration.array_dimensions.change",
"identifier.change",
"variable_access.subscript.index.change",
"io.output.change"
] | 175,261 | 175,262 | u634420505 | cpp |
p02396 | #include <stdio.h>
int main() {
int i = 0, x;
while (1) {
scanf("%d", &x);
if (x == 0)
break;
++i;
printf("Case 1: %d", x);
}
return 0;
}
| #include <stdio.h>
int main() {
int i = 0, x;
while (1) {
scanf("%d", &x);
if (x == 0)
break;
++i;
printf("Case %d: %d\n", i, x);
}
return 0;
}
| [
"literal.string.change",
"call.arguments.change",
"io.output.change",
"io.output.newline.add",
"call.arguments.add"
] | 175,264 | 175,265 | u634420505 | cpp |
p02396 | #include <stdio.h>
int main() {
int i = 0, x;
while (1) {
scanf("%d", &x);
if (x == 0)
break;
++i;
printf("Case 1: %d\n", x);
}
return 0;
}
| #include <stdio.h>
int main() {
int i = 0, x;
while (1) {
scanf("%d", &x);
if (x == 0)
break;
++i;
printf("Case %d: %d\n", i, x);
}
return 0;
}
| [
"literal.string.change",
"call.arguments.change",
"io.output.change",
"call.arguments.add"
] | 175,266 | 175,265 | u634420505 | cpp |
p02396 | #include <bits/stdc++.h>
using namespace std;
int main() {
int i;
for (i = 0;; i++) {
int x;
cin >> x;
if (x == 0) {
break;
};
cout << "Case " << i << "; " << x << endl;
}
return 0;
}
| #include <bits/stdc++.h>
using namespace std;
int main() {
int i;
for (i = 1;; i++) {
int x;
cin >> x;
if (x == 0) {
break;
}
cout << "Case " << i << ": " << x << endl;
}
return 0;
}
| [
"literal.number.change",
"assignment.value.change",
"control_flow.loop.for.initializer.change",
"expression.off_by_one",
"literal.string.change",
"io.output.change"
] | 175,267 | 175,268 | u608725998 | cpp |
p02396 | #include <bits/stdc++.h>
using namespace std;
int main() {
int i;
for (i = 0;; i++) {
int x;
cin >> x;
if (x == 0) {
break;
}
cout << "Case " << i << "; " << x << endl;
}
return 0;
}
| #include <bits/stdc++.h>
using namespace std;
int main() {
int i;
for (i = 1;; i++) {
int x;
cin >> x;
if (x == 0) {
break;
}
cout << "Case " << i << ": " << x << endl;
}
return 0;
}
| [
"literal.number.change",
"assignment.value.change",
"control_flow.loop.for.initializer.change",
"expression.off_by_one",
"literal.string.change",
"io.output.change"
] | 175,270 | 175,268 | u608725998 | cpp |
p02396 | #include <bits/stdc++.h>
using namespace std;
int main() {
int i;
for (i = 0;; i++) {
int x;
cin >> x;
if (x == 0) {
break;
} else {
cout << "Case " << i << "; " << x << endl;
}
}
return 0;
}
| #include <bits/stdc++.h>
using namespace std;
int main() {
int i;
for (i = 1;; i++) {
int x;
cin >> x;
if (x == 0) {
break;
}
cout << "Case " << i << ": " << x << endl;
}
return 0;
}
| [
"literal.number.change",
"assignment.value.change",
"control_flow.loop.for.initializer.change",
"expression.off_by_one",
"literal.string.change",
"io.output.change"
] | 175,272 | 175,268 | u608725998 | cpp |
p02396 | #include <iostream>
using namespace std;
int main() {
int a[10000];
int x = 0;
int y;
for (int i = 0; x != 1; i++) {
cin >> a[i];
y = i;
if (a[i] == 0) {
x = 1;
}
}
for (int i = 0; i != y; i++) {
cout << "Case " << i + 1 << ":" << a[i] << endl;
}
return 0;
}
| #include <iostream>
using namespace std;
int main() {
int a[10000];
int x = 0;
int y;
for (int i = 0; x != 1; i++) {
cin >> a[i];
y = i;
if (a[i] == 0) {
x = 1;
}
}
for (int i = 0; i != y; i++) {
cout << "Case " << i + 1 << ": " << a[i] << endl;
}
return 0;
}
| [
"literal.string.change",
"io.output.change"
] | 175,274 | 175,275 | u588205477 | cpp |
p02396 | #include <bits/stdc++.h>
using namespace std;
int main() {
int x, i;
for (i = 1;; i++) {
cin >> x;
if (x == 0)
break;
}
cout << "Case " << i << ": " << x;
}
| #include <bits/stdc++.h>
using namespace std;
int main() {
int x, i;
for (i = 1;; i++) {
cin >> x;
if (x == 0)
break;
cout << "Case " << i << ": " << x << endl;
}
}
| [
"io.output.newline.add"
] | 175,276 | 175,277 | u326536767 | cpp |
p02396 | #include <bits/stdc++.h>
using namespace std;
int main() {
int x, i;
for (i = 1;; i++) {
cin >> x;
if (x == 0)
break;
cout << "Case " << i << ": " << x;
}
}
| #include <bits/stdc++.h>
using namespace std;
int main() {
int x, i;
for (i = 1;; i++) {
cin >> x;
if (x == 0)
break;
cout << "Case " << i << ": " << x << endl;
}
}
| [
"io.output.newline.add"
] | 175,278 | 175,277 | u326536767 | cpp |
p02396 | #include <bits/stdc++.h>
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 <bits/stdc++.h>
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;
}
| [
"literal.string.change",
"io.output.change"
] | 175,279 | 175,280 | u117673497 | 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;
}
| [
"literal.string.change",
"io.output.change"
] | 175,282 | 175,283 | u704184522 | cpp |
p02396 | #include <bits/stdc++.h>
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 <bits/stdc++.h>
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;
}
| [
"literal.string.change",
"io.output.change"
] | 175,286 | 175,287 | u692127517 | cpp |
p02396 | #include <bits/stdc++.h>
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 <bits/stdc++.h>
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;
}
| [
"literal.string.change",
"io.output.change"
] | 175,288 | 175,287 | u692127517 | cpp |
p02396 | #include <bits/stdc++.h>
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 <bits/stdc++.h>
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;
}
| [
"literal.string.change",
"io.output.change"
] | 175,291 | 175,287 | u692127517 | cpp |
p02396 | #include <bits/stdc++.h>
using namespace std;
int main() {
for (int i = 0;; i++) {
int x;
cin >> x;
if (x == 0)
break;
cout << "Case " << i << ":" << x << endl;
}
return 0;
}
| #include <bits/stdc++.h>
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;
}
| [
"literal.number.change",
"variable_declaration.value.change",
"control_flow.loop.for.initializer.change",
"expression.off_by_one",
"literal.string.change",
"io.output.change"
] | 175,292 | 175,293 | u865454672 | cpp |
p02396 | #include <bits/stdc++.h>
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 <bits/stdc++.h>
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;
}
| [
"literal.string.change",
"io.output.change"
] | 175,294 | 175,293 | u865454672 | 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;
}
| [
"literal.string.change",
"io.output.change"
] | 175,295 | 175,296 | u661973509 | cpp |
p02396 | #include <iostream>
using namespace std;
int main() {
int i, x;
while (1) {
cin >> x;
if (x == 0)
break;
else
cout << "Case " << i << ": " << x << endl;
i++;
}
return 0;
}
| #include <iostream>
using namespace std;
int main() {
int i = 1, x;
while (1) {
cin >> x;
if (x == 0)
break;
else
cout << "Case " << i << ": " << x << endl;
i++;
}
return 0;
}
| [
"variable_declaration.value.change"
] | 175,299 | 175,300 | u107706910 | cpp |
p02396 | #include <cstdio>
int main() {
int a, i;
while (1) {
scanf("%d", &a);
if (a == 0)
break;
else
printf("Case %d: %d\n", i++, a);
}
}
| #include <cstdio>
int main() {
int a;
int i = 1;
while (1) {
scanf("%d", &a);
if (a == 0)
break;
printf("Case %d: %d\n", i++, a);
}
}
| [
"variable_declaration.value.change",
"control_flow.branch.else.remove"
] | 175,301 | 175,302 | u240617877 | cpp |
p02396 | #include <cstdio>
int main() {
int a, i;
while (1) {
scanf("%d", &a);
if (a == 0)
break;
printf("Case %d: %d\n", i++, a);
}
}
| #include <cstdio>
int main() {
int a;
int i = 1;
while (1) {
scanf("%d", &a);
if (a == 0)
break;
printf("Case %d: %d\n", i++, a);
}
}
| [
"variable_declaration.remove",
"variable_declaration.add"
] | 175,303 | 175,302 | u240617877 | cpp |
p02396 | #include <iostream>
using namespace std;
int main() {
// your code goes here
int i = 1;
int value;
while (1) {
cin >> value;
if (value == 0) {
break;
} else {
cout << "case " << i << ": " << value << endl;
++i;
}
}
return 0;
}
| #include <iostream>
using namespace std;
int main() {
int i = 1;
int value;
while (1) {
cin >> value;
if (value == 0)
break;
cout << "Case " << i << ": " << value << endl;
++i;
}
return 0;
}
| [
"literal.string.change",
"literal.string.case.change",
"io.output.change"
] | 175,311 | 175,312 | u413067180 | cpp |
p02396 | #include <iostream>
int main() {
int x, i;
while (1) {
std::cin >> x;
if (x == 0)
break;
i++;
std::cout << "case " << i << ": " << x << std::endl;
}
return 0;
}
| #include <iostream>
int main() {
int x;
int i = 0;
while (1) {
std::cin >> x;
if (x == 0)
break;
i++;
std::cout << "Case " << i << ": " << x << std::endl;
}
return 0;
}
| [
"variable_declaration.value.change",
"literal.string.change",
"literal.string.case.change",
"expression.operation.binary.change"
] | 175,317 | 175,318 | u108274813 | cpp |
p02396 | #include <iostream>
int main() {
int x, i;
while (1) {
std::cin >> x;
if (x == 0)
break;
i++;
std::cout << "Case " << i << ":" << x << std::endl;
}
return 0;
}
| #include <iostream>
int main() {
int x;
int i = 0;
while (1) {
std::cin >> x;
if (x == 0)
break;
i++;
std::cout << "Case " << i << ": " << x << std::endl;
}
return 0;
}
| [
"variable_declaration.value.change",
"literal.string.change",
"expression.operation.binary.change"
] | 175,319 | 175,318 | u108274813 | cpp |
p02396 | #include <iostream>
int main() {
int x;
int i = 0;
while (i < 0) {
std::cin >> x;
if (x == 0)
break;
i++;
std::cout << "Case " << i << ":" << x << std::endl;
}
return 0;
}
| #include <iostream>
int main() {
int x;
int i = 0;
while (1) {
std::cin >> x;
if (x == 0)
break;
i++;
std::cout << "Case " << i << ": " << x << std::endl;
}
return 0;
}
| [
"identifier.replace.remove",
"literal.replace.add",
"control_flow.loop.condition.change",
"expression.operation.binary.remove",
"literal.string.change",
"expression.operation.binary.change"
] | 175,321 | 175,318 | u108274813 | cpp |
p02396 | #include <iostream>
int main() {
int x;
int i = 0;
while (i < 0) {
std::cin >> x;
if (x == 0)
break;
i++;
std::cout << "Case " << i << ": " << x << std::endl;
}
return 0;
}
| #include <iostream>
int main() {
int x;
int i = 0;
while (1) {
std::cin >> x;
if (x == 0)
break;
i++;
std::cout << "Case " << i << ": " << x << std::endl;
}
return 0;
}
| [
"identifier.replace.remove",
"literal.replace.add",
"control_flow.loop.condition.change",
"expression.operation.binary.remove"
] | 175,324 | 175,318 | u108274813 | cpp |
p02396 | #include <bits/stdc++.h>
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 <bits/stdc++.h>
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;
}
| [
"literal.string.change",
"io.output.change"
] | 175,335 | 175,336 | u418388379 | cpp |
p02396 | #include <bits/stdc++.h>
using namespace std;
int main() {
for (int i = 1;; i++) {
int x;
cin >> x;
if (x == 0)
break;
cout << "Case " << i << ":" << endl;
}
return 0;
}
| #include <bits/stdc++.h>
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;
}
| [
"literal.string.change",
"io.output.change"
] | 175,345 | 175,336 | u418388379 | cpp |
p02396 | #include <bits/stdc++.h>
using namespace std;
int main() {
for (int i = 1;; i++) {
int x;
cin >> x;
if (x == 0)
break;
cout << "Case " << i << ": " << endl;
}
return 0;
}
| #include <bits/stdc++.h>
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"
] | 175,346 | 175,336 | u418388379 | cpp |
p02396 | #include <stdio.h>
int main() {
int i = 1;
int x;
while (1) {
scanf("%d", &x);
if (x) {
printf("Case %d: %d", i, x);
i++;
} else {
break;
}
}
return 0;
}
| #include <stdio.h>
int main() {
int i = 1;
int x;
while (1) {
scanf("%d", &x);
if (x) {
printf("Case %d: %d\n", i, x);
i++;
} else {
break;
}
}
return 0;
}
| [
"literal.string.change",
"call.arguments.change",
"io.output.change",
"io.output.newline.add"
] | 175,352 | 175,353 | u227526936 | cpp |
p02396 | #include <iostream>
using namespace std;
int main() {
int a, x;
for (a = 1; a < 1001; a++) {
cin >> x;
if (x == 0)
break;
cout << "case " << a << ": " << x << endl;
}
}
| #include <iostream>
using namespace std;
int main() {
int a, x;
for (a = 1; a < 10001; a++) {
cin >> x;
if (x == 0)
break;
cout << "Case " << a << ": " << x << endl;
}
}
| [
"literal.number.change",
"control_flow.loop.for.condition.change",
"expression.operation.binary.change",
"literal.string.change",
"literal.string.case.change",
"io.output.change"
] | 175,356 | 175,357 | u214286047 | cpp |
p02396 | #include <iostream>
using namespace std;
int main() {
int a, x;
for (a = 1; a < 10001; a++) {
cin >> x;
if (x == 0)
break;
cout << "case " << a << ": " << x << endl;
}
}
| #include <iostream>
using namespace std;
int main() {
int a, x;
for (a = 1; a < 10001; a++) {
cin >> x;
if (x == 0)
break;
cout << "Case " << a << ": " << x << endl;
}
}
| [
"literal.string.change",
"literal.string.case.change",
"io.output.change"
] | 175,358 | 175,357 | u214286047 | cpp |
p02396 | #include <iostream>
using namespace std;
int main() {
int i = 1, x;
while (true) {
cin >> x;
if (x == 0)
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 == 0)
break;
cout << "Case " << i << ": " << x << endl;
i++;
}
return 0;
}
| [
"literal.string.change",
"literal.string.case.change",
"io.output.change"
] | 175,361 | 175,362 | u943770092 | cpp |
p02396 | #include <cstdio>
int main(void) {
int a;
int count = 1;
scanf("%d", &a);
while (a != 0) {
printf("Case %d: %d\n", count, a);
scanf("%d", &a);
}
return 0;
}
| #include <cstdio>
int main(void) {
int a;
int count = 1;
scanf("%d", &a);
while (a != 0) {
printf("Case %d: %d\n", count, a);
scanf("%d", &a);
count++;
}
return 0;
}
| [
"expression.unary.arithmetic.add"
] | 175,366 | 175,367 | u199259534 | cpp |
p02396 | // itp1_topic3_b
#include <bits/stdc++.h>
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;
}
| // itp1_topic3_b
#include <bits/stdc++.h>
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;
}
| [
"literal.string.change",
"io.output.change"
] | 175,368 | 175,369 | u429164038 | cpp |
p02396 | #include <bits/stdc++.h>
using namespace std;
int main() {
int i;
for (i = 1;; i = i + 1) {
int x;
cin >> x;
if (x == 0) {
break;
} else {
cout << "case " << i << ": " << x << endl;
}
}
}
| #include <bits/stdc++.h>
using namespace std;
int main() {
int i;
for (i = 1;; i = i + 1) {
int x;
cin >> x;
if (x == 0) {
break;
}
cout << "Case " << i << ": " << x << endl;
}
}
| [
"literal.string.change",
"literal.string.case.change",
"io.output.change"
] | 175,375 | 175,376 | u172753670 | cpp |
p02396 | #include <iostream>
using namespace std;
int main() {
int i, x;
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 i, x;
for (i = 1; i > 0; ++i) {
cin >> x;
if (x == 0)
break;
cout << "Case " << i << ": " << x << endl;
}
return 0;
}
| [
"literal.number.change",
"assignment.value.change",
"control_flow.loop.for.initializer.change",
"expression.off_by_one",
"identifier.change",
"control_flow.loop.for.condition.change",
"expression.operation.binary.change"
] | 175,378 | 175,379 | u505035810 | cpp |
p02396 | #include "iostream"
using namespace std;
int main() {
int x;
int count = 1;
while (cin >> x, x) {
cout << "case " << count << ": " << x << endl;
count++;
}
}
| #include "iostream"
using namespace std;
int main() {
int x;
int count = 1;
while (cin >> x, x) {
cout << "Case " << count << ": " << x << endl;
count++;
}
return 0;
}
| [
"literal.string.change",
"literal.string.case.change",
"io.output.change",
"control_flow.return.add",
"control_flow.return.0.add"
] | 175,380 | 175,381 | u058860400 | cpp |
p02396 | #include <iostream>
using namespace std;
int main() {
int i = 0, x;
while (1) {
cin >> x;
if (x == 0)
break;
cout << "Case"
<< " " << i << ":"
<< " " << x << endl;
i++;
}
return 0;
}
| #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++;
}
return 0;
}
| [
"literal.number.change",
"variable_declaration.value.change"
] | 175,390 | 175,391 | u571003530 | cpp |
p02396 | #include <iostream>
using namespace std;
int main(void) {
int x[10000];
for (int i = 0; i < 10000; i++) {
cin >> x[i];
if (x[i] == 0)
break;
}
for (int i = 0; i < 10000; i++) {
if (x[i] == 0)
break;
cout << "case " << i + 1 << ": " << x[i] << endl;
}
return 0;
}
| #include <iostream>
using namespace std;
int main(void) {
int x[10000];
for (int i = 0; i < 10000; i++) {
cin >> x[i];
if (x[i] == 0)
break;
}
for (int i = 0; i < 10000; i++) {
if (x[i] == 0)
break;
cout << "Case " << i + 1 << ": " << x[i] << endl;
}
return 0;
}
| [
"literal.string.change",
"literal.string.case.change",
"io.output.change"
] | 175,392 | 175,393 | u580766751 | cpp |
p02396 | #include <iostream>
using namespace std;
int main() {
int x, i;
i = 1;
while (x >= 0, x <= 10000) {
cin >> x;
if (x == 0) {
break;
}
cout << "Case " << i + 1 << ": " << x << endl;
i++;
}
return 0;
}
| #include <iostream>
using namespace std;
int main() {
int x, i;
i = 1;
while (x >= 0, x <= 10000) {
cin >> x;
if (x == 0) {
break;
}
cout << "Case " << i << ": " << x << endl;
i++;
}
return 0;
}
| [
"expression.operation.binary.remove"
] | 175,394 | 175,395 | u281207094 | cpp |
p02396 | //============================================================================
// Name : HairetuTest.cpp
// Author :
// Version :
// Copyright : Your copyright notice
// Description : Hello World in C++, Ansi-style
//============================================================================
#includ... | //============================================================================
// Name : HairetuTest.cpp
// Author :
// Version :
// Copyright : Your copyright notice
// Description : Hello World in C++, Ansi-style
//============================================================================
#includ... | [
"identifier.change",
"control_flow.loop.condition.change",
"control_flow.return.add",
"control_flow.return.0.add"
] | 175,411 | 175,412 | u894945452 | cpp |
p02396 | //============================================================================
// Name : HairetuTest.cpp
// Author :
// Version :
// Copyright : Your copyright notice
// Description : Hello World in C++, Ansi-style
//============================================================================
#includ... | //============================================================================
// Name : HairetuTest.cpp
// Author :
// Version :
// Copyright : Your copyright notice
// Description : Hello World in C++, Ansi-style
//============================================================================
#includ... | [
"identifier.change",
"control_flow.loop.condition.change"
] | 175,413 | 175,412 | u894945452 | cpp |
p02396 | //============================================================================
// Name : HairetuTest.cpp
// Author :
// Version :
// Copyright : Your copyright notice
// Description : Hello World in C++, Ansi-style
//============================================================================
#includ... | //============================================================================
// Name : HairetuTest.cpp
// Author :
// Version :
// Copyright : Your copyright notice
// Description : Hello World in C++, Ansi-style
//============================================================================
#includ... | [
"identifier.replace.remove",
"literal.replace.add",
"control_flow.loop.condition.change",
"expression.operation.binary.remove",
"control_flow.return.add",
"control_flow.return.0.add"
] | 175,411 | 175,414 | u894945452 | cpp |
p02396 | //============================================================================
// Name : HairetuTest.cpp
// Author :
// Version :
// Copyright : Your copyright notice
// Description : Hello World in C++, Ansi-style
//============================================================================
#includ... | //============================================================================
// Name : HairetuTest.cpp
// Author :
// Version :
// Copyright : Your copyright notice
// Description : Hello World in C++, Ansi-style
//============================================================================
#includ... | [
"identifier.replace.remove",
"literal.replace.add",
"control_flow.loop.condition.change",
"expression.operation.binary.remove"
] | 175,413 | 175,414 | u894945452 | cpp |
p02396 | //============================================================================
// Name : HairetuTest.cpp
// Author :
// Version :
// Copyright : Your copyright notice
// Description : Hello World in C++, Ansi-style
//============================================================================
#includ... | //============================================================================
// Name : HairetuTest.cpp
// Author :
// Version :
// Copyright : Your copyright notice
// Description : Hello World in C++, Ansi-style
//============================================================================
#includ... | [
"identifier.replace.remove",
"literal.replace.add",
"control_flow.loop.condition.change",
"expression.operation.binary.remove"
] | 175,411 | 175,415 | u894945452 | cpp |
p02396 | //============================================================================
// Name : HairetuTest.cpp
// Author :
// Version :
// Copyright : Your copyright notice
// Description : Hello World in C++, Ansi-style
//============================================================================
#includ... | //============================================================================
// Name : HairetuTest.cpp
// Author :
// Version :
// Copyright : Your copyright notice
// Description : Hello World in C++, Ansi-style
//============================================================================
#includ... | [
"identifier.replace.remove",
"literal.replace.add",
"control_flow.loop.condition.change",
"expression.operation.binary.remove"
] | 175,413 | 175,415 | u894945452 | cpp |
p02396 | #include <iostream>
using namespace std;
int main() {
int x, i;
i = 0;
while (1) {
cin >> x;
if (x == 0)
break;
++i;
cout << "Case" << i << ": " << x << endl;
}
}
| #include <iostream>
using namespace std;
int main() {
int x;
int i = 0;
for (;;) {
cin >> x;
if (x == 0)
break;
++i;
cout << "Case " << i << ": " << x << endl;
}
}
| [
"variable_declaration.remove",
"control_flow.loop.condition.change",
"literal.string.change",
"io.output.change"
] | 175,416 | 175,417 | u002280517 | cpp |
p02396 | #include <iostream>
using namespace std;
int main() {
int x;
int i = 0;
for (;;) {
cin >> x;
if (x == 0)
break;
++i;
cout << "Case" << i << ": " << x << endl;
}
}
| #include <iostream>
using namespace std;
int main() {
int x;
int i = 0;
for (;;) {
cin >> x;
if (x == 0)
break;
++i;
cout << "Case " << i << ": " << x << endl;
}
}
| [
"literal.string.change",
"io.output.change"
] | 175,418 | 175,417 | u002280517 | cpp |
p02396 | #include <iostream>
using namespace std;
int main() {
int x;
int i = 1;
for (;;) {
cin >> x;
if (x == 0)
break;
++i;
cout << "Case" << i << ": " << x << endl;
}
}
| #include <iostream>
using namespace std;
int main() {
int x;
int i = 0;
for (;;) {
cin >> x;
if (x == 0)
break;
++i;
cout << "Case " << i << ": " << x << endl;
}
}
| [
"literal.number.change",
"variable_declaration.value.change",
"literal.string.change",
"io.output.change"
] | 175,419 | 175,417 | u002280517 | cpp |
p02396 | #include <iostream>
using namespace std;
int main() {
int x;
int i = 0;
for (;;) {
cin >> x;
if (x == 0)
break;
++i;
cout << "Case" << i << " : " << x << endl;
}
}
| #include <iostream>
using namespace std;
int main() {
int x;
int i = 0;
for (;;) {
cin >> x;
if (x == 0)
break;
++i;
cout << "Case " << i << ": " << x << endl;
}
}
| [
"literal.string.change",
"io.output.change"
] | 175,420 | 175,417 | u002280517 | cpp |
p02396 | #include <iostream>
using namespace std;
int main() {
int x, i;
for (i = 1; 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 = 1; i <= 10000; i++) {
cin >> x;
if (x == 0) {
break;
}
cout << "Case " << i << ": " << x << endl;
}
return 0;
}
| [
"variable_declaration.remove",
"expression.operator.compare.change",
"control_flow.loop.for.condition.change",
"expression.off_by_one",
"expression.operation.binary.change",
"literal.string.change",
"io.output.change"
] | 175,422 | 175,423 | u510149353 | cpp |
p02396 | #include <iostream>
using namespace std;
int main() {
int x, i;
for (i = 1; 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 = 1; i <= 10000; i++) {
cin >> x;
if (x == 0) {
break;
}
cout << "Case " << i << ": " << x << endl;
}
return 0;
}
| [
"variable_declaration.remove",
"expression.operator.compare.change",
"control_flow.loop.for.condition.change",
"expression.off_by_one",
"expression.operation.binary.change",
"literal.string.change",
"io.output.change"
] | 175,424 | 175,423 | u510149353 | cpp |
p02396 | #include <iostream>
using namespace std;
int main() {
int x, i;
for (i = 1; 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 = 1; i <= 10000; i++) {
cin >> x;
if (x == 0) {
break;
}
cout << "Case " << i << ": " << x << endl;
}
return 0;
}
| [
"variable_declaration.remove",
"expression.operator.compare.change",
"control_flow.loop.for.condition.change",
"expression.off_by_one",
"expression.operation.binary.change",
"literal.string.change",
"io.output.change"
] | 175,427 | 175,423 | u510149353 | cpp |
p02396 | #include <iostream>
using namespace std;
int main() {
int x = 0, c = 1;
while (cin >> x) {
if (x) {
cout << "Case " << c << ':' << x << endl;
c++;
} else
return 0;
}
return 0;
}
| #include <iostream>
using namespace std;
int main() {
int x = 0, c = 1;
while (cin >> x) {
if (x) {
cout << "Case " << c << ": " << x << endl;
c++;
} else
return 0;
}
return 0;
}
| [] | 175,428 | 175,429 | u915296224 | 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 + 1 << ":" << 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;
}
| [
"literal.string.change",
"io.output.change"
] | 175,433 | 175,434 | u339553192 | cpp |
p02396 | #include <iostream>
using namespace std;
int main() {
int box[10000];
int i = 0;
while (1) {
cin >> box[i];
if (box[i] == 0) {
break;
}
i++;
}
for (int j = 0; j < i; j++) {
cout << "case"
<< " " << j << ":"
<< " " << box[j] << endl;
}
return 0;
}
| #include <iostream>
using namespace std;
int main() {
long box[10001];
int i = 0;
while (1) {
cin >> box[i];
if (box[i] == 0) {
break;
}
i++;
}
for (int j = 0; j < i; j++) {
cout << "Case"
<< " " << j + 1 << ":"
<< " " << box[j] << endl;
}
return 0;
}
| [
"variable_declaration.type.primitive.change",
"literal.number.change",
"variable_declaration.array_dimensions.change",
"literal.string.change",
"literal.string.case.change",
"io.output.change"
] | 175,435 | 175,436 | u003305180 | cpp |
p02396 | #include <iostream>
using namespace std;
int main() {
long box[10000];
int i = 0;
while (1) {
cin >> box[i];
if (box[i] == 0) {
break;
}
i++;
}
for (int j = 0; j < i; j++) {
cout << "case"
<< " " << j + 1 << ":"
<< " " << box[j] << endl;
}
return 0;
}
| #include <iostream>
using namespace std;
int main() {
long box[10001];
int i = 0;
while (1) {
cin >> box[i];
if (box[i] == 0) {
break;
}
i++;
}
for (int j = 0; j < i; j++) {
cout << "Case"
<< " " << j + 1 << ":"
<< " " << box[j] << endl;
}
return 0;
}
| [
"literal.number.change",
"variable_declaration.array_dimensions.change",
"literal.string.change",
"literal.string.case.change",
"io.output.change"
] | 175,437 | 175,436 | u003305180 | cpp |
p02396 | #include <iostream>
using namespace std;
int main() {
long box[10001];
int i = 0;
while (1) {
cin >> box[i];
if (box[i] == 0) {
break;
}
i++;
}
for (int j = 0; j < i; j++) {
cout << "case"
<< " " << j + 1 << ":"
<< " " << box[j] << endl;
}
return 0;
}
| #include <iostream>
using namespace std;
int main() {
long box[10001];
int i = 0;
while (1) {
cin >> box[i];
if (box[i] == 0) {
break;
}
i++;
}
for (int j = 0; j < i; j++) {
cout << "Case"
<< " " << j + 1 << ":"
<< " " << box[j] << endl;
}
return 0;
}
| [
"literal.string.change",
"literal.string.case.change",
"io.output.change"
] | 175,438 | 175,436 | u003305180 | cpp |
p02396 | #include <iostream>
using namespace std;
int main() {
int N = 20000;
int number;
for (int i = 0; i < N; i++) {
cin >> number;
if (number == 0)
break;
cout << "Case " << i << ": " << number << endl;
}
return 0;
}
| #include <iostream>
using namespace std;
int main() {
int N = 20000;
int number;
for (int i = 1; i < N; i++) {
cin >> number;
if (number == 0)
break;
cout << "Case " << i << ": " << number << endl;
}
return 0;
}
| [
"literal.number.change",
"variable_declaration.value.change",
"control_flow.loop.for.initializer.change",
"expression.off_by_one"
] | 175,443 | 175,444 | u636240697 | cpp |
p02396 | #include <iostream>
#include <string>
int main() {
int counter = 1;
for (std::string line; getline(std::cin, line); ++counter)
std::cout << "Case " << counter << ": " << line << std::endl;
return 0;
}
| #include <iostream>
#include <string>
int main() {
int counter = 1;
for (std::string line; getline(std::cin, line), line != "0"; ++counter)
std::cout << "Case " << counter << ": " << line << std::endl;
return 0;
}
| [
"control_flow.loop.for.condition.change"
] | 175,445 | 175,446 | u652366248 | cpp |
p02396 | #include <cstdio>
int main() {
int n, x;
for (n = 1; n++;) {
scanf("%d", &x);
if (x == 0)
break;
else {
printf("Case %d: %d\n", n, x);
}
}
}
| #include <cstdio>
int main() {
int n, x;
for (n = 1; n <= 10000; n++) {
scanf("%d", &x);
if (x == 0)
break;
else {
printf("Case %d: %d\n", n, x);
}
}
}
| [
"control_flow.loop.for.condition.change",
"control_flow.loop.for.update.change"
] | 175,456 | 175,457 | u256960015 | cpp |
p02396 |
#include <cstdio>
int main() {
int n;
for (int i = 0; i < 10000; i++) {
scanf("%d", &n);
if (n == 0) {
break;
}
printf("Case %d: %d\n", i, n);
}
return 0;
}
|
#include <cstdio>
int main() {
int n;
for (int i = 1; i <= 10000; i++) {
scanf("%d", &n);
if (n == 0) {
break;
}
printf("Case %d: %d\n", i, n);
}
return 0;
}
| [
"literal.number.change",
"variable_declaration.value.change",
"control_flow.loop.for.initializer.change",
"expression.off_by_one",
"expression.operator.compare.change",
"control_flow.loop.for.condition.change",
"expression.operation.binary.change"
] | 175,459 | 175,460 | u432637103 | cpp |
p02396 | #include <cstdio>
int main() {
for (int i = 1;; i++) {
int x;
scanf("%d", &x); //入力
if (x == 0) {
break;
}
printf("Case %d; %d\n", i, x); //出力
}
return 0;
}
| #include <cstdio>
int main() {
for (int i = 1;; i++) {
int x;
scanf("%d", &x); //入力
if (x == 0) {
break;
}
printf("Case %d: %d\n", i, x); //出力
}
return 0;
}
| [
"literal.string.change",
"call.arguments.change",
"io.output.change"
] | 175,463 | 175,464 | u318652751 | cpp |
p02396 | #include <iostream>
using namespace std;
int main() {
int x, y = 1;
while (y > 0) {
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, y = 1;
while (y > 0) {
cin >> x;
if (x == 0)
break;
cout << "Case " << y << ": " << x << endl;
y = y + 1;
}
return 0;
}
| [
"literal.string.change",
"literal.string.case.change",
"io.output.change"
] | 175,469 | 175,470 | u824483998 | cpp |
p02396 | #include <iostream>
using namespace std;
int main() {
int x, y = 1;
while (y > 0) {
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, y = 1;
while (y > 0) {
cin >> x;
if (x == 0)
break;
cout << "Case " << y << ": " << x << endl;
y = y + 1;
}
return 0;
}
| [
"literal.string.change",
"literal.string.case.change",
"io.output.change"
] | 175,471 | 175,470 | u824483998 | cpp |
p02396 | #include <iostream>
using namespace std;
int main() {
int a, x = 1;
while (1) {
cin >> a;
cin >> x;
if (a == 0) {
break;
} else if (a != 0) {
cout << "Case " << x << ": " << a << endl;
}
x = x + 1;
}
return 0;
}
| #include <iostream>
using namespace std;
int main() {
int a, x = 1;
while (1) {
cin >> a;
if (a == 0) {
break;
} else if (a != 0) {
cout << "Case " << x << ": " << a << endl;
}
x = x + 1;
}
return 0;
}
| [] | 175,472 | 175,473 | u053232913 | cpp |
p02396 | #include <iostream>
using namespace std;
int main() {
int x;
for (int i = 1; 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 = 1; i <= 10000; i++) {
cin >> x;
if (x == 0) {
break;
}
cout << "Case " << i << ": " << x << endl;
}
return 0;
}
| [
"literal.string.change",
"io.output.change"
] | 175,474 | 175,475 | u255709868 | cpp |
p02396 | #include <iostream>
using namespace std;
int main() {
int x;
for (int i = 1; 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 = 1; i <= 10000; i++) {
cin >> x;
if (x == 0) {
break;
}
cout << "Case " << i << ": " << x << endl;
}
return 0;
}
| [
"literal.string.change",
"io.output.change"
] | 175,476 | 175,475 | u255709868 | cpp |
p02396 | #include <iostream>
using namespace std;
int main() {
int x;
for (int i = 1; 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 = 1; i <= 10000; i++) {
cin >> x;
if (x == 0) {
break;
}
cout << "Case " << i << ": " << x << endl;
}
return 0;
}
| [
"literal.string.change",
"io.output.change"
] | 175,477 | 175,475 | u255709868 | 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;
}
| [
"literal.string.change",
"io.output.change"
] | 175,482 | 175,483 | u294684862 | cpp |
p02396 | #include <iostream>
using namespace std;
int main() {
int x;
for (int i = 1; i <= 10000; i++) {
cin >> x;
if (x == 0) {
i = 10000;
}
cout << "Case " << i << "; " << x << endl;
}
}
| #include <iostream>
using namespace std;
int main() {
int x;
for (int i = 1; i <= 10000; i++) {
cin >> x;
if (x == 0) {
i = 10000;
} else {
cout << "Case " << i << ": " << x << endl;
}
}
}
| [
"control_flow.branch.else.add",
"literal.string.change",
"io.output.change"
] | 175,485 | 175,486 | u913782418 | cpp |
p02396 | #include <iostream>
using namespace std;
int main() {
int x;
for (int i = 1; i <= 10000; i++) {
cin >> x;
if (x == 0) {
i = 10000;
} else {
cout << "Case " << i << "; " << x << endl;
}
}
}
| #include <iostream>
using namespace std;
int main() {
int x;
for (int i = 1; i <= 10000; i++) {
cin >> x;
if (x == 0) {
i = 10000;
} else {
cout << "Case " << i << ": " << x << endl;
}
}
}
| [
"literal.string.change",
"io.output.change"
] | 175,487 | 175,486 | u913782418 | cpp |
p02396 | #include <iostream>
using namespace std;
int main() {
int x[10000], y;
for (y = 1; y <= 10000; y++) {
cin >> x[y];
if (x[y] == 0) {
break;
}
cout << "Cese"
<< " " << y << ": " << x[y] << endl;
}
return 0;
}
| #include <iostream>
using namespace std;
int main() {
int x[10000], y;
for (y = 1; y <= 10000; y++) {
cin >> x[y];
if (x[y] == 0) {
break;
}
cout << "Case"
<< " " << y << ": " << x[y] << endl;
}
return 0;
}
| [
"literal.string.change",
"io.output.change"
] | 175,490 | 175,491 | u873339326 | cpp |
p02396 | #include <iostream>
using namespace std;
int main() {
int i, x[10000], j;
for (i = 1; i < 10000; i++) {
cin >> x[i];
if (x[i] == 0) {
break;
}
}
for (j = 1; j < 10000; j++) {
cout << "Case " << j << ": " << x[j] << endl;
}
return 0;
}
| #include <iostream>
using namespace std;
int main() {
int i, x[10000], j;
for (i = 1; i <= 10000; i++) {
cin >> x[i];
if (x[i] == 0) {
break;
}
}
for (j = 1; j < i; j++) {
cout << "Case " << j << ": " << x[j] << endl;
}
return 0;
}
| [
"expression.operator.compare.change",
"control_flow.loop.for.condition.change",
"expression.off_by_one",
"expression.operation.binary.change",
"identifier.replace.add",
"literal.replace.remove"
] | 175,492 | 175,493 | u565082726 | cpp |
p02396 | #include <iostream>
using namespace std;
int main() {
int a, b;
b = 1;
while (1) {
cin >> a;
if (a == 0)
break;
cout << "Case"
<< " " << b << ":"
<< " " << a << endl;
a = a + 1;
}
}
| #include <iostream>
using namespace std;
int main() {
int a, b;
b = 1;
while (1) {
cin >> a;
if (a == 0)
break;
cout << "Case"
<< " " << b << ":"
<< " " << a << endl;
b = b + 1;
}
}
| [
"assignment.variable.change",
"identifier.change",
"assignment.value.change",
"expression.operation.binary.change"
] | 175,495 | 175,496 | u773714282 | cpp |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.