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 |
|---|---|---|---|---|---|---|---|
p03841 | #include <bits/stdc++.h>
#define MP make_pair
#define F first
#define PB push_back
#define S second
using namespace std;
typedef long long ll;
typedef long double ld;
typedef pair<int, int> pii;
const int mod = (int)1e9 + 7;
const int maxn = 500 + 4;
const int inf = (int)1e9;
pii p[maxn];
int n, ted[maxn], Ted[maxn], ... | #include <bits/stdc++.h>
#define MP make_pair
#define F first
#define PB push_back
#define S second
using namespace std;
typedef long long ll;
typedef long double ld;
typedef pair<int, int> pii;
const int mod = (int)1e9 + 7;
const int maxn = 500 + 4;
const int inf = (int)1e9;
pii p[maxn];
int n, ted[maxn], Ted[maxn], ... | [
"control_flow.branch.while.replace.add",
"control_flow.loop.if.replace.remove"
] | 1,460,538 | 1,460,539 | u001596356 | cpp |
p03841 | #include <algorithm>
#include <cmath>
#include <cstdio>
#include <cstring>
#include <iostream>
using namespace std;
struct W {
int i, x;
} w[510];
int cnt[510], res[510];
bool cmp(W a, W b) { return a.x < b.x; }
int n, p, tot, k;
int cntx[250010];
int main() {
scanf("%d", &n);
for (int i = 1; i <= n; i++) {
s... | #include <algorithm>
#include <cmath>
#include <cstdio>
#include <cstring>
#include <iostream>
using namespace std;
struct W {
int i, x;
} w[510];
int cnt[510], res[510];
bool cmp(W a, W b) { return a.x < b.x; }
int n, p, tot, k;
int cntx[250010];
int main() {
scanf("%d", &n);
for (int i = 1; i <= n; i++) {
s... | [
"control_flow.branch.while.replace.add",
"control_flow.loop.if.replace.remove"
] | 1,460,548 | 1,460,549 | u632779046 | cpp |
p03841 | #include <algorithm>
#include <cmath>
#include <cstdio>
#include <cstring>
#include <iostream>
using namespace std;
struct W {
int i, x;
} w[510];
int cnt[510], res[510];
bool cmp(W a, W b) { return a.x < b.x; }
int n, p, tot, k;
int cntx[250010];
int main() {
scanf("%d", &n);
for (int i = 1; i <= n; i++) {
s... | #include <algorithm>
#include <cmath>
#include <cstdio>
#include <cstring>
#include <iostream>
using namespace std;
struct W {
int i, x;
} w[510];
int cnt[510], res[510];
bool cmp(W a, W b) { return a.x < b.x; }
int n, p, tot, k;
int cntx[250010];
int main() {
scanf("%d", &n);
for (int i = 1; i <= n; i++) {
s... | [
"literal.number.change",
"assignment.value.change",
"control_flow.branch.while.replace.add",
"control_flow.loop.if.replace.remove"
] | 1,460,550 | 1,460,549 | u632779046 | cpp |
p03841 | #include <bits/stdc++.h>
using namespace std;
typedef long long LL;
int read() {
char c = getchar();
int f = 1, sum = 0;
while (c < '0' || c > '9') {
if (c == '-')
f = -1;
c = getchar();
}
while (c >= '0' && c <= '9') {
sum = sum * 10 + c - '0';
c = getchar();
}
return sum * f;
}
int... | #include <bits/stdc++.h>
using namespace std;
typedef long long LL;
int read() {
char c = getchar();
int f = 1, sum = 0;
while (c < '0' || c > '9') {
if (c == '-')
f = -1;
c = getchar();
}
while (c >= '0' && c <= '9') {
sum = sum * 10 + c - '0';
c = getchar();
}
return sum * f;
}
int... | [
"literal.string.change",
"literal.string.case.change",
"call.arguments.change",
"io.output.change"
] | 1,460,551 | 1,460,552 | u913451759 | cpp |
p03841 | #include <bits/stdc++.h>
using namespace std;
typedef long long LL;
int read() {
char c = getchar();
int f = 1, sum = 0;
while (c < '0' || c > '9') {
if (c == '-')
f = -1;
c = getchar();
}
while (c >= '0' && c <= '9') {
sum = sum * 10 + c - '0';
c = getchar();
}
return sum * f;
}
int... | #include <bits/stdc++.h>
using namespace std;
typedef long long LL;
int read() {
char c = getchar();
int f = 1, sum = 0;
while (c < '0' || c > '9') {
if (c == '-')
f = -1;
c = getchar();
}
while (c >= '0' && c <= '9') {
sum = sum * 10 + c - '0';
c = getchar();
}
return sum * f;
}
int... | [
"literal.string.change",
"literal.string.case.change",
"call.arguments.change",
"io.output.change"
] | 1,460,553 | 1,460,552 | u913451759 | cpp |
p03841 | // waz
#include <bits/stdc++.h>
using namespace std;
#define mp make_pair
#define pb push_back
#define fi first
#define se second
#define ALL(x) (x).begin(), (x).end()
#define SZ(x) ((int)((x).size()))
typedef pair<int, int> PII;
typedef vector<int> VI;
typedef long long int64;
typedef unsigned int uint;
typedef uns... | // waz
#include <bits/stdc++.h>
using namespace std;
#define mp make_pair
#define pb push_back
#define fi first
#define se second
#define ALL(x) (x).begin(), (x).end()
#define SZ(x) ((int)((x).size()))
typedef pair<int, int> PII;
typedef vector<int> VI;
typedef long long int64;
typedef unsigned int uint;
typedef uns... | [
"control_flow.loop.for.initializer.change"
] | 1,460,562 | 1,460,563 | u023010491 | cpp |
p03841 | #include <algorithm>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <set>
#define MAXN 300000
int n, m, k, x[MAXN], id[MAXN], ans[MAXN], sum[MAXN];
int main() {
scanf("%d", &n);
m = n * n;
for (int i = 1; i <= n; i++) {
scanf("%d", &x[i]);
id[i] = ans[x[i]] = i;
}
std::sort(id + 1, i... | #include <algorithm>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <set>
#define MAXN 300000
int n, m, k, x[MAXN], id[MAXN], ans[MAXN], sum[MAXN];
int main() {
scanf("%d", &n);
m = n * n;
for (int i = 1; i <= n; i++) {
scanf("%d", &x[i]);
id[i] = ans[x[i]] = i;
}
std::sort(id + 1, i... | [
"control_flow.branch.if.condition.change",
"control_flow.loop.for.condition.change"
] | 1,460,566 | 1,460,567 | u117805258 | cpp |
p03841 | #include <algorithm>
#include <cmath>
#include <cstdio>
#include <cstring>
#include <iostream>
using namespace std;
const int N = 510;
int a[N], id[N], w[N * N];
inline int gi() {
int x = 0, o = 1;
char ch = getchar();
while (ch != '-' && (ch < '0' || ch > '9'))
ch = getchar();
if (ch == '-')
o = -1, ch... | #include <algorithm>
#include <cmath>
#include <cstdio>
#include <cstring>
#include <iostream>
using namespace std;
const int N = 510;
int a[N], id[N], w[N * N];
inline int gi() {
int x = 0, o = 1;
char ch = getchar();
while (ch != '-' && (ch < '0' || ch > '9'))
ch = getchar();
if (ch == '-')
o = -1, ch... | [
"literal.string.change",
"literal.string.case.change",
"call.arguments.change",
"function.return_value.change",
"io.output.change"
] | 1,460,568 | 1,460,569 | u069135055 | cpp |
p03841 | #include <algorithm>
#include <iostream>
#include <utility>
using namespace std;
int i, j, n, x[510], a[300000], b[300000], y[510];
pair<int, int> p[510];
int main() {
cin >> n;
for (i = 1; i <= n; i++) {
cin >> x[i];
a[x[i]] = i;
b[x[i]] = 1;
y[i] = n - i;
p[i] = make_pair(x[i], i);
}
fo... | #include <algorithm>
#include <iostream>
#include <utility>
using namespace std;
int i, j, n, x[510], a[300000], b[300000], y[510];
pair<int, int> p[510];
int main() {
cin >> n;
for (i = 1; i <= n; i++) {
cin >> x[i];
a[x[i]] = i;
b[x[i]] = 1;
y[i] = n - i;
p[i] = make_pair(x[i], i);
}
fo... | [
"control_flow.branch.if.condition.change",
"control_flow.loop.for.condition.change"
] | 1,460,570 | 1,460,571 | u621509943 | cpp |
p03841 | #include <bits/stdc++.h>
using namespace std;
const int MAXN = 505;
int n, a[MAXN];
int v[MAXN * MAXN];
pair<int, int> pos[MAXN];
int main() {
scanf("%d", &n);
for (int i = 1; i <= n; i++)
scanf("%d", &a[i]), v[a[i]] = i, pos[i] = make_pair(a[i], i);
sort(pos + 1, pos + n + 1);
int j = 1;
for (int t =... | #include <bits/stdc++.h>
using namespace std;
const int MAXN = 505;
int n, a[MAXN];
int v[MAXN * MAXN];
pair<int, int> pos[MAXN];
int main() {
scanf("%d", &n);
for (int i = 1; i <= n; i++)
scanf("%d", &a[i]), v[a[i]] = i, pos[i] = make_pair(a[i], i);
sort(pos + 1, pos + n + 1);
int j = 1;
for (int t =... | [
"control_flow.loop.condition.change",
"control_flow.loop.for.condition.change"
] | 1,460,572 | 1,460,573 | u246490941 | cpp |
p03841 | #include <bits/stdc++.h>
using namespace std;
const int MAXN = 505;
int n, a[MAXN];
int v[MAXN * MAXN];
pair<int, int> pos[MAXN];
int main() {
scanf("%d", &n);
for (int i = 1; i <= n; i++)
scanf("%d", &a[i]), v[a[i]] = i, pos[i] = make_pair(a[i], i);
sort(pos + 1, pos + n + 1);
int j = 1;
for (int t =... | #include <bits/stdc++.h>
using namespace std;
const int MAXN = 505;
int n, a[MAXN];
int v[MAXN * MAXN];
pair<int, int> pos[MAXN];
int main() {
scanf("%d", &n);
for (int i = 1; i <= n; i++)
scanf("%d", &a[i]), v[a[i]] = i, pos[i] = make_pair(a[i], i);
sort(pos + 1, pos + n + 1);
int j = 1;
for (int t =... | [
"control_flow.loop.condition.change",
"control_flow.loop.for.condition.change"
] | 1,460,574 | 1,460,573 | u246490941 | cpp |
p03841 | #include <bits/stdc++.h>
#define x first
#define y second
#define mp make_pair
// everything go according to my plan
#define pb push_back
#define sz(a) (int)(a.size())
#define vec vector
// shimkenttin kyzdary, dzyn, dzyn, dzyn...
#define y1 Y_U_NO_y1
#define left Y_U_NO_left
#define right Y_U_NO_right
using namespac... | #include <bits/stdc++.h>
#define x first
#define y second
#define mp make_pair
// everything go according to my plan
#define pb push_back
#define sz(a) (int)(a.size())
#define vec vector
// shimkenttin kyzdary, dzyn, dzyn, dzyn...
#define y1 Y_U_NO_y1
#define left Y_U_NO_left
#define right Y_U_NO_right
using namespac... | [
"io.output.change"
] | 1,460,579 | 1,460,580 | u866209772 | cpp |
p03841 | #include <bits/stdc++.h>
#define x first
#define y second
#define mp make_pair
// everything go according to my plan
#define pb push_back
#define sz(a) (int)(a.size())
#define vec vector
// shimkenttin kyzdary, dzyn, dzyn, dzyn...
#define y1 Y_U_NO_y1
#define left Y_U_NO_left
#define right Y_U_NO_right
using namespac... | #include <bits/stdc++.h>
#define x first
#define y second
#define mp make_pair
// everything go according to my plan
#define pb push_back
#define sz(a) (int)(a.size())
#define vec vector
// shimkenttin kyzdary, dzyn, dzyn, dzyn...
#define y1 Y_U_NO_y1
#define left Y_U_NO_left
#define right Y_U_NO_right
using namespac... | [
"io.output.change"
] | 1,460,581 | 1,460,582 | u866209772 | cpp |
p03841 | #include <bits/stdc++.h>
using namespace std;
int N;
vector<pair<int, int>> Q;
int R[500 * 500];
int main() {
cin >> N;
for (int i = 1; i <= N; ++i) {
int x;
cin >> x;
--x;
Q.push_back(make_pair(x, i));
}
sort(Q.begin(), Q.end());
int h = 0;
for (int q = 0; q < N; ++q) {
int x = Q[q].f... | #include <bits/stdc++.h>
using namespace std;
int N;
vector<pair<int, int>> Q;
int R[500 * 500];
int main() {
cin >> N;
for (int i = 1; i <= N; ++i) {
int x;
cin >> x;
--x;
Q.push_back(make_pair(x, i));
}
sort(Q.begin(), Q.end());
int h = 0;
for (int q = 0; q < N; ++q) {
int x = Q[q].f... | [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 1,460,585 | 1,460,586 | u637938292 | cpp |
p03841 | #include <bits/stdc++.h>
#define ll long long
#define INF 999999999
#define MOD 1000000007
using namespace std;
typedef pair<int, int> P;
const int MAX_N = 500;
P x[MAX_N];
int a[250000];
int main() {
int n, xx;
bool flag = false;
scanf("%d", &n);
for (int i = 0; i < n; i++) {
scanf("%d", &xx);
x[i... | #include <bits/stdc++.h>
#define ll long long
#define INF 999999999
#define MOD 1000000007
using namespace std;
typedef pair<int, int> P;
const int MAX_N = 500;
P x[MAX_N];
int a[250000];
int main() {
int n, xx;
bool flag = false;
scanf("%d", &n);
for (int i = 0; i < n; i++) {
scanf("%d", &xx);
x[i... | [
"literal.string.change",
"literal.string.case.change",
"io.output.change"
] | 1,460,592 | 1,460,593 | u509674552 | cpp |
p03841 | #include <algorithm>
#include <cstdio>
#include <cstring>
#include <iostream>
using namespace std;
struct P {
int k, w;
} a[505];
int n, m, b[505], ans[300005];
bool cmp(P a, P b) { return a.w < b.w; }
bool solve() {
for (int i = 1; i <= n; i++)
ans[b[i]] = i, a[i].k = i, a[i].w = b[i];
sort(a + 1, a + n + 1,... | #include <algorithm>
#include <cstdio>
#include <cstring>
#include <iostream>
using namespace std;
struct P {
int k, w;
} a[505];
int n, m, b[505], ans[300005];
bool cmp(P a, P b) { return a.w < b.w; }
bool solve() {
for (int i = 1; i <= n; i++)
ans[b[i]] = i, a[i].k = i, a[i].w = b[i];
sort(a + 1, a + n + 1,... | [
"control_flow.branch.while.replace.add",
"control_flow.loop.if.replace.remove",
"control_flow.loop.condition.change",
"control_flow.loop.for.condition.change"
] | 1,460,594 | 1,460,595 | u743451419 | cpp |
p03841 | #include <bits/stdc++.h>
using namespace std;
#define int long long
using ll = long long;
using vi = vector<int>;
using pii = pair<int, int>;
#define ALL(c) begin(c), end(c)
#define RALL(c) rbegin(c), rend(c)
#define ITR(i, b, e) for (auto i = (b); i != (e); ++i)
#define FORE(x, c) for (auto &x : c)
#define REPF(i, a, ... | #include <bits/stdc++.h>
using namespace std;
#define int long long
using ll = long long;
using vi = vector<int>;
using pii = pair<int, int>;
#define ALL(c) begin(c), end(c)
#define RALL(c) rbegin(c), rend(c)
#define ITR(i, b, e) for (auto i = (b); i != (e); ++i)
#define FORE(x, c) for (auto &x : c)
#define REPF(i, a, ... | [
"expression.operation.binary.add"
] | 1,460,598 | 1,460,599 | u133129810 | cpp |
p03841 | #include <bits/stdc++.h>
using namespace std;
typedef long long int LL;
typedef LL ll;
typedef long double ld;
typedef string str;
typedef pair<ll, ll> pll;
typedef vector<ll> vll;
typedef stringstream strs;
#define X first
#define Y second
#define PB push_back
#define For(i, a, b) for (int i = a; i < b; i++)
#defin... | #include <bits/stdc++.h>
using namespace std;
typedef long long int LL;
typedef LL ll;
typedef long double ld;
typedef string str;
typedef pair<ll, ll> pll;
typedef vector<ll> vll;
typedef stringstream strs;
#define X first
#define Y second
#define PB push_back
#define For(i, a, b) for (int i = a; i < b; i++)
#defin... | [
"literal.string.change",
"literal.string.case.change",
"call.arguments.change",
"io.output.change"
] | 1,460,602 | 1,460,603 | u059425619 | cpp |
p03841 | #include <algorithm>
#include <cassert>
#include <cctype>
#include <cstdio>
#include <cstring>
#include <iostream>
using namespace std;
typedef long long lint;
#define cout cerr
#define ni (next_num<int>())
template <class T> inline T next_num() {
T i = 0;
char c;
while (!isdigit(c = getchar()) && c != '-')
;... | #include <algorithm>
#include <cassert>
#include <cctype>
#include <cstdio>
#include <cstring>
#include <iostream>
using namespace std;
typedef long long lint;
#define cout cerr
#define ni (next_num<int>())
template <class T> inline T next_num() {
T i = 0;
char c;
while (!isdigit(c = getchar()) && c != '-')
;... | [
"identifier.change",
"call.arguments.change",
"expression.operation.binary.change"
] | 1,460,608 | 1,460,609 | u582628622 | cpp |
p03844 | #include <bits/stdc++.h>
using namespace std;
int main() {
int A = 0, B = 0;
char op;
cin >> A >> op >> B;
if (op == '+')
cout << A + B << endl;
if (op == '-')
cout << A - B << endl;
else
cout << "error" << endl;
} | #include <bits/stdc++.h>
using namespace std;
int main() {
int A = 0, B = 0;
char op;
cin >> A >> op >> B;
if (op == '+')
cout << A + B << endl;
else if (op == '-')
cout << A - B << endl;
else
cout << "error" << endl;
} | [
"control_flow.branch.else_if.replace.add",
"control_flow.branch.if.replace.remove"
] | 1,460,618 | 1,460,619 | u396544834 | cpp |
p03844 | #include <algorithm>
#include <cmath>
#include <functional>
#include <iostream>
#include <map>
#include <queue>
#include <set>
#include <stack>
#include <string>
#include <utility>
#include <vector>
using namespace std;
int main() {
int a, b;
string s;
cin >> a;
cin >> s;
cin >> b;
if (s[0] == '+')
co... | #include <algorithm>
#include <cmath>
#include <functional>
#include <iostream>
#include <map>
#include <queue>
#include <set>
#include <stack>
#include <string>
#include <utility>
#include <vector>
using namespace std;
int main() {
int a, b;
string s;
cin >> a;
cin >> s;
cin >> b;
if (s[0] == '+')
co... | [
"literal.string.change",
"expression.operator.arithmetic.change",
"control_flow.branch.if.condition.change",
"io.output.change"
] | 1,460,624 | 1,460,625 | u875377810 | cpp |
p03844 | #include <bits/stdc++.h>
#define ll long long
#define rep(i, begin, end) \
for (__typeof(end) i = (begin) - ((begin) > (end)); \
i != (end) - ((begin) > (end)); \
i += 1 - 2 * ((begin) > ... | #include <bits/stdc++.h>
#define ll long long
#define rep(i, begin, end) \
for (__typeof(end) i = (begin) - ((begin) > (end)); \
i != (end) - ((begin) > (end)); \
i += 1 - 2 * ((begin) > ... | [
"identifier.change",
"control_flow.branch.if.condition.change"
] | 1,460,628 | 1,460,629 | u494904817 | cpp |
p03844 | #define _GLIBCXX_DEBUG
#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
typedef string str;
typedef vector<ll> vel;
typedef vector<str> ves;
#define REP(i, a, b) for (ll i = (ll)(a); i < (ll)(b); i++)
#define rep(i, b) REP(i, 0, b)
const ll mod = 1000000007;
const double pi = 3.14159265358979;
int m... | #define _GLIBCXX_DEBUG
#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
typedef string str;
typedef vector<ll> vel;
typedef vector<str> ves;
#define REP(i, a, b) for (ll i = (ll)(a); i < (ll)(b); i++)
#define rep(i, b) REP(i, 0, b)
const ll mod = 1000000007;
const double pi = 3.14159265358979;
int m... | [
"expression.operation.compare.replace.add",
"assignment.replace.remove",
"misc.typo"
] | 1,460,630 | 1,460,631 | u907470767 | cpp |
p03844 | #include <bits/stdc++.h>
using namespace std;
int main() {
int A, B;
char op;
cin >> A >> B >> op;
if (op == '+') {
cout << A + B << endl;
} else {
cout << A - B << endl;
}
}
| #include <bits/stdc++.h>
using namespace std;
int main() {
int A, B;
char op;
cin >> A >> op >> B;
if (op == '+') {
cout << A + B << endl;
} else {
cout << A - B << endl;
}
}
| [
"expression.operation.binary.remove"
] | 1,460,642 | 1,460,643 | u888304528 | cpp |
p03844 | #include <bits/stdc++.h>
using namespace std;
int main() {
int a, c;
char b;
cin >> a >> b >> c;
if (b == '+')
cout << a + b << endl;
if (b == '-')
cout << a - b << endl;
}
| #include <bits/stdc++.h>
using namespace std;
int main() {
int a, c;
char b;
cin >> a >> b >> c;
if (b == '+')
cout << a + c << endl;
if (b == '-')
cout << a - c << endl;
}
| [
"identifier.change",
"io.output.change"
] | 1,460,644 | 1,460,645 | u932070414 | cpp |
p03844 | #include <bits/stdc++.h>
using namespace std;
int main() {
int A, B, C;
char op;
cin >> A >> op >> B;
if (op == '+') {
C = A + B;
} else if (op == '-') {
C = A = B;
}
cout << C << endl;
} | #include <bits/stdc++.h>
using namespace std;
int main() {
int A, B, C;
char op;
cin >> A >> op >> B;
if (op == '+') {
C = A + B;
} else if (op == '-') {
C = A - B;
}
cout << C << endl;
} | [
"assignment.value.change"
] | 1,460,648 | 1,460,649 | u093709294 | cpp |
p03844 | #include <bits/stdc++.h>
using namespace std;
int main() {
int a, b;
char c;
cin >> a >> c >> b;
if (c = '+') {
cout << a + b << endl;
} else {
cout << a - b << endl;
}
}
| #include <bits/stdc++.h>
using namespace std;
int main() {
long long a, b;
char c;
cin >> a >> c >> b;
if (c == '+') {
cout << a + b << endl;
} else {
cout << a - b << endl;
}
}
| [
"variable_declaration.type.primitive.change",
"variable_declaration.type.widen.change",
"expression.operation.compare.replace.add",
"assignment.replace.remove",
"misc.typo"
] | 1,460,652 | 1,460,653 | u499188455 | cpp |
p03844 | #include <bits/stdc++.h>
using namespace std;
int main() {
int A, B;
char op;
cin >> A >> B >> op;
if (op == '+') {
cout << A + B << endl;
}
if (op == '-') {
cout << A - B << endl;
}
}
| #include <bits/stdc++.h>
using namespace std;
int main() {
int A, B;
char op;
cin >> A >> op >> B;
if (op == '+') {
cout << A + B << endl;
}
if (op == '-') {
cout << A - B << endl;
}
}
| [
"expression.operation.binary.remove"
] | 1,460,660 | 1,460,661 | u997102595 | cpp |
p03844 | #include <bits/stdc++.h>
using namespace std;
int main() {
int A, B;
char op;
cin >> A >> op >> B;
if (op = '+')
cout << A + B << endl;
else if (op = '-')
cout << A - B << endl;
} | #include <bits/stdc++.h>
using namespace std;
int main() {
int A, B;
char op;
cin >> A >> op >> B;
if (op == '+')
cout << A + B << endl;
else if (op == '-')
cout << A - B << endl;
} | [
"expression.operation.compare.replace.add",
"assignment.replace.remove",
"misc.typo"
] | 1,460,688 | 1,460,689 | u556774846 | cpp |
p03844 | #include <bits/stdc++.h>
using namespace std;
int main() {
char x;
long long int a, b, c;
cin >> a, x, b;
if (x == '+') {
c = a + b;
} else if (x == '-') {
c = a - b;
}
cout << c;
}
| #include <bits/stdc++.h>
using namespace std;
int main() {
char x;
long long int a, b, c;
cin >> a >> x >> b;
if (x == '+') {
c = a + b;
} else if (x == '-') {
c = a - b;
}
cout << c;
}
| [] | 1,460,692 | 1,460,693 | u862044224 | cpp |
p03844 | #include <bits/stdc++.h>
using namespace std;
int main() {
int a, b;
char x;
cin >> a >> x >> b;
if (x = '+')
cout << a + b << endl;
if (x != '+')
cout << a - b << endl;
return 0;
}
| #include <bits/stdc++.h>
using namespace std;
int main() {
int a, b;
char x;
cin >> a >> x >> b;
if (x == '+')
cout << a + b << endl;
if (x != '+')
cout << a - b << endl;
return 0;
}
| [
"expression.operation.compare.replace.add",
"assignment.replace.remove",
"misc.typo"
] | 1,460,696 | 1,460,697 | u263933075 | cpp |
p03844 | #include <bits/stdc++.h>
#include <math.h>
#define REP(i, n) for (int i = 0; i < (n); i++)
#define ALL(v) (v).begin(), (v).end()
using namespace std;
typedef long long ll;
typedef pair<int, int> P;
const int INF = 1001001001;
const int mINF = -1001001001;
int main() {
ll a, b;
char c;
cin >> a >> c >> b;
if (c... | #include <bits/stdc++.h>
#include <math.h>
#define REP(i, n) for (int i = 0; i < (n); i++)
#define ALL(v) (v).begin(), (v).end()
using namespace std;
typedef long long ll;
typedef pair<int, int> P;
const int INF = 1001001001;
const int mINF = -1001001001;
int main() {
ll a, b;
char c;
cin >> a >> c >> b;
if (c... | [
"identifier.change",
"io.output.change"
] | 1,460,698 | 1,460,699 | u281876921 | cpp |
p03844 | #include <bits/stdc++.h>
using namespace std;
main() {
int A, B;
char op;
cin >> A >> op >> B;
if (op == '+') {
cout << A + B << endl;
} else if (op == '*') {
cout << A * B << endl;
}
}
| #include <bits/stdc++.h>
using namespace std;
main() {
int A, B;
char op;
cin >> A >> op >> B;
if (op == '+') {
cout << A + B << endl;
} else if (op == '-') {
cout << A - B << endl;
}
}
| [
"literal.string.change",
"expression.operator.arithmetic.change",
"control_flow.branch.if.condition.change",
"io.output.change"
] | 1,460,707 | 1,460,708 | u630743253 | cpp |
p03844 | #include <bits/stdc++.h>
using namespace std;
int main() {
int A, B;
char op;
cin >> A >> op >> B;
if (op = '+') {
cout << A + B << endl;
}
if (op = '-') {
cout << A - B << endl;
}
} | #include <bits/stdc++.h>
using namespace std;
int main() {
int A, B;
char op;
cin >> A >> op >> B;
if (op == '+') {
cout << A + B << endl;
}
if (op == '-') {
cout << A - B << endl;
}
} | [
"expression.operation.compare.replace.add",
"assignment.replace.remove",
"misc.typo"
] | 1,460,709 | 1,460,710 | u275409294 | cpp |
p03844 | #include <bits/stdc++.h>
using namespace std;
int main() {
int A, B;
char op;
cin >> A >> op >> B;
if (op = '+') {
cout << A + B << endl;
}
else if (op = '-') {
cout << A - B << endl;
}
} | #include <bits/stdc++.h>
using namespace std;
int main() {
int A, B;
char op;
cin >> A >> op >> B;
if (op == '+') {
cout << A + B << endl;
}
if (op == '-') {
cout << A - B << endl;
}
} | [
"expression.operation.compare.replace.add",
"assignment.replace.remove",
"misc.typo",
"control_flow.branch.if.replace.add",
"control_flow.branch.else_if.replace.remove"
] | 1,460,711 | 1,460,710 | u275409294 | cpp |
p03844 | #include <bits/stdc++.h>
using namespace std;
int main() {
int A, B;
char op;
cin >> A >> op >> B;
if (op = '+') {
cout << A + B << endl;
}
if (op = '-') {
cout << A - B << endl;
}
} | #include <bits/stdc++.h>
using namespace std;
int main() {
int A, B;
char op;
cin >> A >> op >> B;
if (op == '+') {
cout << A + B << endl;
}
if (op == '-') {
cout << A - B << endl;
}
} | [
"expression.operation.compare.replace.add",
"assignment.replace.remove",
"misc.typo"
] | 1,460,712 | 1,460,710 | u275409294 | cpp |
p03844 | #include <bits/stdc++.h>
using namespace std;
int main() {
int A, B;
char op;
cin >> A >> op >> B;
if (op = '+')
cout << A + B << endl;
else
cout << A - B << endl;
}
| #include <bits/stdc++.h>
using namespace std;
int main() {
int A, B;
char op;
cin >> A >> op >> B;
if (op == '+')
cout << A + B << endl;
else
cout << A - B << endl;
}
| [
"expression.operation.compare.replace.add",
"assignment.replace.remove",
"misc.typo"
] | 1,460,713 | 1,460,714 | u328811800 | cpp |
p03844 | #include <bits/stdc++.h>
using namespace std;
int main() {
int a;
char c;
int b;
cin >> a >> b >> c;
if (b == '+')
cout << a + b;
else
cout << a - b;
}
| #include <bits/stdc++.h>
using namespace std;
int main() {
int a;
char c;
int b;
cin >> a >> c >> b;
if (c == '+')
cout << a + b;
else
cout << a - b;
}
| [
"expression.operation.binary.remove",
"identifier.change",
"control_flow.branch.if.condition.change"
] | 1,460,715 | 1,460,716 | u508688268 | cpp |
p03844 | #include <bits/stdc++.h>
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
#include <algorithm>
#include <iostream>
#include <map>
#include <vector>
using namespace std;
using ll = long long;
using P = pair<int, int>;
int main() {
int a, b;
string op;
cin >> a >> b >> op;
if (op == "+")
cout << a + b <<... | #include <bits/stdc++.h>
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
#include <algorithm>
#include <iostream>
#include <map>
#include <vector>
using namespace std;
using ll = long long;
using P = pair<int, int>;
int main() {
int a, b;
char op;
cin >> a >> op >> b;
if (op == '+')
cout << a + b << e... | [
"variable_declaration.type.change",
"expression.operation.binary.remove",
"literal.string.change",
"control_flow.branch.if.condition.change"
] | 1,460,725 | 1,460,726 | u740686641 | cpp |
p03844 | #include <bits/stdc++.h>
using namespace std;
int main() {
int a, b;
char c;
cin >> a >> b >> c;
if (c == '+') {
cout << a + b << endl;
}
if (c == '-') {
cout << a - b << endl;
}
return 0;
} | #include <bits/stdc++.h>
using namespace std;
int main() {
int a, b;
char c;
cin >> a >> c >> b;
if (c == '+') {
cout << a + b << endl;
}
if (c == '-') {
cout << a - b << endl;
}
return 0;
}
| [
"expression.operation.binary.remove"
] | 1,460,739 | 1,460,740 | u966045029 | cpp |
p03844 | #include <bits/stdc++.h>
using namespace std;
int main() {
int a, b;
cin >> a;
char op;
cin >> op;
cin >> b;
if (op == '+')
cout << a + b;
else
return a - b;
return 0;
} | #include <bits/stdc++.h>
using namespace std;
int main() {
int a, b;
cin >> a;
char op;
cin >> op;
cin >> b;
if (op == '+')
cout << a + b;
else
cout << a - b;
return 0;
} | [
"io.output.change"
] | 1,460,746 | 1,460,747 | u131687651 | cpp |
p03844 | #pragma gcc optimize("Ofast")
#include <bits/stdc++.h>
using namespace std;
using ll = long long;
#define FOR(i, a, b) for (int i = (a); i < (b); ++i)
#define REP(i, n) FOR(i, 0, n)
#define ALL(V) (V).begin(), (V).end()
#define SORT(V) sort(ALL(V)) //小さい方からソート
#define REV(V) reverse(ALL(V)) //リバース
#define RSORT(V) ... | #pragma gcc optimize("Ofast")
#include <bits/stdc++.h>
using namespace std;
using ll = long long;
#define FOR(i, a, b) for (int i = (a); i < (b); ++i)
#define REP(i, n) FOR(i, 0, n)
#define ALL(V) (V).begin(), (V).end()
#define SORT(V) sort(ALL(V)) //小さい方からソート
#define REV(V) reverse(ALL(V)) //リバース
#define RSORT(V) ... | [
"identifier.change",
"call.arguments.change",
"control_flow.branch.if.condition.change",
"literal.string.change"
] | 1,460,749 | 1,460,750 | u154645927 | cpp |
p03844 | #include <bits/stdc++.h>
#include <iostream>
#include <vector>
#define rep(i, n) for (int i = 0; i < (n); ++i)
using namespace std;
typedef long long ll;
typedef pair<int, int> P;
#define pb push_back
#define eb emplace_back
#define fi first
#define se second
#define bg begin()
#define ed end()
#define all(x) x.bg, x.... | #include <bits/stdc++.h>
#include <iostream>
#include <vector>
#define rep(i, n) for (int i = 0; i < (n); ++i)
using namespace std;
typedef long long ll;
typedef pair<int, int> P;
#define pb push_back
#define eb emplace_back
#define fi first
#define se second
#define bg begin()
#define ed end()
#define all(x) x.bg, x.... | [
"expression.operation.binary.remove"
] | 1,460,757 | 1,460,758 | u885494445 | cpp |
p03844 | #include <iostream>
#include <string>
using namespace std;
int main() {
int a, b;
string op;
cin >> a >> b >> op;
if (op == "+") {
cout << a + b << endl;
} else
cout << a - b << endl;
} | #include <iostream>
#include <string>
using namespace std;
int main() {
int a, b;
string op;
cin >> a >> op >> b;
if (op == "+") {
cout << a + b << endl;
} else
cout << a - b << endl;
} | [
"expression.operation.binary.remove"
] | 1,460,767 | 1,460,768 | u513547482 | cpp |
p03844 | #include <bits/stdc++.h>
using namespace std;
int main() {
int a, b;
char op;
cin >> a >> b >> op;
if (op == '+')
cout << a + b << endl;
else
cout << a - b << endl;
} | #include <bits/stdc++.h>
using namespace std;
int main() {
int a, b;
char op;
cin >> a >> op >> b;
if (op == '+')
cout << a + b << endl;
else
cout << a - b << endl;
}
| [
"expression.operation.binary.remove"
] | 1,460,771 | 1,460,772 | u790461875 | cpp |
p03844 | #include <bits/stdc++.h>
using namespace std;
int main() {
int a, b;
char op;
cin >> a >> b >> op;
if (op == '+')
cout << a + b << endl;
else
cout << a - b << endl;
} | #include <bits/stdc++.h>
using namespace std;
int main() {
int a, b;
char c;
cin >> a >> c >> b;
if (c == '+')
cout << a + b << endl;
else
cout << a - b << endl;
}
| [
"identifier.change",
"expression.operation.binary.change",
"control_flow.branch.if.condition.change"
] | 1,460,771 | 1,460,773 | u790461875 | cpp |
p03844 | #include <bits/stdc++.h>
#include <ext/pb_ds/assoc_container.hpp>
#include <ext/pb_ds/tree_policy.hpp>
#define ll long long
#define ld long double
#define mk make_pair
#define fi first
#define se second
#define vll vector<ll>
#define pii pair<ll, ll>
#define vvll vector<vector<ll>>
#define pb push_back
#define sz(v) (v... | #include <bits/stdc++.h>
#include <ext/pb_ds/assoc_container.hpp>
#include <ext/pb_ds/tree_policy.hpp>
#define ll long long
#define ld long double
#define mk make_pair
#define fi first
#define se second
#define vll vector<ll>
#define pii pair<ll, ll>
#define vvll vector<vector<ll>>
#define pb push_back
#define sz(v) (v... | [
"io.output.change"
] | 1,460,782 | 1,460,783 | u742553775 | cpp |
p03844 | #include <bits/stdc++.h>
using namespace std;
#define rep(i, n) for (int i = 0; i < n; i++)
int main() {
int A, B;
char op;
cin >> A >> op >> B;
if (op == '+')
cout << A - B << endl;
else
cout << A - B << endl;
} | #include <bits/stdc++.h>
using namespace std;
#define rep(i, n) for (int i = 0; i < n; i++)
int main() {
int A, B;
char op;
cin >> A >> op >> B;
if (op == '+')
cout << A + B << endl;
else
cout << A - B << endl;
} | [
"misc.opposites",
"expression.operator.arithmetic.change",
"io.output.change"
] | 1,460,804 | 1,460,805 | u547754910 | cpp |
p03844 | #include <algorithm>
#include <cmath>
#include <iostream>
#include <string>
#include <vector>
using namespace std;
int main() {
long long n, a;
char b;
cin >> n >> b >> a;
if (b == '+') {
cout << n + a << endl;
} else {
cout << a - b << endl;
}
cin >> n;
} | #include <algorithm>
#include <cmath>
#include <iostream>
#include <string>
#include <vector>
using namespace std;
int main() {
long long n, a;
char b;
cin >> n >> b >> a;
if (b == '+') {
cout << n + a << endl;
} else {
cout << n - a << endl;
}
cin >> n;
} | [
"identifier.change",
"io.output.change"
] | 1,460,818 | 1,460,819 | u986568278 | cpp |
p03844 | #include <bits/stdc++.h>
using namespace std;
int main() {
int a, b;
char c;
cin >> a >> c >> b;
if (c == '+') {
cout << a + b << endl;
}
if (c == '-') {
cout << a + b << endl;
}
}
| #include <bits/stdc++.h>
using namespace std;
int main() {
int a, b;
char c;
cin >> a >> c >> b;
if (c == '+') {
cout << a + b << endl;
}
if (c == '-') {
cout << a - b << endl;
}
}
| [
"misc.opposites",
"expression.operator.arithmetic.change",
"io.output.change"
] | 1,460,826 | 1,460,827 | u902149880 | cpp |
p03844 | #include <algorithm>
#include <cmath>
#include <iostream>
#include <vector>
int main() {
long A, B;
std::string S;
std::cin >> A >> S >> B;
if (A == '+') {
std::cout << A + B << std::endl;
} else {
std::cout << A - B << std::endl;
}
return 0;
} | #include <algorithm>
#include <cmath>
#include <iostream>
#include <vector>
int main() {
long A, B;
std::string S;
std::cin >> A >> S >> B;
if (S == "+") {
std::cout << A + B << std::endl;
} else {
std::cout << A - B << std::endl;
}
return 0;
} | [
"identifier.change",
"control_flow.branch.if.condition.change",
"literal.string.change"
] | 1,460,828 | 1,460,829 | u329731898 | cpp |
p03844 | #include <iostream>
#include <string>
using namespace std;
int main() {
int a, b, x;
cin >> a >> x >> b;
if (x == '+')
cout << a + b << endl;
else
cout << a - b << endl;
} | #include <iostream>
#include <string>
using namespace std;
int main() {
int a, b;
char x;
cin >> a >> x >> b;
if (x == '+')
cout << a + b << endl;
else
cout << a - b << endl;
} | [
"variable_declaration.type.change"
] | 1,460,844 | 1,460,845 | u282228874 | cpp |
p03844 | #include <bits/stdc++.h>
using namespace std;
int main() {
int a, b;
char operato;
scanf("%d %c %d", &a, &operato, &b);
if (operato == '+') {
printf("%lld", a + b);
} else {
printf("%lld", a - b);
}
return 0;
}
| #include <bits/stdc++.h>
using namespace std;
int main() {
long long int a, b;
char operato;
scanf("%lld %c %lld", &a, &operato, &b);
if (operato == '+') {
printf("%lld", a + b);
} else {
printf("%lld", a - b);
}
return 0;
}
| [
"literal.string.change",
"call.arguments.change"
] | 1,460,850 | 1,460,851 | u504183161 | cpp |
p03844 | #include <iostream>
#include <string>
using namespace std;
int main() {
int a;
string op;
char op_ = '+';
int b;
cin >> a >> op >> b;
switch (op_) {
case '+':
cout << a + b;
break;
case '-':
cout << a - b;
break;
default:
break;
}
} | #include <iostream>
#include <string>
using namespace std;
int main() {
int a;
char op_ = '+';
int b;
cin >> a >> op_ >> b;
switch (op_) {
case '+':
cout << a + b;
break;
case '-':
cout << a - b;
break;
default:
break;
}
} | [
"variable_declaration.remove",
"identifier.change",
"expression.operation.binary.change"
] | 1,460,859 | 1,460,860 | u238197271 | cpp |
p03844 | #include <algorithm>
#include <array>
#include <cfloat>
#include <iostream>
#include <stdio.h>
#include <string.h>
using namespace std;
int main() {
char a, b, c;
cin >> a >> b >> c;
if (b == '+') {
cout << a + c;
} else {
cout << a - c;
}
} | #include <algorithm>
#include <array>
#include <cfloat>
#include <iostream>
#include <stdio.h>
#include <string.h>
using namespace std;
int main() {
int a, c;
char b;
cin >> a >> b >> c;
if (b == '+') {
cout << a + c;
} else {
cout << a - c;
}
} | [
"variable_declaration.type.primitive.change",
"variable_declaration.remove",
"variable_declaration.add"
] | 1,460,868 | 1,460,869 | u379928983 | cpp |
p03844 | #include <bits/stdc++.h>
using namespace std;
int main() {
uint a, b;
string op;
cin >> a >> op >> b;
if (op == "+") {
cout << a + b << endl;
} else if (op == "-") {
cout << a - b << endl;
}
} | #include <bits/stdc++.h>
using namespace std;
int main() {
int a, b;
string op;
cin >> a >> op >> b;
if (op == "+") {
cout << a + b << endl;
} else if (op == "-") {
cout << a - b << endl;
}
}
| [
"variable_declaration.type.change"
] | 1,460,876 | 1,460,877 | u394568758 | cpp |
p03844 | #include <cstdio>
int main() {
int A, B;
char op;
scanf("%d %c %d", &A, &op, &B);
printf("%d\n", (op == '+') ? A + B : A = B);
return 0;
} | #include <cstdio>
int main() {
int A, B;
char op;
scanf("%d %c %d", &A, &op, &B);
printf("%d\n", (op == '+') ? A + B : A - B);
return 0;
} | [
"call.arguments.change",
"io.output.change"
] | 1,460,887 | 1,460,888 | u980205854 | cpp |
p03844 | #include <algorithm>
#include <iomanip>
#include <iostream>
#include <map>
#include <string>
#include <typeinfo>
#include <vector>
typedef long long int ll;
using namespace std;
int main() {
int a, b;
char op;
cin >> a >> op >> b;
if (op = '+') {
cout << a + b << endl;
} else {
cout << a - b << endl;
... | #include <algorithm>
#include <iomanip>
#include <iostream>
#include <map>
#include <string>
#include <typeinfo>
#include <vector>
typedef long long int ll;
using namespace std;
int main() {
int a, b;
char op;
cin >> a >> op >> b;
if (op == '+') {
cout << a + b << endl;
} else {
cout << a - b << endl;... | [
"expression.operation.compare.replace.add",
"assignment.replace.remove",
"misc.typo"
] | 1,460,891 | 1,460,892 | u090629957 | cpp |
p03844 | #include <iostream>
using namespace std;
int main() {
int a, b;
char op;
cin >> a >> b;
cin >> op;
if (op == '+')
cout << a + b;
else if (op == '-')
cout << a - b;
} | #include <iostream>
using namespace std;
int main() {
int a, b;
char op;
cin >> a >> op >> b;
if (op == '+')
cout << a + b;
else if (op == '-')
cout << a - b;
}
| [
"expression.operation.binary.add"
] | 1,460,898 | 1,460,899 | u056123277 | cpp |
p03844 | #include <iostream>
using namespace std;
int main() {
int a, b;
char c;
cin >> a >> b >> c;
;
if (c == '+') {
cout << a + b << endl;
} else {
cout << a - b << endl;
}
return 0;
} | #include <iostream>
using namespace std;
int main() {
int a, b;
char c;
cin >> a >> c >> b;
if (c == '+') {
cout << a + b << endl;
} else {
cout << a - b << endl;
}
return 0;
} | [
"expression.operation.binary.remove"
] | 1,460,908 | 1,460,909 | u821416900 | cpp |
p03844 | #include <bits/stdc++.h>
using namespace std;
int main() {
int A, B;
char S;
cin >> A >> S >> B;
int ans;
if (S = '+')
ans = A + B;
else
ans = A - B;
cout << ans << endl;
} | #include <bits/stdc++.h>
using namespace std;
int main() {
int A, B;
char S;
cin >> A >> S >> B;
int ans;
if (S == '+')
ans = A + B;
else
ans = A - B;
cout << ans << endl;
} | [
"expression.operation.compare.replace.add",
"assignment.replace.remove",
"misc.typo"
] | 1,460,910 | 1,460,911 | u133391510 | cpp |
p03844 | #include <bits/stdc++.h>
#define rep(i, a, n) for (int i = (a); i < (n); ++i)
#define all(x) x.begin(), x.end()
#define ll long long
#define INF 2e9
using namespace std;
void Main() {
int a, b;
char op;
cin >> a >> op >> b;
if (op = '+')
cout << a + b << endl;
else
cout << a - b << endl;
}
int main(... | #include <bits/stdc++.h>
#define rep(i, a, n) for (int i = (a); i < (n); ++i)
#define all(x) x.begin(), x.end()
#define ll long long
#define INF 2e9
using namespace std;
void Main() {
int a, b;
char op;
cin >> a >> op >> b;
if (op == '+')
cout << a + b << endl;
else
cout << a - b << endl;
}
int main... | [
"expression.operation.compare.replace.add",
"assignment.replace.remove",
"misc.typo"
] | 1,460,926 | 1,460,927 | u075520262 | cpp |
p03844 | #include <bits/stdc++.h>
#define rep(i, a, n) for (int i = (a); i < (n); ++i)
#define all(x) x.begin(), x.end()
#define ll long long
#define INF 2e9
using namespace std;
void Main() {
int a, op, b;
cin >> a >> op >> b;
if (op = '+')
cout << a + b << endl;
else
cout << a - b << endl;
}
int main() {
c... | #include <bits/stdc++.h>
#define rep(i, a, n) for (int i = (a); i < (n); ++i)
#define all(x) x.begin(), x.end()
#define ll long long
#define INF 2e9
using namespace std;
void Main() {
int a, b;
char op;
cin >> a >> op >> b;
if (op == '+')
cout << a + b << endl;
else
cout << a - b << endl;
}
int main... | [
"variable_declaration.remove",
"variable_declaration.add",
"expression.operation.compare.replace.add",
"assignment.replace.remove",
"misc.typo"
] | 1,460,928 | 1,460,927 | u075520262 | cpp |
p03844 | #include <bits/stdc++.h>
using namespace std;
int main() {
int A, B;
char op;
cin >> A >> B >> op;
if (op == '+') {
cout << A + B << endl;
}
if (op == '-') {
cout << A - B << endl;
}
}
| #include <bits/stdc++.h>
using namespace std;
int main() {
int A, B;
char op;
cin >> A >> op >> B;
if (op == '+') {
cout << A + B << endl;
}
if (op == '-') {
cout << A - B << endl;
}
}
| [
"expression.operation.binary.remove"
] | 1,460,933 | 1,460,934 | u176367163 | cpp |
p03844 | #include <bits/stdc++.h>
using namespace std;
int main() {
int a, b;
char op;
cin >> a >> op >> b;
if (op = '+')
cout << a + b << endl;
else
cout << a - b << endl;
return 0;
} | #include <bits/stdc++.h>
using namespace std;
int main() {
int a, b;
char op;
cin >> a >> op >> b;
if (op == '+')
cout << a + b << endl;
else
cout << a - b << endl;
return 0;
} | [
"expression.operation.compare.replace.add",
"assignment.replace.remove",
"misc.typo"
] | 1,460,939 | 1,460,940 | u355545160 | cpp |
p03844 | #include <bits/stdc++.h>
#include <numeric>
#include <stdio.h>
using namespace std;
#define rep(i, n) for (int i = 0; i < (int)(n); ++i)
#define repone(i, n) for (int i = 1; i < (int)(n); ++i)
#define repo(i, o, n) for (int i = o; i < (int)(n); ++i)
#define Rep(j, n) for (int j = 0; j < (int)(n); ++j)
#define Repo(j, o... | #include <bits/stdc++.h>
#include <numeric>
#include <stdio.h>
using namespace std;
#define rep(i, n) for (int i = 0; i < (int)(n); ++i)
#define repone(i, n) for (int i = 1; i < (int)(n); ++i)
#define repo(i, o, n) for (int i = o; i < (int)(n); ++i)
#define Rep(j, n) for (int j = 0; j < (int)(n); ++j)
#define Repo(j, o... | [] | 1,460,943 | 1,460,944 | u893330446 | cpp |
p03844 | #include <bits/stdc++.h>
using namespace std;
#define int long long
#define sz(x) (int)(x.size())
signed main() {
int a, op, b;
cin >> a >> op >> b;
if (op == '+')
cout << a + b << "\n";
else
cout << a - b << "\n";
}
| #include <bits/stdc++.h>
using namespace std;
#define int long long
#define sz(x) (int)(x.size())
signed main() {
int a, b;
char op;
cin >> a >> op >> b;
if (op == '+')
cout << a + b << "\n";
else
cout << a - b << "\n";
} | [
"variable_declaration.remove",
"variable_declaration.add"
] | 1,460,952 | 1,460,953 | u590725538 | cpp |
p03844 | #include <bits/stdc++.h>
using namespace std;
int main() {
unsigned int A, B;
char op;
cin >> A >> op >> B;
if (op == '+')
cout << A + B << endl;
else
cout << A - B << endl;
return 0;
} | #include <bits/stdc++.h>
using namespace std;
int main() {
long int A, B;
char op;
cin >> A >> op >> B;
if (op == '+')
cout << A + B << endl;
else
cout << A - B << endl;
return 0;
} | [
"variable_declaration.type.primitive.change"
] | 1,460,958 | 1,460,959 | u683758967 | cpp |
p03844 | #define _USE_MATH_DEFINES
#include <bits/stdc++.h>
using namespace std;
#define rep(i, n) REP(i, 0, n)
#define ALL(v) v.begin(), v.end()
#define MSG(a) cout << #a << " " << a << endl;
#define REP(i, x, n) for (int i = x; i < n; i++)
#define OP(m) cout << m << endl
typedef long long ll;
typedef unsigned long long ull;
... | #define _USE_MATH_DEFINES
#include <bits/stdc++.h>
using namespace std;
#define rep(i, n) REP(i, 0, n)
#define ALL(v) v.begin(), v.end()
#define MSG(a) cout << #a << " " << a << endl;
#define REP(i, x, n) for (int i = x; i < n; i++)
#define OP(m) cout << m << endl
typedef long long ll;
typedef unsigned long long ull;
... | [
"expression.operation.compare.replace.add",
"assignment.replace.remove",
"misc.typo"
] | 1,460,962 | 1,460,963 | u016189984 | cpp |
p03844 | #include <iostream>
using namespace std;
int main() {
char op;
int A, B;
cin >> A >> op >> B;
if (op == '+' || op == '-') {
cout << A + B << endl;
} else
cout << A - B << endl;
} | #include <iostream>
using namespace std;
int main() {
char op;
int A, B;
cin >> A >> op >> B;
if (op == '+') {
cout << A + B << endl;
} else
cout << A - B << endl;
} | [
"expression.operation.binary.remove"
] | 1,460,974 | 1,460,975 | u199795014 | cpp |
p03844 | #include <bits/stdc++.h>
using namespace std;
int main() {
int a, b;
char c;
cin >> a >> b >> c;
if (c == '+') {
cout << a + b << endl;
} else {
cout << a - b << endl;
}
} | #include <bits/stdc++.h>
using namespace std;
int main() {
int a, b;
char c;
cin >> a >> c >> b;
if (c == '+') {
cout << a + b << endl;
} else {
cout << a - b << endl;
}
} | [
"expression.operation.binary.remove"
] | 1,460,976 | 1,460,977 | u413963198 | cpp |
p03844 | #include <algorithm>
#include <iostream>
#include <string>
#include <vector>
using namespace std;
int main() {
int a, b;
string pm;
cin >> a, pm, b;
if (pm == "+") {
cout << a + b << endl;
}
else {
cout << a - b << endl;
}
return 0;
} | #include <algorithm>
#include <iostream>
#include <string>
#include <vector>
using namespace std;
int main() {
int a, b;
string pm;
cin >> a >> pm >> b;
if (pm == "+") {
cout << a + b << endl;
}
else {
cout << a - b << endl;
}
return 0;
} | [] | 1,460,991 | 1,460,992 | u842842118 | cpp |
p03844 | #include <bits/stdc++.h>
using namespace std;
int main() {
int A, B, X;
char S;
cin >> A >> S >> B;
if (A == '+') {
X = A + B;
} else if (S == '-') {
X = A - B;
}
cout << X << endl;
}
| #include <bits/stdc++.h>
using namespace std;
int main() {
int A, B, X;
char S;
cin >> A >> S >> B;
if (S == '+') {
X = A + B;
} else if (S == '-') {
X = A - B;
}
cout << X << endl;
}
| [
"identifier.change",
"control_flow.branch.if.condition.change"
] | 1,460,995 | 1,460,996 | u041855176 | cpp |
p03844 | #include <bits/stdc++.h>
using namespace std;
int main() {
int A, B;
char op;
cin >> A >> op >> B;
if (op = '+') {
cout << A + B << endl;
} else {
cout << A - B << endl;
}
} | #include <bits/stdc++.h>
using namespace std;
int main() {
int A, B;
char op;
cin >> A >> op >> B;
if (op == '+') {
cout << A + B << endl;
} else {
cout << A - B << endl;
}
} | [
"expression.operation.compare.replace.add",
"assignment.replace.remove",
"misc.typo"
] | 1,461,001 | 1,461,002 | u913104858 | cpp |
p03844 | #include <bits/stdc++.h>
using namespace std;
int main() {
int A, B;
char op;
cin >> A >> op >> B;
int ans = A - B;
if (op = '+')
ans = A + B;
cout << ans << endl;
} | #include <bits/stdc++.h>
using namespace std;
int main() {
int A, B;
char op;
cin >> A >> op >> B;
int ans = A - B;
if (op == '+')
ans = A + B;
cout << ans << endl;
} | [
"expression.operation.compare.replace.add",
"assignment.replace.remove",
"misc.typo"
] | 1,461,003 | 1,461,004 | u811472478 | cpp |
p03844 | #include <algorithm>
#include <iostream>
#include <math.h>
#include <string>
using namespace std;
int main() {
int res;
int A, B;
char op;
cin >> A >> op >> B;
res = (op = '+') ? A + B : A - B;
cout << res << endl;
} | #include <algorithm>
#include <iostream>
#include <math.h>
#include <string>
using namespace std;
int main() {
int res;
int A, B;
char op;
cin >> A >> op >> B;
res = (op == '+') ? A + B : A - B;
cout << res << endl;
} | [
"expression.operation.compare.replace.add",
"assignment.replace.remove",
"misc.typo"
] | 1,461,015 | 1,461,016 | u545674098 | cpp |
p03844 | #include <bits/stdc++.h>
using namespace std;
int main() {
int A, op, B;
cin >> A >> op >> B;
if (op == '+') {
cout << A + B << endl;
}
if (op == '-') {
cout << A - B << endl;
}
} | #include <bits/stdc++.h>
using namespace std;
int main() {
int A, B;
char op;
cin >> A >> op >> B;
if (op == '+') {
cout << A + B << endl;
}
if (op == '-') {
cout << A - B << endl;
}
} | [
"variable_declaration.remove",
"variable_declaration.add"
] | 1,461,030 | 1,461,031 | u529813812 | cpp |
p03844 | #include <iostream>
using namespace std;
int main() {
unsigned int a, c;
string b;
cin >> a >> b >> c;
if ((1000000000 >= a) && (1000000000 >= c)) {
if (b.compare("+") == 0) {
cout << (a + c) << endl;
} else if (b.compare("-") == 0) {
cout << (a - c) << endl;
}
}
return 0;
} | #include <iostream>
using namespace std;
int main() {
int a, c;
string b;
cin >> a >> b >> c;
if ((1000000000 >= a) && (1000000000 >= c)) {
if (b.compare("+") == 0) {
cout << (a + c) << endl;
} else if (b.compare("-") == 0) {
cout << (a - c) << endl;
}
}
return 0;
} | [
"variable_declaration.type.narrow.change"
] | 1,461,065 | 1,461,066 | u346761236 | cpp |
p03844 | #include <bits/stdc++.h>
using namespace std;
int main() {
char op;
int a, b;
cin >> a >> op >> b;
if (op = '+')
cout << a + b << endl;
else
cout << a - b << endl;
return 0;
}
| #include <bits/stdc++.h>
using namespace std;
int main() {
char op;
int a, b;
cin >> a >> op >> b;
if (op == '+')
cout << a + b << endl;
else
cout << a - b << endl;
return 0;
}
| [
"expression.operation.compare.replace.add",
"assignment.replace.remove",
"misc.typo"
] | 1,461,073 | 1,461,074 | u550995059 | cpp |
p03844 | #include <stdio.h>
int main(void) {
int A, B;
char op;
scanf("%d%c%d", &A, &op, &B);
if (op = '+')
printf("%d", A + B);
else
printf("%d", A - B);
return 0;
} | #include <stdio.h>
int main(void) {
int A, B;
char op;
scanf("%d %c %d", &A, &op, &B);
if (op == '+')
printf("%d", A + B);
else
printf("%d", A - B);
return 0;
}
| [
"literal.string.change",
"call.arguments.change",
"expression.operation.compare.replace.add",
"assignment.replace.remove",
"misc.typo"
] | 1,461,077 | 1,461,078 | u922675553 | cpp |
p03844 | #include <cstdio>
#include <iostream>
using namespace std;
int A, B;
char op;
int main() {
cin >> A >> op >> B;
if (op = '+') {
cout << A + B;
} else
cout << A - B;
} | #include <cstdio>
#include <iostream>
using namespace std;
int A, B;
char op;
int main() {
cin >> A >> op >> B;
if (op == '+') {
cout << A + B;
} else
cout << A - B;
}
| [
"expression.operation.compare.replace.add",
"assignment.replace.remove",
"misc.typo"
] | 1,461,081 | 1,461,082 | u858042641 | cpp |
p03844 | #include <bits/stdc++.h>
using namespace std;
int main() {
long long A, B;
char c;
cin >> A >> c >> B;
if (c = '+') {
cout << A + B << endl;
} else {
cout << A - B << endl;
}
return 0;
} | #include <bits/stdc++.h>
using namespace std;
int main() {
int A, B;
char c;
cin >> A >> c >> B;
if (c == '+') {
cout << A + B << endl;
} else {
cout << A - B << endl;
}
return 0;
} | [
"variable_declaration.type.primitive.change",
"variable_declaration.type.narrow.change",
"expression.operation.compare.replace.add",
"assignment.replace.remove",
"misc.typo"
] | 1,461,083 | 1,461,084 | u483737025 | cpp |
p03844 | #include <bits/stdc++.h>
using namespace std;
int main() {
int A, B;
char c;
cin >> A >> c >> B;
if (c = '+') {
cout << A + B << endl;
} else {
cout << A - B << endl;
}
return 0;
} | #include <bits/stdc++.h>
using namespace std;
int main() {
int A, B;
char c;
cin >> A >> c >> B;
if (c == '+') {
cout << A + B << endl;
} else {
cout << A - B << endl;
}
return 0;
} | [
"expression.operation.compare.replace.add",
"assignment.replace.remove",
"misc.typo"
] | 1,461,085 | 1,461,084 | u483737025 | cpp |
p03844 | #include <bits/stdc++.h>
using namespace std;
int main() {
int a, b;
char o;
cin >> a >> o >> b;
if (o == '+')
cout << a + b << endl;
if (o == '-')
cout << a + b << endl;
} | #include <bits/stdc++.h>
using namespace std;
int main() {
int a, b;
char o;
cin >> a >> o >> b;
if (o == '+')
cout << a + b << endl;
if (o == '-')
cout << a - b << endl;
} | [
"misc.opposites",
"expression.operator.arithmetic.change",
"io.output.change"
] | 1,461,102 | 1,461,103 | u387258288 | cpp |
p03844 | #include <bits/stdc++.h>
using namespace std;
int main() {
int A, B;
char op;
cin >> A >> op >> B;
if (A == '+') {
cout << A + B << endl;
} else {
cout << A - B << endl;
}
} | #include <bits/stdc++.h>
using namespace std;
int main() {
int A, B;
char op;
cin >> A >> op >> B;
if (op == '+') {
cout << A + B << endl;
} else {
cout << A - B << endl;
}
} | [
"identifier.change",
"control_flow.branch.if.condition.change"
] | 1,461,104 | 1,461,105 | u165267345 | cpp |
p03844 | #include <bits/stdc++.h> // g++ -std=c++14 -o a a.cpp
using namespace std;
typedef pair<int, int> P;
typedef long long ll;
#define rep(i, n) for (int i = 0; i < (n); i++)
#define repto(i, n) for (int i = 0; i <= (n); i++)
#define all(c) (c).begin(), (c).end()
#define uniq(c) ... | #include <bits/stdc++.h> // g++ -std=c++14 -o a a.cpp
using namespace std;
typedef pair<int, int> P;
typedef long long ll;
#define rep(i, n) for (int i = 0; i < (n); i++)
#define repto(i, n) for (int i = 0; i <= (n); i++)
#define all(c) (c).begin(), (c).end()
#define uniq(c) ... | [
"expression.operation.binary.remove"
] | 1,461,108 | 1,461,109 | u419937216 | cpp |
p03844 | #include <iostream>
using namespace std;
int main() {
int a, b;
char op;
cin >> a >> b >> op;
cout << (op == '+' ? a + b : a - b) << endl;
return 0;
} | #include <iostream>
using namespace std;
int main() {
int a, b;
char op;
cin >> a >> op >> b;
cout << (op == '+' ? a + b : a - b) << endl;
return 0;
} | [
"expression.operation.binary.remove"
] | 1,461,110 | 1,461,111 | u164007697 | cpp |
p03844 | #include <algorithm>
#include <cstdlib>
#include <iostream>
#include <string>
using namespace std;
int main() {
char op;
int a, b;
cin >> a >> b >> op;
if (op == '+')
cout << a + b << endl;
else
cout << a - b << endl;
return 0;
} | #include <algorithm>
#include <cstdlib>
#include <iostream>
#include <string>
using namespace std;
int main() {
char op;
int a, b;
cin >> a >> op >> b;
if (op == '+')
cout << a + b << endl;
else
cout << a - b << endl;
return 0;
} | [
"expression.operation.binary.remove"
] | 1,461,132 | 1,461,133 | u154672915 | cpp |
p03844 | // Example program
#include <iostream>
#include <string>
using namespace std;
int main() {
int a, op, b;
cin >> a >> op >> b;
if (op == '+') {
cout << a + b << endl;
}
if (op == '-') {
cout << a - b << endl;
}
return 0;
}
| // Example program
#include <iostream>
#include <string>
using namespace std;
int main() {
int a, b;
char op;
cin >> a >> op >> b;
if (op == '+') {
cout << a + b << endl;
}
if (op == '-') {
cout << a - b << endl;
}
return 0;
}
| [
"variable_declaration.remove",
"variable_declaration.add"
] | 1,461,134 | 1,461,135 | u277153875 | cpp |
p03844 | #include <iostream>
using std::cin;
using std::cout;
using std::endl;
int main() {
char a, op, b;
cin >> a >> op >> b;
if (op == '+')
cout << a + b << endl;
else
cout << a - b << endl;
}
| #include <iostream>
using std::cin;
using std::cout;
using std::endl;
int main() {
int a, b;
char op;
cin >> a >> op >> b;
if (op == '+')
cout << a + b << endl;
else
cout << a - b << endl;
}
| [
"variable_declaration.type.primitive.change",
"variable_declaration.remove",
"variable_declaration.add"
] | 1,461,138 | 1,461,139 | u355798276 | cpp |
p03844 | #include "bits/stdc++.h"
using namespace std;
int main() {
int A, B;
char op;
cin >> A >> op >> B;
int res = 0;
if (op = '+')
res = A + B;
if (op = '-')
res = A - B;
cout << res << endl;
} | #include "bits/stdc++.h"
using namespace std;
int main() {
int A, B;
char op;
cin >> A >> op >> B;
int res = 0;
if (op == '+')
res = A + B;
if (op == '-')
res = A - B;
cout << res << endl;
} | [
"expression.operation.compare.replace.add",
"assignment.replace.remove",
"misc.typo"
] | 1,461,161 | 1,461,162 | u012985561 | cpp |
p03844 | #include <iostream>
using namespace std;
int main() {
int a, b, c = 0;
char op;
cin >> a >> op >> b;
if (op = '+') {
c = a + b;
} else if (op = '-') {
c = a - b;
}
cout << c << endl;
return 0;
} | #include <iostream>
using namespace std;
int main() {
int a, b, c = 0;
char op;
cin >> a >> op >> b;
if (op == '+') {
c = a + b;
} else if (op == '-') {
c = a - b;
}
cout << c << endl;
return 0;
} | [
"expression.operation.compare.replace.add",
"assignment.replace.remove",
"misc.typo"
] | 1,461,163 | 1,461,164 | u451417461 | cpp |
p03844 | #include <stdio.h>
int main(void) {
int a, b;
char op;
scanf("%d", &a);
scanf("%c", &op);
scanf("%d", &b);
if (op == '+')
printf("%d\n", a + b);
else
printf("%d\n", a - b);
return 0;
}
| #include <stdio.h>
int main(void) {
int a, b;
char op;
scanf("%d\n", &a);
scanf("%c", &op);
scanf("%d", &b);
if (op == '+')
printf("%d\n", a + b);
else
printf("%d\n", a - b);
return 0;
}
| [
"literal.string.change",
"call.arguments.change"
] | 1,461,167 | 1,461,168 | u206408332 | cpp |
p03844 | #include "bits/stdc++.h"
using namespace std;
typedef long long ll;
typedef pair<int, int> pii;
typedef pair<ll, ll> pll;
const int INF = 1e9;
const ll LINF = 1e18;
template <class S, class T>
ostream &operator<<(ostream &out, const pair<S, T> &o) {
out << "(" << o.first << "," << o.second << ")";
return out;
}
/*
... | #include "bits/stdc++.h"
using namespace std;
typedef long long ll;
typedef pair<int, int> pii;
typedef pair<ll, ll> pll;
const int INF = 1e9;
const ll LINF = 1e18;
template <class S, class T>
ostream &operator<<(ostream &out, const pair<S, T> &o) {
out << "(" << o.first << "," << o.second << ")";
return out;
}
/*
... | [] | 1,461,181 | 1,461,182 | u728732647 | cpp |
p03844 | #include <bits/stdc++.h>
using namespace std;
int main(void) {
int a, b;
char c;
cin >> a >> c >> b;
cout << (c == '+' ? a + b : a - c) << endl;
}
| #include <bits/stdc++.h>
using namespace std;
int main(void) {
int a, b;
char c;
cin >> a >> c >> b;
cout << (c == '+' ? a + b : a - b) << endl;
}
| [
"identifier.change",
"io.output.change"
] | 1,461,183 | 1,461,184 | u591883167 | cpp |
p03844 | #include <iostream>
using namespace std;
int main() {
int A, B;
char op;
cin >> A >> op >> B;
if (op = '+')
cout << A + B;
if (op = '-')
cout << A - B;
} | #include <iostream>
using namespace std;
int main() {
int A, B;
char op;
cin >> A >> op >> B;
if (op == '+')
cout << A + B;
if (op == '-')
cout << A - B;
} | [
"expression.operation.compare.replace.add",
"assignment.replace.remove",
"misc.typo"
] | 1,461,189 | 1,461,190 | u734774089 | cpp |
p03844 | #include <algorithm>
#include <iostream>
#include <math.h>
#include <string>
using namespace std;
int main() {
int a, b;
char op;
cin >> a >> op >> b;
if (op == '+')
cout << a + b << endl;
else
cout << "a-b" << endl;
return 0;
} | #include <algorithm>
#include <iostream>
#include <math.h>
#include <string>
using namespace std;
int main() {
int a, b;
char op;
cin >> a >> op >> b;
if (op == '+')
cout << a + b << endl;
else
cout << a - b << endl;
return 0;
} | [] | 1,461,193 | 1,461,194 | u128258399 | cpp |
p03844 | #include <algorithm>
#include <assert.h>
#include <bitset>
#include <cmath>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <deque>
#include <iomanip>
#include <iostream>
#include <iterator>
#include <list>
#include <map>
#include <queue>
#include <set>
#include <sstream>
#include <stack>
#include <str... | #include <algorithm>
#include <assert.h>
#include <bitset>
#include <cmath>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <deque>
#include <iomanip>
#include <iostream>
#include <iterator>
#include <list>
#include <map>
#include <queue>
#include <set>
#include <sstream>
#include <stack>
#include <str... | [
"literal.string.change",
"call.arguments.change"
] | 1,461,195 | 1,461,196 | u740807458 | cpp |
p03844 | #include <algorithm>
#include <iostream>
#include <string>
using namespace std;
int main() {
int a, b;
char op;
cin >> a >> op >> b;
if (op = '+') {
cout << a + b << endl;
}
else if (op = '-') {
cout << a - b << endl;
}
} | #include <algorithm>
#include <iostream>
#include <string>
using namespace std;
int main() {
int a, b;
char op;
cin >> a >> op >> b;
if (op == '+') {
cout << a + b << endl;
}
else if (op == '-') {
cout << a - b << endl;
}
} | [
"expression.operation.compare.replace.add",
"assignment.replace.remove",
"misc.typo"
] | 1,461,201 | 1,461,202 | u226223646 | cpp |
p03844 | #include <iostream>
#include <stdint.h>
using namespace std;
int32_t main() {
uint32_t A, B;
char op;
cin >> A >> op >> B;
if (op == '+') {
cout << A + B << endl;
} else {
cout << A - B << endl;
}
return 0;
}
| #include <iostream>
#include <stdint.h>
using namespace std;
int32_t main() {
int32_t A, B;
char op;
cin >> A >> op >> B;
if (op == '+') {
cout << A + B << endl;
} else {
cout << A - B << endl;
}
return 0;
}
| [
"variable_declaration.type.primitive.change"
] | 1,461,211 | 1,461,212 | u802614675 | cpp |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.