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 |
|---|---|---|---|---|---|---|---|
p02468 | #include <cmath>
#include <iostream>
using namespace std;
typedef long long ll;
ll pow(int m, int n, int mod) {
ll res = 1;
while (n > 0) {
if (n & 1) {
res = res * m % mod;
}
m = m * m % mod;
n >>= 1;
}
return res;
}
int main() {
int a, b;
cin >> a >> b;
cout << pow(a, b, 100000000... | #include <cmath>
#include <iostream>
using namespace std;
typedef long long ll;
ll pow(ll m, ll n, ll mod) {
ll res = 1;
while (n > 0) {
if (n & 1) {
res = res * m % mod;
}
m = m * m % mod;
n >>= 1;
}
return res;
}
int main() {
ll a, b;
cin >> a >> b;
cout << pow(a, b, 1000000007) <... | [
"variable_declaration.type.change"
] | 230,957 | 230,958 | u024384030 | cpp |
p02468 | #include <algorithm>
#include <iostream>
#include <string>
#include <vector>
const int M = 1000000007;
using namespace std;
typedef long long ll;
ll pos(int m, int n) {
if (n == 0)
return 1;
ll res = pos(m * m % M, n / 2);
if (n % 2 == 1) {
res = (res * m) % M;
}
return res;
}
int main() {
ll m... | #include <algorithm>
#include <iostream>
#include <string>
#include <vector>
const int M = 1000000007;
using namespace std;
typedef long long ll;
ll pos(ll m, ll n) {
if (n == 0)
return 1;
ll res = pos((m * m) % M, n / 2);
if (n % 2 == 1) {
res = (res * m) % M;
}
return res;
}
int main() {
ll m... | [
"call.arguments.change"
] | 230,959 | 230,960 | u014557234 | cpp |
p02468 | #define _CRT_SECURE_NO_WARNINGS
#include <bits/stdc++.h>
using namespace std;
using ll = long long;
const ll big = (ll)1e9 + 7;
ll po(ll b, ll e) {
if (e == 1) {
return b % big;
}
if (e % 2) {
return (b * po(b * b, e / 2)) % big;
} else {
return po(b * b, e / 2) % big;
}
}
int main() {
ll m, n... | #define _CRT_SECURE_NO_WARNINGS
#include <bits/stdc++.h>
using namespace std;
using ll = long long;
const ll big = (ll)1e9 + 7;
ll po(ll b, ll e) {
if (e == 1) {
return b % big;
}
if (e % 2) {
return b * po(b * b % big, e / 2) % big;
} else {
return po(b * b % big, e / 2) % big;
}
}
int main() {... | [
"call.arguments.change"
] | 230,964 | 230,965 | u110158220 | cpp |
p02468 | #include <cstdio>
#include <iostream>
using namespace std;
long long pow(long long m, long long n) {
long long res;
if (n == 0)
return 1;
res = pow(m * m, n / 2);
if (n % 2 == 1)
return res * m % 1000000007;
return res % 100000007;
}
int main() {
long long m, n;
cin >> m >> n;
cout << pow(m,... | #include <cstdio>
#include <iostream>
using namespace std;
long long pow(long long m, long long n) {
long long res;
if (n == 0)
return 1;
res = pow(m * m % 1000000007, n / 2);
if (n % 2 == 1)
return res * m % 1000000007;
return res;
}
int main() {
long long m, n;
cin >> m >> n;
cout << pow(m... | [
"assignment.change",
"expression.operation.binary.remove"
] | 230,966 | 230,967 | u951145380 | cpp |
p02468 | #include <cstdio>
#include <iostream>
using namespace std;
long long pow(long long m, long long n) {
long long res;
if (n == 0)
return 1;
res = pow(m * m, n / 2);
if (n % 2 == 1)
return res * m % 1000000007;
return res % 10000800007;
}
int main() {
long long m, n;
cin >> m >> n;
cout << pow(... | #include <cstdio>
#include <iostream>
using namespace std;
long long pow(long long m, long long n) {
long long res;
if (n == 0)
return 1;
res = pow(m * m % 1000000007, n / 2);
if (n % 2 == 1)
return res * m % 1000000007;
return res;
}
int main() {
long long m, n;
cin >> m >> n;
cout << pow(m... | [
"assignment.change",
"expression.operation.binary.remove"
] | 230,968 | 230,967 | u951145380 | cpp |
p02468 | #include <algorithm>
#include <bitset>
#include <cmath>
#include <cstdio>
#include <iostream>
#include <map>
#include <queue>
#include <set>
#include <string>
#include <vector>
using namespace std;
#define FOR(i, a, b) for (int i = (a); i < (b); i++)
#define rep(i, n) FOR(i, 0, n)
#define MAX 1000000007
typedef long lo... | #include <algorithm>
#include <bitset>
#include <cmath>
#include <cstdio>
#include <iostream>
#include <map>
#include <queue>
#include <set>
#include <string>
#include <vector>
using namespace std;
#define FOR(i, a, b) for (int i = (a); i < (b); i++)
#define rep(i, n) FOR(i, 0, n)
#define MAX 1000000007
typedef long lo... | [
"variable_declaration.type.change"
] | 230,969 | 230,970 | u675352256 | cpp |
p02468 | #include <iostream>
using namespace std;
int a, ans;
int f(int idx) {
if (idx == 1)
return ans = a;
ans = (ans * f(idx / 2)) % 1000000007;
if (idx % 2)
ans = (ans * a) % 1000000007;
return ans;
}
int main() {
int b;
while (cin >> a >> b) {
ans = 1;
a = a % 1000000007;
cout << f(b) <... | #include <iostream>
using namespace std;
long long a, ans;
int f(int idx) {
if (idx == 1)
return ans = a;
ans = (ans * f(idx / 2)) % 1000000007;
if (idx % 2)
ans = (ans * a) % 1000000007;
return ans;
}
int main() {
int b;
while (cin >> a >> b) {
ans = 1;
a = a % 1000000007;
cout << ... | [
"variable_declaration.type.primitive.change",
"variable_declaration.type.widen.change"
] | 230,977 | 230,978 | u067723511 | cpp |
p02468 | #include <algorithm>
#include <bitset>
#include <cmath>
#include <iostream>
#include <map>
#include <queue>
#include <set>
#include <string>
#include <vector>
#define FI first
#define SE second
#define VE vector<int>
#define PF push_front
#define PB push_back
#define POF pop_front
#define POB pop_back
#define MA make_p... | #include <algorithm>
#include <bitset>
#include <cmath>
#include <iostream>
#include <map>
#include <queue>
#include <set>
#include <string>
#include <vector>
#define FI first
#define SE second
#define VE vector<int>
#define PF push_front
#define PB push_back
#define POF pop_front
#define POB pop_back
#define MA make_p... | [
"variable_declaration.type.change"
] | 230,983 | 230,984 | u216725628 | cpp |
p02468 | #include <iostream>
using namespace std;
long long rec(long long x, long long y) {
if (y == 1)
return x;
else if (y % 2 == 1) {
return rec(x * x, y / 2) * x % 1000000007;
} else {
return rec(x * x % 1000000007, y / 2);
}
}
int main(void) {
long long m, n;
cin >> m >> n;
cout << rec(m, n) << e... | #include <iostream>
using namespace std;
long long rec(long long x, long long y) {
if (y == 1)
return x;
else if (y % 2 == 1) {
return rec(x * x % 1000000007, y / 2) * x % 1000000007;
} else {
return rec(x * x % 1000000007, y / 2);
}
}
int main(void) {
long long m, n;
cin >> m >> n;
cout << r... | [
"expression.operation.binary.add",
"control_flow.return.add",
"control_flow.return.0.add"
] | 230,985 | 230,986 | u473115569 | cpp |
p02468 | #include <iostream>
using namespace std;
#define M 1000000007
int rec(int m, int n) {
if (n == 1)
return m % M;
long long m2 = rec((m % M) * (m % M), n / 2);
if (n % 2 == 1) {
m2 = ((m2 % M) * (m % M));
}
return m2 % M;
}
int main() {
int m, n;
cin >> m >> n;
cout << rec(m, n) << endl;
retur... | #include <iostream>
using namespace std;
#define M 1000000007
int rec(long m, long n) {
if (n == 1)
return m % M;
long long m2 = rec((m % M) * (m % M), n / 2);
if (n % 2 == 1) {
m2 = ((m2 % M) * (m % M));
}
return m2 % M;
}
int main() {
int m, n;
cin >> m >> n;
cout << rec(m, n) << endl;
ret... | [
"variable_declaration.type.primitive.change"
] | 230,987 | 230,988 | u796103607 | cpp |
p02468 | #include <stdio.h>
#define NUM 1000000007
long long power_(long long m, long long n) {
// printf("%lld %lld\n", m, n);
if (n == 1) {
return m % NUM;
}
return (n % 2 == 0) ? power_((m * m) % NUM, n / 2)
: power_((m * m) % NUM, n / 2) * m;
}
int main() {
long long M, N;
scanf("%ll... | #include <stdio.h>
#define NUM 1000000007
long long power_(long long m, long long n) {
// printf("%lld %lld\n", m, n);
if (n == 1) {
return m % NUM;
}
return (n % 2 == 0) ? power_((m * m) % NUM, n / 2)
: power_((m * m) % NUM, n / 2) * m % NUM;
}
int main() {
long long M, N;
scan... | [
"expression.operation.binary.remove"
] | 230,989 | 230,990 | u173597612 | cpp |
p02468 | #include <bits/stdc++.h>
using namespace std;
typedef long long ll;
ll pow_ans(ll x, ll n) {
ll res = 1;
while (n > 0) {
if (n & 1) {
res *= x, res %= 1000000007;
}
x %= 1000000007;
x *= x;
n >>= 1;
}
return res;
}
int main() {
ll x;
ll y;
cin >> x >> y;
cout << pow_ans(x, y... | #include <bits/stdc++.h>
using namespace std;
typedef long long ll;
ll pow_ans(ll x, ll n) {
ll res = 1;
while (n > 0) {
x %= 1000000007;
if (n & 1) {
res *= x, res %= 1000000007;
}
x %= 1000000007;
x *= x;
n >>= 1;
}
return res;
}
int main() {
ll x;
ll y;
cin >> x >> y;
... | [
"assignment.add"
] | 230,991 | 230,992 | u376137119 | cpp |
p02468 | #include <bits/stdc++.h>
using namespace std;
int main() {
long int m, n, i, x = 1, s = 1, t, u, v, w, y, r = 1, k;
scanf("%ld %ld", &m, &n);
for (i = 1; x < 1000000007 && i <= n; ++i) {
x = x * m;
}
if (x < 1000000007) {
cout << x << endl;
} else {
t = n / (i - 1);
u = n % (i - 1);
v = ... | #include <bits/stdc++.h>
using namespace std;
int main() {
long int m, n, i, x = 1, s = 1, t, u, v, w, y, r = 1, k;
scanf("%ld %ld", &m, &n);
for (i = 1; x < 1000000007 && i <= n; ++i) {
x = x * m;
}
if (x < 1000000007) {
cout << x << endl;
} else {
t = n / (i - 1);
u = n % (i - 1);
v = ... | [
"assignment.change",
"literal.string.change",
"call.arguments.change",
"io.output.change",
"io.output.newline.add"
] | 230,993 | 230,994 | u155949434 | cpp |
p02468 | #include <bits/stdc++.h>
using namespace std;
int main() {
long int m, n, i, x = 1, s = 1, t, u, v, w, y, r = 1, k;
scanf("%ld %ld", &m, &n);
for (i = 1; x < 1000000007 && i <= n; ++i) {
x = x * m;
}
if (x < 1000000007) {
cout << x << endl;
} else {
t = n / (i - 1);
u = n % (i - 1);
v = ... | #include <bits/stdc++.h>
using namespace std;
int main() {
long int m, n, i, x = 1, s = 1, t, u, v, w, y, r = 1, k;
scanf("%ld %ld", &m, &n);
for (i = 1; x < 1000000007 && i <= n; ++i) {
x = x * m;
}
if (x < 1000000007) {
cout << x << endl;
} else {
t = n / (i - 1);
u = n % (i - 1);
v = ... | [
"assignment.change"
] | 230,995 | 230,994 | u155949434 | cpp |
p02489 | #include <cstdio>
#include <iostream>
using namespace std;
int main() {
int i = 1, x;
while (1) {
cin >> x;
if (!x)
break;
printf("Case %d %d\n", i, x);
i++;
}
} | #include <cstdio>
#include <iostream>
using namespace std;
int main() {
int i = 1, x;
while (1) {
cin >> x;
if (!x)
break;
printf("Case %d: %d\n", i, x);
i++;
}
} | [
"literal.string.change",
"call.arguments.change",
"io.output.change"
] | 233,067 | 233,068 | u609647473 | cpp |
p02489 | #include <iostream>
using namespace std;
int main() {
int i, x;
i = 1;
while (cin >> x, x != 0) {
cout << "Case " << i << " " << x << endl;
i++;
}
return 0;
} | #include <iostream>
using namespace std;
int main() {
int i, x;
i = 1;
while (cin >> x, x != 0) {
cout << "Case " << i << ": " << x << endl;
i++;
}
return 0;
} | [
"literal.string.change",
"io.output.change"
] | 233,069 | 233,070 | u113716229 | cpp |
p02489 | #include <stdio.h>
int main(void) {
int x, i = 1;
while (scanf("%d", &x) != -1) {
printf("case %d: %d\n", i, x);
i++;
}
return (0);
} | #include <stdio.h>
int main(void) {
int x, i = 1;
while (scanf("%d", &x), x) {
printf("Case %d: %d\n", i, x);
i++;
}
return (0);
} | [
"control_flow.loop.condition.change",
"literal.string.change",
"literal.string.case.change",
"call.arguments.change",
"io.output.change"
] | 233,073 | 233,074 | u490032117 | cpp |
p02489 | #include <stdio.h>
int main(void) {
int x, i = 1;
while (scanf("%d", &x), x) {
printf("case %d: %d\n", i, x);
i++;
}
return (0);
} | #include <stdio.h>
int main(void) {
int x, i = 1;
while (scanf("%d", &x), x) {
printf("Case %d: %d\n", i, x);
i++;
}
return (0);
} | [
"literal.string.change",
"literal.string.case.change",
"call.arguments.change",
"io.output.change"
] | 233,075 | 233,074 | u490032117 | cpp |
p02489 | #include <iostream>
using namespace std;
int main(void) {
int cnt = 0;
while (1) {
int a;
cin >> a;
if (a == 0) {
break;
}
cout << "Case " << cnt << ":" << a << endl;
cnt++;
}
} | #include <iostream>
using namespace std;
int main(void) {
int cnt = 0;
while (1) {
int a;
cin >> a;
if (a == 0) {
break;
}
cout << "Case " << cnt + 1 << ": " << a << endl;
cnt++;
}
} | [
"literal.string.change",
"io.output.change"
] | 233,080 | 233,081 | u092829549 | cpp |
p02489 | #include <iostream>
using namespace std;
int main(void) {
int cnt = 0;
while (1) {
int a;
cin >> a;
if (a == 0) {
break;
}
cout << "Case " << cnt << ": " << a << endl;
cnt++;
}
} | #include <iostream>
using namespace std;
int main(void) {
int cnt = 0;
while (1) {
int a;
cin >> a;
if (a == 0) {
break;
}
cout << "Case " << cnt + 1 << ": " << a << endl;
cnt++;
}
} | [
"expression.operation.binary.add"
] | 233,082 | 233,081 | u092829549 | cpp |
p02489 | #include <iostream>
using namespace std;
// Case i: x
int main() {
int i = 0;
int x;
while (1) {
cin >> x;
i++;
if (x == 0) {
break;
}
cout << "Case " << i << ":" << x << endl;
}
} | #include <iostream>
using namespace std;
// Case i: x
int main() {
int i = 0;
int x;
while (1) {
cin >> x;
i++;
if (x == 0) {
break;
}
cout << "Case " << i << ": " << x << endl;
}
} | [
"literal.string.change",
"io.output.change"
] | 233,083 | 233,084 | u200250032 | cpp |
p02489 | #include "stdio.h"
int main(void) {
int r = 0;
int n = 0;
while (1) {
scanf("%d", &n);
if (n == 0)
break;
printf("Case %d %d\n", ++r, n);
}
return 0;
} | #include "stdio.h"
int main(void) {
int r = 0;
int n = 0;
while (1) {
scanf("%d", &n);
if (n == 0)
break;
printf("Case %d: %d\n", ++r, n);
}
return 0;
} | [
"literal.string.change",
"call.arguments.change",
"io.output.change"
] | 233,085 | 233,086 | u696137057 | cpp |
p02489 | #include <iostream>
int main() {
for (int x, t = 1;; t++) {
std::cin >> x;
if (x == 0)
break;
std::cout << "case" << t << ":" << x << std::endl;
}
return 0;
} | #include <iostream>
int main() {
for (int x, t = 1;; t++) {
std::cin >> x;
if (x == 0)
break;
std::cout << "Case " << t << ": " << x << std::endl;
}
return 0;
} | [
"literal.string.change",
"expression.operation.binary.change"
] | 233,088 | 233,089 | u297401498 | cpp |
p02489 | #include <iostream>
int main() {
for (int x, t = 1;; t++) {
std::cin >> x;
if (x == 0)
break;
std::cout << "case" << t << ": " << x << std::endl;
}
return 0;
} | #include <iostream>
int main() {
for (int x, t = 1;; t++) {
std::cin >> x;
if (x == 0)
break;
std::cout << "Case " << t << ": " << x << std::endl;
}
return 0;
} | [
"literal.string.change",
"expression.operation.binary.change"
] | 233,090 | 233,089 | u297401498 | cpp |
p02489 | #include <iostream>
using namespace std;
int main() {
int i = 1, x;
while (1) {
cin >> x;
if (!x)
break;
cout << "case " << i << ": " << x;
i++;
}
return 0;
} | #include <iostream>
using namespace std;
int main() {
int i = 1, x;
while (1) {
cin >> x;
if (!x)
break;
cout << "Case " << i << ": " << x << endl;
i++;
}
return 0;
} | [
"literal.string.change",
"literal.string.case.change",
"io.output.change",
"io.output.newline.add"
] | 233,108 | 233,109 | u204330405 | cpp |
p02489 | #include <cstdio>
int main() {
int t, n = 1;
scanf("%d", &t);
while (t) {
printf("Case %d: %d", n++, t);
scanf("%d", &t);
}
} | #include <cstdio>
int main() {
int t, n = 1;
scanf("%d", &t);
while (t) {
printf("Case %d: %d\n", n++, t);
scanf("%d", &t);
}
} | [
"literal.string.change",
"call.arguments.change",
"io.output.change",
"io.output.newline.add"
] | 233,113 | 233,114 | u708862509 | cpp |
p02489 | #include <stdio.h>
int main() {
int x = 0; // X?????????????¢????
int i = 0;
for (i = 1;; i++) {
scanf("%d", &x); //????????????
if (x == 0) {
break;
}
printf("case%d:%d\n", i, x); //??????
}
return 0;
} | #include <stdio.h>
int main() {
int x = 0; // X?????????????¢????
int i = 0;
for (i = 1;; i++) {
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"
] | 233,115 | 233,116 | u174378438 | cpp |
p02489 | #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",
"literal.string.case.change",
"io.output.change"
] | 233,119 | 233,120 | u174787762 | cpp |
p02489 | #include <iostream>
using namespace std;
int main() {
int x, i;
i = 1;
while (1) {
cin >> x;
if (x == 0)
break;
cout << "case " << i << ": " << x << endl;
i++;
}
return 0;
} | #include <iostream>
using namespace std;
int main() {
int x, i;
i = 1;
while (1) {
cin >> x;
if (x == 0)
break;
cout << "Case " << i << ": " << x << endl;
i++;
}
return 0;
} | [
"literal.string.change",
"literal.string.case.change",
"io.output.change"
] | 233,121 | 233,122 | u284652320 | cpp |
p02489 | #include <bits/stdc++.h>
using namespace std;
int main() {
int x, i;
for (i = 0;; 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, i;
for (i = 1;; 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"
] | 233,123 | 233,124 | u399801521 | cpp |
p02489 | #include <iostream>
using namespace std;
int main() {
int i = 1, a;
while (true) {
cin >> a;
if (a == 0)
break;
cout << "Case " << i << ": " << a << endl;
}
} | #include <iostream>
using namespace std;
int main() {
int i = 1, a;
while (true) {
cin >> a;
if (a == 0)
break;
cout << "Case " << i << ": " << a << endl;
i++;
}
} | [
"expression.unary.arithmetic.add"
] | 233,125 | 233,126 | u132732722 | cpp |
p02489 | #include <iostream>
#include <list>
using namespace std;
int main() {
int a, t;
t = 0;
while (cin >> a, a) {
t++;
cout << "Case " << t << ":" << a << endl;
}
return 0;
} | #include <iostream>
using namespace std;
int main() {
int a, t;
t = 0;
while (cin >> a, a) {
t++;
cout << "Case " << t << ": " << a << endl;
}
return 0;
} | [
"literal.string.change",
"io.output.change"
] | 233,127 | 233,128 | u414322748 | cpp |
p02489 | #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;
} | [
"literal.string.change",
"literal.string.case.change",
"io.output.change"
] | 233,129 | 233,130 | u667825120 | cpp |
p02489 | #include <cstdio>
using namespace std;
int main() {
int x;
for (int i = 0;; i++) {
scanf("%d", &x);
if (x == 0)
break;
printf("Case %d: %d\n", i, x);
}
return 0;
} | #include <cstdio>
using namespace std;
int main() {
int x;
for (int i = 1;; i++) {
scanf("%d", &x);
if (x == 0)
break;
printf("Case %d: %d\n", i, x);
}
return 0;
} | [
"literal.number.change",
"variable_declaration.value.change",
"control_flow.loop.for.initializer.change",
"expression.off_by_one"
] | 233,134 | 233,135 | u806997739 | cpp |
p02489 | #include <iostream>
#include <vector>
using namespace std;
int main() {
int n;
vector<int> v;
for (;;) {
cin >> n;
if (n == 0)
break;
else
v.push_back(n);
}
int i = 1;
for (auto itr = v.begin(); itr != v.end(); itr++) {
cout << "case " << i << ": " << *itr << endl;
i++;
... | #include <iostream>
#include <vector>
using namespace std;
int main() {
int n;
vector<int> v;
for (;;) {
cin >> n;
if (n == 0)
break;
else
v.push_back(n);
}
int i = 1;
for (auto itr = v.begin(); itr != v.end(); itr++) {
cout << "Case " << i << ": " << *itr << endl;
i++;
... | [
"literal.string.change",
"literal.string.case.change",
"io.output.change"
] | 233,136 | 233,137 | u919638656 | cpp |
p02489 | #include <iostream>
using namespace std;
int main() {
int x;
for (int i = 1; cin >> x; i++) {
if (x == 0)
break;
cout << "Case" << i << ": " << x << endl;
}
return 0;
} | #include <iostream>
using namespace std;
int main() {
int x;
for (int i = 1; cin >> x; i++) {
if (x == 0)
break;
cout << "Case " << i << ": " << x << endl;
}
return 0;
} | [
"literal.string.change",
"io.output.change"
] | 233,140 | 233,141 | u343180797 | cpp |
p02489 | #include <stdio.h>
int main(int argc, char *argv[]) {
int a[10], i = 0;
while (1) {
scanf("%d", &a[i]);
if (a[i] == 0)
break;
i++;
}
for (int j = 0; j < i; j++) {
printf("Case %d: %d\n", j + 1, a[j]);
}
return 0;
} | #include <stdio.h>
int main(int argc, char *argv[]) {
int a[100000], i = 0;
while (1) {
scanf("%d", &a[i]);
if (a[i] == 0)
break;
i++;
}
for (int j = 0; j < i; j++) {
printf("Case %d: %d\n", j + 1, a[j]);
}
return 0;
} | [
"literal.number.change",
"variable_declaration.array_dimensions.change"
] | 233,146 | 233,143 | u862738729 | cpp |
p02489 | #include <stdio.h>
int main(int argc, char *argv[]) {
int a[10], i = 0;
while (1) {
scanf("%d", &a[i]);
if (a[i] == 0)
break;
i++;
}
for (int j = 0; j < i; j++) {
printf("Case %d: %d\n", j + 1, a[j]);
}
return 0;
} | #include <stdio.h>
int main(int argc, char *argv[]) {
int a[10000], i = 0;
while (1) {
scanf("%d", &a[i]);
if (a[i] == 0)
break;
i++;
}
for (int j = 0; j < i; j++) {
printf("Case %d: %d\n", j + 1, a[j]);
}
return 0;
} | [
"literal.number.change",
"variable_declaration.array_dimensions.change"
] | 233,146 | 233,149 | u862738729 | cpp |
p02489 | #include <iostream>
using namespace std;
int main() {
int a, cnt = 1;
while (1) {
cin >> a;
if (a == 0)
break;
cout << "Case " << cnt << ":" << a << endl;
}
return 0;
} | #include <iostream>
using namespace std;
int main() {
int a, cnt = 1;
while (1) {
cin >> a;
if (a == 0)
break;
cout << "Case " << cnt << ": " << a << endl;
cnt++;
}
return 0;
} | [
"literal.string.change",
"io.output.change",
"expression.unary.arithmetic.add"
] | 233,154 | 233,155 | u774866143 | cpp |
p02489 | #include <iostream>
using namespace std;
int main() {
int a, cnt = 1;
while (1) {
cin >> a;
if (a == 0)
break;
cout << "Case " << cnt << ": " << a << endl;
}
return 0;
} | #include <iostream>
using namespace std;
int main() {
int a, cnt = 1;
while (1) {
cin >> a;
if (a == 0)
break;
cout << "Case " << cnt << ": " << a << endl;
cnt++;
}
return 0;
} | [
"expression.unary.arithmetic.add"
] | 233,156 | 233,155 | u774866143 | cpp |
p02489 | #include <bits/stdc++.h>
using namespace std;
int main() {
int x, csn = 1;
while (cin >> x, x) {
cin >> x;
cout << "Case " << csn << ": " << x << endl;
csn++;
}
return 0;
} | #include <bits/stdc++.h>
using namespace std;
int main() {
int x, csn = 1;
while (cin >> x, x) {
cout << "Case " << csn << ": " << x << endl;
csn++;
}
return 0;
} | [] | 233,157 | 233,158 | u527286045 | cpp |
p02489 | #include <iostream>
using namespace std;
int main() {
int i, input;
cin >> input;
for (i = 1; input != 0; i++) {
cout << "case " << i << ": " << input << endl;
cin >> input;
}
} | #include <iostream>
using namespace std;
int main() {
int i, input;
cin >> input;
for (i = 1; input != 0; i++) {
cout << "Case " << i << ": " << input << endl;
cin >> input;
}
} | [
"literal.string.change",
"literal.string.case.change",
"io.output.change"
] | 233,159 | 233,160 | u758817354 | cpp |
p02489 | #include <iostream>
using namespace std;
int main() {
int i, input;
cin >> input;
for (i = 1; input != 0; i++) {
cout << "case " << i << " : " << input << endl;
cin >> input;
}
} | #include <iostream>
using namespace std;
int main() {
int i, input;
cin >> input;
for (i = 1; input != 0; i++) {
cout << "Case " << i << ": " << input << endl;
cin >> input;
}
} | [
"literal.string.change",
"literal.string.case.change",
"io.output.change"
] | 233,163 | 233,160 | u758817354 | cpp |
p02489 | #include <stdio.h>
int x;
int main() {
int i = 1;
while (1) {
scanf("%d", &x);
if (x == 0)
break;
printf("case %d: %d\n", i, x);
i++;
}
return 0;
} | #include <stdio.h>
int x;
int main() {
int i = 1;
while (1) {
scanf("%d", &x);
if (x == 0)
break;
printf("Case %d: %d\n", i, x);
i++;
}
return 0;
} | [
"literal.string.change",
"literal.string.case.change",
"call.arguments.change",
"io.output.change"
] | 233,165 | 233,166 | u398132923 | cpp |
p02489 | #include <cstdlib>
#include <cstring>
#include <iostream>
using namespace std;
int main() {
int i = 0, x;
// int x[1000];
char buf[1000];
while (fgets(buf, sizeof(buf), stdin) != NULL) {
buf[strlen(buf) - 1] = '\0';
x = atoi(buf);
if (x == 0)
break;
cout << "Case " << i++ << ": " << x ... | #include <cstdlib>
#include <cstring>
#include <iostream>
using namespace std;
int main() {
int i = 1, x;
// int x[1000];
char buf[1000];
while (fgets(buf, sizeof(buf), stdin) != NULL) {
buf[strlen(buf) - 1] = '\0';
x = atoi(buf);
if (x == 0)
break;
cout << "Case " << i++ << ": " << x ... | [
"literal.number.change",
"variable_declaration.value.change"
] | 233,167 | 233,168 | u617183767 | cpp |
p02489 | #include <iostream>
using namespace std;
int main() {
int x, i = 0;
while (1) {
cin >> x;
if (!x)
return 0;
i++, cout << "Case :" << i << " " << x << endl;
}
} | #include <iostream>
using namespace std;
int main() {
int x, i = 0;
while (1) {
cin >> x;
if (!x)
return 0;
i++, cout << "Case " << i << ": " << x << endl;
}
} | [
"literal.string.change",
"expression.operation.binary.change"
] | 233,170 | 233,171 | u702258333 | cpp |
p02489 | #include <iostream>
using namespace std;
int main() {
int a = 1, i = 1;
while (true) {
cin >> a;
if (a == 0)
return 0;
cout << "Case " << i << ": " << a << endl;
}
} | #include <iostream>
using namespace std;
int main() {
int a = 1, i = 1;
while (true) {
cin >> a;
if (a == 0)
return 0;
cout << "Case " << i << ": " << a << endl;
i++;
}
} | [
"expression.unary.arithmetic.add"
] | 233,176 | 233,177 | u148810531 | cpp |
p02489 | #include <iostream>
using namespace std;
int main() {
int x;
int i = 1;
while (cin >> x && x)
cout << "Case " << i++ << " :" << x << endl;
} | #include <iostream>
using namespace std;
int main() {
int x;
int i = 1;
while (cin >> x && x)
cout << "Case " << i++ << ": " << x << endl;
} | [
"literal.string.change",
"io.output.change"
] | 233,178 | 233,179 | u914140574 | cpp |
p02489 | #include <stdio.h>
int main(void) {
int i;
for (i = 0;; ++i) {
int x;
scanf("%d", &x);
if (x == 0) {
break;
}
printf("Case %d: %d\n", i, x);
}
return 0;
} | #include <stdio.h>
int main(void) {
int i;
for (i = 0;; ++i) {
int x;
scanf("%d", &x);
if (x == 0) {
break;
}
printf("Case %d: %d\n", i + 1, x);
}
return 0;
} | [
"expression.operation.binary.add"
] | 233,181 | 233,182 | u274667485 | cpp |
p02489 | #include <iostream>
using namespace std;
int main() {
for (int i = 1, x; cin >> x && x != 0; i++) {
cin >> x;
cout << "Case " << i << ": " << x << endl;
}
} | #include <iostream>
using namespace std;
int main() {
for (int i = 1, x; cin >> x && x != 0; i++) {
cout << "Case " << i << ": " << x << endl;
}
} | [] | 233,183 | 233,184 | u439230786 | cpp |
p02489 | #include <iostream>
using namespace std;
int main() {
int i, x;
while ((cin >> x), x)
cout << "Case " << (++i) << ": " << x << endl;
} | #include <iostream>
using namespace std;
int main() {
int i = 0, x;
while ((cin >> x), x)
cout << "Case " << (++i) << ": " << x << endl;
} | [
"variable_declaration.value.change"
] | 233,185 | 233,186 | u870122576 | cpp |
p02489 | #include <stdio.h>
int main(void) {
int x, i = 1;
while (1) {
scanf("%d", &x);
if (x == 0)
break;
else
printf("case %d: %d,i,x");
i++;
}
return 0;
} | #include <stdio.h>
int main(void) {
int x, i = 1;
while (1) {
scanf("%d", &x);
if (x == 0)
break;
else
printf("Case %d: %d\n", i, x);
i++;
}
return 0;
} | [
"literal.string.change",
"call.arguments.change",
"io.output.change",
"io.output.newline.add",
"call.arguments.add"
] | 233,187 | 233,188 | u646183247 | cpp |
p02489 | #include <stdio.h>
int main(void) {
int x, i = 1;
while (1) {
scanf("%d", &x);
if (x == 0)
break;
else
printf("case %d: %d\n", i, x);
i++;
}
return 0;
} | #include <stdio.h>
int main(void) {
int x, i = 1;
while (1) {
scanf("%d", &x);
if (x == 0)
break;
else
printf("Case %d: %d\n", i, x);
i++;
}
return 0;
} | [
"literal.string.change",
"literal.string.case.change",
"call.arguments.change",
"io.output.change"
] | 233,189 | 233,188 | u646183247 | cpp |
p02489 | #include <cstdio>
int main() {
int a[100];
int i;
for (i = 1; i < 100; i++) {
scanf("%d", &a[i]);
if (a[i] == 0)
break;
printf("case %d: %d\n", i, a[i]);
}
return 0;
} | #include <cstdio>
int main() {
int a[50000];
int i;
for (i = 1; i < 50000; i++) {
scanf("%d", &a[i]);
if (a[i] == 0)
break;
printf("Case %d: %d\n", i, a[i]);
}
return 0;
} | [
"literal.number.change",
"variable_declaration.array_dimensions.change",
"control_flow.loop.for.condition.change",
"expression.operation.binary.change",
"literal.string.change",
"literal.string.case.change",
"call.arguments.change",
"io.output.change"
] | 233,194 | 233,195 | u600969859 | cpp |
p02489 |
#include <stdio.h>
int main() {
int a, n = 1;
while (1) {
scanf("%d", &a);
if (a == 0) {
break;
}
else {
printf("Case %d:%d\n", n, a);
n++;
}
}
return 0;
} |
#include <stdio.h>
int main() {
int a, n = 1;
while (1) {
scanf("%d", &a);
if (a == 0) {
break;
} else {
printf("Case %d: %d\n", n, a);
n++;
}
}
return 0;
} | [
"literal.string.change",
"call.arguments.change",
"io.output.change"
] | 233,200 | 233,201 | u914141501 | cpp |
p02489 | #include <stdio.h>
int main() {
int no = 0, x, kei;
int n[10000];
while (1) {
scanf("%d", &x);
if (x == 0)
break;
no = no + 1;
n[no] = x;
}
for (kei = 1; kei <= no; kei++) {
printf("Case %d:%d\n", kei, n[kei]);
}
return 0;
} | #include <stdio.h>
int main() {
int no = 0, x, kei;
int n[10000];
while (1) {
scanf("%d", &x);
if (x == 0)
break;
no = no + 1;
n[no] = x;
}
for (kei = 1; kei <= no; kei++) {
printf("Case %d: %d\n", kei, n[kei]);
}
return 0;
} | [
"literal.string.change",
"call.arguments.change",
"io.output.change"
] | 233,214 | 233,213 | u724424933 | cpp |
p02489 | #include <stdio.h>
int main(void) {
int i, j = 0;
int a;
for (i = 1; j; i++) {
scanf("%d", &a);
if (a == 0)
j = 1;
if (a != 0)
printf("Case %d: %d\n", i, a);
}
return 0;
} | #include <stdio.h>
int main(void) {
int i, j = 0;
int a;
for (i = 1; j < 1; i++) {
scanf("%d", &a);
if (a == 0)
j = 1;
if (a != 0)
printf("Case %d: %d\n", i, a);
}
return 0;
} | [
"control_flow.loop.for.condition.change"
] | 233,215 | 233,216 | u651474720 | cpp |
p02489 | #include <iostream>
#include <vector>
using namespace std;
int main(int argc, char *argv[]) {
int x;
vector<int> nums;
while (cin >> x) {
if (x == 0)
break;
nums.push_back(x);
}
for (int i = 0; i < nums.size(); i++)
cout << "Case " << i << ": " << nums[i] << endl;
return 0;
} |
#include <iostream>
#include <vector>
using namespace std;
int main(int argc, char *argv[]) {
int x;
vector<int> nums;
while (cin >> x) {
if (x == 0)
break;
nums.push_back(x);
}
for (int i = 0; i < nums.size(); i++)
cout << "Case " << i + 1 << ": " << nums[i] << endl;
return 0;
} | [
"expression.operation.binary.add"
] | 233,219 | 233,220 | u233891002 | cpp |
p02489 | #include <iostream>
using namespace std;
int main(void) {
int in, c = 1;
while (cin >> in, !cin.eof()) {
cout << "Case " << c << ": " << in << endl;
c++;
}
return 0;
} | #include <iostream>
using namespace std;
int main(void) {
int in, c = 1;
while (cin >> in, in) {
cout << "Case " << c << ": " << in << endl;
c++;
}
return 0;
} | [
"control_flow.loop.condition.change",
"call.remove"
] | 233,226 | 233,227 | u828891518 | cpp |
p02489 | #include <iostream>
int main() {
int cnt = 1;
while (true) {
int i;
std::cin >> i;
if (i == 0)
break;
std::cout << "case " << cnt << ": " << i << std::endl;
cnt++;
}
return 0;
} | #include <iostream>
#include <vector>
int main() {
int cnt = 1;
while (true) {
int i;
std::cin >> i;
if (i == 0)
break;
std::cout << "Case " << cnt << ": " << i << std::endl;
cnt++;
}
return 0;
} | [
"import.add",
"literal.string.change",
"literal.string.case.change",
"expression.operation.binary.change"
] | 233,228 | 233,229 | u712608638 | cpp |
p02489 | #include <stdio.h>
int main() {
int num, i;
for (i = 1;; i++) {
scanf("%d", num);
if (num == 0)
break;
printf("Case %d: %d\n", i, num);
}
return 0;
} | #include <stdio.h>
int main() {
int num, i;
for (i = 1;; i++) {
scanf("%d", &num);
if (num == 0)
break;
printf("Case %d: %d\n", i, num);
}
return 0;
} | [
"expression.operation.unary.reference.add"
] | 233,230 | 233,231 | u946229723 | cpp |
p02489 | #include <iostream>
#include <vector>
using namespace std;
int main() {
vector<string> a;
string s;
int count = 1;
while (cin >> s) {
if (s == "0") {
break;
}
a.push_back(s);
}
for (int i = 0; i < a.size(); i++) {
cout << "Case"
<< " " << i + 1 << " " << a[i] << endl;
}
... | #include <iostream>
#include <vector>
using namespace std;
int main() {
vector<string> a;
string s;
int count = 1;
while (cin >> s) {
if (s == "0") {
break;
}
a.push_back(s);
}
for (int i = 0; i < a.size(); i++) {
cout << "Case"
<< " " << i + 1 << ": " << a[i] << endl;
}
... | [
"literal.string.change",
"io.output.change"
] | 233,232 | 233,233 | u470949294 | cpp |
p02489 | #include <algorithm>
#include <cmath>
#include <cstdio>
#include <iostream>
#include <string>
#include <vector>
using namespace std;
int main() {
int x;
for (int i = 0; true; i++) {
cin >> x;
if (!x)
break;
printf("Case %d: %d\n", i, x);
}
return 0;
} | #include <algorithm>
#include <cmath>
#include <cstdio>
#include <iostream>
#include <string>
#include <vector>
using namespace std;
int main() {
int x;
for (int i = 1; true; i++) {
cin >> x;
if (!x)
break;
printf("Case %d: %d\n", i, x);
}
return 0;
} | [
"literal.number.change",
"variable_declaration.value.change",
"control_flow.loop.for.initializer.change",
"expression.off_by_one"
] | 233,234 | 233,235 | u621997536 | cpp |
p02489 | #include <stdio.h>
int main() {
int i = 1;
int x;
while (1) {
scanf("%d", &x);
if (x == 0) {
break;
}
printf("Case %d: %d", i, x);
i++;
}
return 0;
} | #include <stdio.h>
int main() {
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"
] | 233,238 | 233,239 | u071898583 | cpp |
p02489 | #include <iostream>
using namespace std;
int main() {
int x;
int count = 0;
while (1) {
cin >> x;
if (x == 0)
break;
count++;
cout << "case " << count << ": " << x << endl;
}
return 0;
} | #include <iostream>
using namespace std;
int main() {
int x = 0;
int count = 0;
while (1) {
cin >> x;
if (x == 0) {
break;
}
count++;
cout << "Case " << count << ": " << x << endl;
}
return 0;
} | [
"variable_declaration.value.change",
"literal.string.change",
"literal.string.case.change",
"io.output.change"
] | 233,256 | 233,257 | u318077239 | cpp |
p02489 | #include <iostream>
using namespace std;
int main() {
int x = 0;
int count = 0;
while (1) {
cin >> x;
if (x == 0) {
break;
}
count++;
cout << "case " << count << ": " << x << endl;
}
return 0;
} | #include <iostream>
using namespace std;
int main() {
int x = 0;
int count = 0;
while (1) {
cin >> x;
if (x == 0) {
break;
}
count++;
cout << "Case " << count << ": " << x << endl;
}
return 0;
} | [
"literal.string.change",
"literal.string.case.change",
"io.output.change"
] | 233,258 | 233,257 | u318077239 | cpp |
p02489 | #include <iostream>
#include <vector>
using namespace std;
int main(void) {
int num = 0, t = 0;
vector<int> arr;
do {
cin >> num;
if (num != 0)
arr.push_back(num);
} while (num != 0);
vector<int>::iterator it = arr.begin();
for (it = arr.begin(); it != arr.end(); it++) {
cout << "Case ... | #include <iostream>
#include <vector>
using namespace std;
int main(void) {
int num = 0, t = 1;
vector<int> arr;
do {
cin >> num;
if (num != 0)
arr.push_back(num);
} while (num != 0);
vector<int>::iterator it = arr.begin();
for (it = arr.begin(); it != arr.end(); it++) {
cout << "Case ... | [
"literal.number.change",
"variable_declaration.value.change"
] | 233,266 | 233,267 | u113033558 | cpp |
p02489 | #include <iostream>
using namespace std;
int main() {
int x, i = 0;
while (1) {
cin >> x;
i += 1;
if (x == 0) {
break;
}
cout << "case " << i << ":" << x << endl;
}
return 0;
} | #include <iostream>
using namespace std;
int main() {
int x, i = 0;
while (1) {
cin >> x;
i += 1;
if (x == 0) {
break;
}
cout << "Case " << i << ": " << x << endl;
}
return 0;
} | [
"literal.string.change",
"literal.string.case.change",
"io.output.change"
] | 233,268 | 233,269 | u667628083 | cpp |
p02489 | #include <iostream>
using namespace std;
int main() {
int x, i = 0;
while (1) {
cin >> x;
i += 1;
if (x == 0) {
break;
}
cout << "case " << i << ": " << x << endl;
}
return 0;
} | #include <iostream>
using namespace std;
int main() {
int x, i = 0;
while (1) {
cin >> x;
i += 1;
if (x == 0) {
break;
}
cout << "Case " << i << ": " << x << endl;
}
return 0;
} | [
"literal.string.change",
"literal.string.case.change",
"io.output.change"
] | 233,270 | 233,269 | u667628083 | cpp |
p02489 | #include <algorithm>
#include <cstdlib>
#include <iostream>
#include <sstream>
#include <string>
#include <vector>
using namespace std;
template <class T> int streamvar(std::istream &in, T &var) {
if (!in) {
cerr << "invalid istream" << endl;
return 1;
}
in >> var;
if (in.fail()) {
cerr << "no var"... | #include <algorithm>
#include <cstdlib>
#include <iostream>
#include <sstream>
#include <string>
#include <vector>
using namespace std;
template <class T> int streamvar(std::istream &in, T &var) {
if (!in) {
cerr << "invalid istream" << endl;
return 1;
}
in >> var;
if (in.fail()) {
cerr << "no var"... | [
"variable_declaration.type.primitive.change",
"variable_declaration.type.widen.change",
"control_flow.loop.condition.change"
] | 233,271 | 233,272 | u606573458 | cpp |
p02489 | #include <stdio.h>
int main(void) {
int x, i = 0;
while (1) {
scanf("%d", &x);
if (x == 0)
break;
i++;
printf("case %d:%d\n", i, x);
}
return 0;
} | #include <stdio.h>
int main(void) {
int x, i = 0;
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"
] | 233,275 | 233,276 | u656774430 | cpp |
p02489 | #include <stdio.h>
int main(void) {
int x, i = 0;
while (1) {
scanf("%d", &x);
if (x == 0)
break;
i++;
printf("case %d: %d\n", i, x);
}
return 0;
} | #include <stdio.h>
int main(void) {
int x, i = 0;
while (1) {
scanf("%d", &x);
if (x == 0)
break;
i++;
printf("Case %d: %d\n", i, x);
}
return 0;
} | [
"literal.string.change",
"literal.string.case.change",
"call.arguments.change",
"io.output.change"
] | 233,277 | 233,276 | u656774430 | cpp |
p02489 | #include "iostream"
using namespace std;
int main() {
int num;
int i = 1;
while (1) {
cin >> num;
if (num != 0) {
cout << "Case" << i << ": " << num << endl;
i++;
} else {
break;
}
}
} | #include "iostream"
using namespace std;
int main() {
int num;
int i = 1;
while (1) {
cin >> num;
if (num != 0) {
cout << "Case " << i << ": " << num << endl;
i++;
} else {
break;
}
}
} | [
"literal.string.change",
"io.output.change"
] | 233,278 | 233,279 | u603775589 | cpp |
p02489 | #include <iostream>
#include <vector>
using namespace std;
int main() {
int n;
vector<int> num;
while (cin >> n && n != 0) {
num.push_back(n);
}
vector<int>::iterator it = num.begin();
for (int i = 1; it != num.end(); i++, it++) {
cout << "case " << i << ": " << *it << "\n";
}
return 0;
} | #include <iostream>
#include <vector>
using namespace std;
int main() {
int n;
vector<int> num;
while (cin >> n && n != 0) {
num.push_back(n);
}
vector<int>::iterator it = num.begin();
for (int i = 1; it != num.end(); i++, it++) {
cout << "Case " << i << ": " << *it << "\n";
}
return 0;
} | [
"literal.string.change",
"literal.string.case.change",
"io.output.change"
] | 233,280 | 233,281 | u573332233 | cpp |
p02489 | #include <iostream>
using namespace std;
int main(void) {
int x, i = 1;
while (1) {
cin >> x;
if (x == 0)
break;
cout << "case " << i << ": " << x << endl;
i++;
}
} | #include <iostream>
using namespace std;
int main(void) {
int x, i = 1;
while (1) {
cin >> x;
if (x == 0)
break;
cout << "Case " << i << ": " << x << endl;
i++;
}
} | [
"literal.string.change",
"literal.string.case.change",
"io.output.change"
] | 233,282 | 233,283 | u480652077 | cpp |
p02489 | #include <iostream>
using namespace std;
int main() {
int count = 1, num;
while (cin >> num)
if (num)
cout << "Case " << count << ": " << num << endl;
return 0;
} | #include <iostream>
using namespace std;
int main() {
int count = 1, num;
while (cin >> num)
if (num)
cout << "Case " << count++ << ": " << num << endl;
return 0;
} | [] | 233,284 | 233,285 | u435432051 | cpp |
p02489 | #include <iostream>
int main() {
int x;
std::cin >> x;
for (int i = 1; x != 0; i++) {
std::cout << "case" << ' ' << i << ' ' << x << std::endl;
std::cin >> x;
}
} | #include <iostream>
int main() {
int x;
std::cin >> x;
for (int i = 1; x != 0; i++) {
std::cout << "Case" << ' ' << i << ": " << x << std::endl;
std::cin >> x;
}
} | [
"literal.string.change",
"literal.string.case.change",
"expression.operation.binary.change"
] | 233,286 | 233,287 | u976860528 | cpp |
p02489 | #include <stdio.h>
int main(void) {
int i = 1, x;
scanf("%d", &x);
while (x != 0) {
printf("Case %d: %d", i, x);
i++;
scanf("%d", &x);
}
return 0;
} | #include <stdio.h>
int main(void) {
int i = 1, x;
scanf("%d", &x);
while (x != 0) {
printf("Case %d: %d\n", i, x);
i++;
scanf("%d", &x);
}
return 0;
} | [
"literal.string.change",
"call.arguments.change",
"io.output.change",
"io.output.newline.add"
] | 233,289 | 233,290 | u118157225 | cpp |
p02489 | #include <algorithm>
#include <bitset>
#include <cfloat>
#include <climits>
#include <cmath>
#include <cstdio>
#include <fstream>
#include <functional>
#include <iomanip>
#include <iostream>
#include <list>
#include <map>
#include <numeric>
#include <queue>
#include <set>
#include <sstream>
#include <stack>
#include <s... | #include <algorithm>
#include <bitset>
#include <cfloat>
#include <climits>
#include <cmath>
#include <cstdio>
#include <fstream>
#include <functional>
#include <iomanip>
#include <iostream>
#include <list>
#include <map>
#include <numeric>
#include <queue>
#include <set>
#include <sstream>
#include <stack>
#include <s... | [
"literal.string.change",
"io.output.change"
] | 233,291 | 233,292 | u488505225 | cpp |
p02489 | #include <iostream>
using namespace std;
int main() {
int x;
int i = 0;
while (1) {
i++;
cin >> x;
if (x == 0)
break;
cout << "Case " << i << ":" << x << endl;
}
} | #include <iostream>
using namespace std;
int main() {
int x;
int i = 0;
while (1) {
i++;
cin >> x;
if (x == 0)
break;
cout << "Case " << i << ": " << x << endl;
}
} | [
"literal.string.change",
"io.output.change"
] | 233,293 | 233,294 | u919855634 | cpp |
p02489 | #include <iostream>
using namespace std;
int main() {
int x;
int i = 0;
while (1) {
i++;
cin >> x;
if (x == 0)
break;
cout << "Case " << i << ":" << x << "\n" << endl;
}
} | #include <iostream>
using namespace std;
int main() {
int x;
int i = 0;
while (1) {
i++;
cin >> x;
if (x == 0)
break;
cout << "Case " << i << ": " << x << endl;
}
} | [
"literal.string.change",
"io.output.change",
"expression.operation.binary.remove"
] | 233,295 | 233,294 | u919855634 | cpp |
p02489 | #include <iostream>
using namespace std;
int main() {
int x;
int i = 0;
while (1) {
i++;
cin >> x;
if (x == 0)
break;
cout << "Case " << i << ": " << x << "\n" << endl;
}
} | #include <iostream>
using namespace std;
int main() {
int x;
int i = 0;
while (1) {
i++;
cin >> x;
if (x == 0)
break;
cout << "Case " << i << ": " << x << endl;
}
} | [
"expression.operation.binary.remove"
] | 233,296 | 233,294 | u919855634 | cpp |
p02489 | #include <algorithm>
#include <cmath>
#include <complex>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <functional>
#include <iostream>
#include <list>
#include <map>
#include <numeric>
#include <queue>
#include <set>
#include <sstream>
#include <stack>
#include <string>
#include <vector>
#define mp... | #include <algorithm>
#include <cmath>
#include <complex>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <functional>
#include <iostream>
#include <list>
#include <map>
#include <numeric>
#include <queue>
#include <set>
#include <sstream>
#include <stack>
#include <string>
#include <vector>
#define mp... | [
"literal.string.change",
"call.arguments.change",
"io.output.change"
] | 233,297 | 233,298 | u041086527 | cpp |
p02489 |
#include <iostream>
#include <vector>
using namespace std;
int main(void) {
int input;
vector<int> arr;
while (cin >> input, input != 0) {
arr.push_back(input);
}
input = 0;
vector<int>::iterator it = arr.begin();
while (it != arr.end()) {
input++;
cout << "case " << input << ": " << *it <<... | #include <iostream>
#include <vector>
using namespace std;
int main(void) {
int input;
vector<int> arr;
while (cin >> input, input != 0) {
arr.push_back(input);
}
input = 0;
vector<int>::iterator it = arr.begin();
while (it != arr.end()) {
input++;
cout << "Case " << input << ": " << *it << ... | [
"literal.string.change",
"literal.string.case.change",
"io.output.change"
] | 233,299 | 233,300 | u989717497 | cpp |
p02489 | #include <iostream>
using namespace std;
int main() {
int i, j = 1;
cin >> i;
while (i != 0) {
cout << "Case" << j << ":" << i << endl;
j += 1;
cin >> i;
}
return 0;
} | #include <iostream>
using namespace std;
int main() {
int i, j = 1;
cin >> i;
while (i != 0) {
cout << "Case " << j << ": " << i << endl;
j += 1;
cin >> i;
}
return 0;
} | [
"literal.string.change",
"io.output.change"
] | 233,303 | 233,304 | u656012163 | cpp |
p02489 | #include <iostream>
using namespace std;
int main() {
int i, x;
i = 1;
cin >> x;
while (x > 0) {
cout << "case"
<< " " << i << " " << x << "\n";
i++;
cin >> x;
}
return 0;
} | #include <iostream>
using namespace std;
int main() {
int i, x;
i = 1;
cin >> x;
while (x > 0) {
cout << "Case"
<< " " << i << ": " << x << "\n";
i++;
cin >> x;
}
return 0;
} | [
"literal.string.change",
"literal.string.case.change",
"io.output.change"
] | 233,309 | 233,310 | u387614087 | cpp |
p02489 | #include <iostream>
using namespace std;
int main() {
int i, x;
i = 1;
cin >> x;
while (x > 0) {
cout << "case"
<< " " << i << ": " << x << "\n";
i++;
cin >> x;
}
return 0;
} | #include <iostream>
using namespace std;
int main() {
int i, x;
i = 1;
cin >> x;
while (x > 0) {
cout << "Case"
<< " " << i << ": " << x << "\n";
i++;
cin >> x;
}
return 0;
} | [
"literal.string.change",
"literal.string.case.change",
"io.output.change"
] | 233,311 | 233,310 | u387614087 | cpp |
p02489 | #include <algorithm>
#include <iostream>
using namespace std;
int main() {
int i = 0, x = 0;
while (1) {
cin >> x;
if (x)
break;
cout << "Case " << i << ": " << x << endl;
i++;
}
return 0;
} | #include <algorithm>
#include <iostream>
using namespace std;
int main() {
int i = 1, x = 0;
while (1) {
cin >> x;
if (x == 0)
break;
cout << "Case " << i << ": " << x << endl;
i++;
}
return 0;
} | [
"literal.number.change",
"variable_declaration.value.change",
"control_flow.branch.if.condition.change"
] | 234,140 | 234,141 | u166871190 | cpp |
p02489 | #include <stdio.h>
int main(void) {
int cnt = 1, x = 0;
while (1) {
scanf("%d", &x);
if (x == 0)
break;
printf("case %d: %d\n", cnt, x);
cnt++;
}
return 0;
} | #include <stdio.h>
int main(void) {
int cnt = 1, x = 0;
while (1) {
scanf("%d", &x);
if (x == 0) {
break;
} else {
printf("Case %d: %d\n", cnt, x);
cnt++;
}
}
return 0;
} | [
"control_flow.branch.else.add",
"literal.string.change",
"literal.string.case.change",
"call.arguments.change",
"io.output.change"
] | 234,149 | 234,150 | u026981818 | cpp |
p02489 | #include <stdio.h>
int main(void) {
int cnt = 1, x = 0;
while (1) {
scanf("%d", &x);
if (x == 0) {
break;
} else {
printf("case %d: %d\n", cnt, x);
cnt++;
}
}
return 0;
} | #include <stdio.h>
int main(void) {
int cnt = 1, x = 0;
while (1) {
scanf("%d", &x);
if (x == 0) {
break;
} else {
printf("Case %d: %d\n", cnt, x);
cnt++;
}
}
return 0;
} | [
"literal.string.change",
"literal.string.case.change",
"call.arguments.change",
"io.output.change"
] | 234,151 | 234,150 | u026981818 | cpp |
p02489 | #include <iostream>
using namespace std;
int main() {
int x, i = 1;
while (1) {
cin >> x;
if (x == 0)
break;
cout << "Case" << i << ": " << x << endl;
i++;
}
return 0;
} | #include <iostream>
using namespace std;
int main() {
int x, i = 1;
while (1) {
cin >> x;
if (x == 0)
break;
cout << "Case " << i << ": " << x << endl;
i++;
}
return 0;
} | [
"literal.string.change",
"io.output.change"
] | 234,152 | 234,153 | u174665230 | cpp |
p02489 | #include <stdio.h>
int main(void) {
int x = 0;
for (int i = 1;; i++) {
scanf("%d", &x);
if (x == 0) {
break;
}
printf("Case %d: %d\n", i, x);
i++;
}
} | #include <stdio.h>
int main(void) {
int x = 0;
for (int i = 1;; i++) {
scanf("%d", &x);
if (x == 0) {
break;
}
printf("Case %d: %d\n", i, x);
}
} | [
"expression.unary.arithmetic.remove"
] | 234,154 | 234,155 | u670212551 | cpp |
p02489 | #include <iostream>
using namespace std;
int main() {
int cnt = 1;
while (true) {
int x;
cin >> x;
if (x == 0)
return 0;
cout << "Case " << cnt << ": " << x << endl;
}
return 0;
} | #include <iostream>
using namespace std;
int main() {
int cnt = 1;
while (true) {
int x;
cin >> x;
if (x == 0)
return 0;
cout << "Case " << cnt << ": " << x << endl;
++cnt;
}
return 0;
} | [
"expression.unary.arithmetic.add"
] | 234,156 | 234,157 | u301090561 | cpp |
p02534 | #include <bits/stdc++.h>
using namespace std;
int main() {
int k;
for (int i = 0; i < k; i++)
cout << "ACL";
} | #include <bits/stdc++.h>
using namespace std;
int main() {
int k;
cin >> k;
for (int i = 0; i < k; i++)
cout << "ACL";
}
| [] | 239,875 | 239,876 | u736776457 | cpp |
p02534 | #include <iostream>
using namespace std;
int main(void) {
int n;
while (n--) {
cout << "ACL";
}
} | #include <iostream>
using namespace std;
int main(void) {
int n;
cin >> n;
while (n--) {
cout << "ACL";
}
} | [] | 239,890 | 239,891 | u775239944 | cpp |
p02534 | #include <bits/stdc++.h>
using namespace std;
int main() {
string s = "ACL";
int t;
cin >> t;
while (t--) {
s += "ACL";
}
cout << s << endl;
}
| #include <bits/stdc++.h>
using namespace std;
int main() {
string s;
int t;
cin >> t;
while (t--) {
s += "ACL";
}
cout << s << endl;
} | [] | 239,896 | 239,897 | u987079769 | cpp |
p02534 | #include <iostream>
using namespace std;
int main() {
string s = "ABC";
int n;
cin >> n;
for (int i = 0; i < n; i++) {
cout << s;
}
return 0;
} | #include <iostream>
using namespace std;
int main() {
string s = "ACL";
int n;
cin >> n;
for (int i = 0; i < n; i++) {
cout << s;
}
return 0;
} | [
"literal.string.change",
"variable_declaration.value.change"
] | 239,898 | 239,899 | u245386256 | cpp |
p02534 | #include <iostream>
#include <string>
using namespace std;
int main() {
string a = "ALC";
int k;
cin >> k;
for (int i = 0; i < k; i++) {
cout << a;
}
return 0;
} | #include <iostream>
#include <string>
using namespace std;
int main() {
string a = "ALC";
int k;
cin >> k;
for (int i = 0; i < k; i++) {
cout << "ACL";
}
return 0;
}
| [
"io.output.change"
] | 239,910 | 239,911 | u818967913 | cpp |
p02534 | #include <bits/stdc++.h>
using namespace std;
signed main() {
int k;
cin >> k;
while (k--)
cout << "ACL" << endl;
}
| #include <bits/stdc++.h>
using namespace std;
signed main() {
int k;
cin >> k;
while (k--)
cout << "ACL";
cout << endl;
}
| [] | 239,918 | 239,919 | u942774736 | cpp |
p02534 | #include <bits/stdc++.h>
using namespace std;
#define rep(i, n) for (int i = 0; i < n; i++)
using ll = long long;
int main() {
int k;
cin >> k;
rep(i, k) cout << "ACL" << endl;
cout << endl;
} | #include <bits/stdc++.h>
using namespace std;
#define rep(i, n) for (int i = 0; i < n; i++)
using ll = long long;
int main() {
int k;
cin >> k;
rep(i, k) cout << "ACL";
cout << endl;
} | [
"expression.operation.binary.remove"
] | 239,922 | 239,923 | u918529265 | cpp |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.