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 |
|---|---|---|---|---|---|---|---|
p02263 | #include <algorithm>
#include <cmath>
#include <cstdio>
#include <cstdlib>
#include <fstream>
#include <functional>
#include <iostream>
#include <map>
#include <queue>
#include <set>
#include <stack>
#include <string>
#include <vector>
using namespace std;
#define REP(i, n) for (int i = 0; i < n; ++i)
#define FOR(i, a... | #include <algorithm>
#include <cmath>
#include <cstdio>
#include <cstdlib>
#include <fstream>
#include <functional>
#include <iostream>
#include <map>
#include <queue>
#include <set>
#include <stack>
#include <string>
#include <vector>
using namespace std;
#define REP(i, n) for (int i = 0; i < n; ++i)
#define FOR(i, a... | [
"expression.operation.binary.remove"
] | 107,779 | 107,780 | u346550152 | cpp |
p02263 | #include <cstdlib>
#include <iostream>
#include <stack>
#include <string>
using namespace std;
int main(void) {
stack<int> stk;
int a, b, x, num;
string s;
while (cin >> s) {
if (s[0] == '+' || s[0] == '-' || s[0] == '*') {
a = stk.top();
stk.pop();
b = stk.top();
stk.pop();
... | #include <cstdlib>
#include <iostream>
#include <stack>
#include <string>
using namespace std;
int main(void) {
stack<int> stk;
int a, b, x, num;
string s;
while (cin >> s) {
if (s[0] == '+' || s[0] == '-' || s[0] == '*') {
a = stk.top();
stk.pop();
b = stk.top();
stk.pop();
... | [
"expression.operation.binary.remove"
] | 107,783 | 107,784 | u884062930 | cpp |
p02263 | #include <iostream>
#include <string>
#include <vector>
using namespace std;
void showStack(vector<int> A) {
for (int i = 0; i < A.size(); i++) {
cout << A[i] << " ";
}
cout << endl;
}
int main() {
vector<int> A;
string input;
while (cin >> input) {
if (input[0] == '+') {
int m = A[A.size(... | #include <iostream>
#include <string>
#include <vector>
using namespace std;
void showStack(vector<int> A) {
for (int i = 0; i < A.size(); i++) {
cout << A[i] << " ";
}
cout << endl;
}
int main() {
vector<int> A;
string input;
while (cin >> input) {
if (input[0] == '+') {
int m = A[A.size(... | [
"expression.operation.binary.remove"
] | 107,789 | 107,790 | u326392052 | cpp |
p02263 | #include <iostream>
#include <string>
#include <vector>
using namespace std;
int main() {
vector<int> A;
string input;
while (cin >> input) {
if (input[0] == '+') {
int m = A[A.size() - 1];
A.pop_back();
int n = A[A.size() - 1];
A.pop_back();
A.push_back(m + n);
} else if ... | #include <iostream>
#include <string>
#include <vector>
using namespace std;
int main() {
vector<int> A;
string input;
while (cin >> input) {
if (input[0] == '+') {
int m = A[A.size() - 1];
A.pop_back();
int n = A[A.size() - 1];
A.pop_back();
A.push_back(m + n);
} else if ... | [
"expression.operation.binary.remove"
] | 107,791 | 107,792 | u326392052 | cpp |
p02263 | #include <iostream>
#include <sstream>
#include <stdio.h>
#include <stdlib.h>
#include <string>
#include <vector>
using namespace std;
typedef struct calc {
int *top;
int *data;
} calc_t;
calc_t *init(int size) {
calc_t *calc = (calc_t *)malloc(sizeof(calc_t));
calc->top = calc->data = (int *)malloc(sizeof(in... | #include <iostream>
#include <sstream>
#include <stdio.h>
#include <stdlib.h>
#include <string>
#include <vector>
using namespace std;
typedef struct calc {
int *top;
int *data;
} calc_t;
calc_t *init(int size) {
calc_t *calc = (calc_t *)malloc(sizeof(calc_t));
calc->top = calc->data = (int *)malloc(sizeof(in... | [
"expression.operation.binary.remove"
] | 107,801 | 107,802 | u027872723 | cpp |
p02263 | #include <iostream>
#include <stack>
#include <stdio.h>
#include <stdlib.h>
using namespace std;
int main() {
stack<int> intStack;
char c[3];
while ((scanf("%s", &c)) != EOF) {
if (c[0] == '+' || c[0] == '-' || c[0] == '*') {
int in, a, b;
b = intStack.top();
intStack.pop();
a = int... | #include <iostream>
#include <stack>
#include <stdio.h>
#include <stdlib.h>
using namespace std;
int main() {
stack<int> intStack;
char c[5];
while ((scanf("%s", &c)) != EOF) {
if (c[0] == '+' || c[0] == '-' || c[0] == '*') {
int in, a, b;
b = intStack.top();
intStack.pop();
a = int... | [
"literal.number.change",
"variable_declaration.array_dimensions.change",
"expression.operator.arithmetic.change",
"assignment.value.change",
"expression.operation.binary.change"
] | 107,804 | 107,805 | u637471567 | cpp |
p02263 | #include <iostream>
#include <stack>
#include <stdio.h>
#include <stdlib.h>
using namespace std;
int main() {
stack<int> intStack;
char c[6];
while ((scanf("%s", &c)) != EOF) {
if (c[0] == '+' || c[0] == '-' || c[0] == '*') {
int in, a, b;
b = intStack.top();
intStack.pop();
a = int... | #include <iostream>
#include <stack>
#include <stdio.h>
#include <stdlib.h>
using namespace std;
int main() {
stack<int> intStack;
char c[5];
while ((scanf("%s", &c)) != EOF) {
if (c[0] == '+' || c[0] == '-' || c[0] == '*') {
int in, a, b;
b = intStack.top();
intStack.pop();
a = int... | [
"literal.number.change",
"variable_declaration.array_dimensions.change",
"expression.operator.arithmetic.change",
"assignment.value.change",
"expression.operation.binary.change"
] | 107,806 | 107,805 | u637471567 | cpp |
p02263 | #include <iostream>
#include <stack>
#include <string>
using namespace std;
int main() {
string word;
stack<int> S;
while (cin >> word) {
if (word == "+") {
// ??°??????????¶???????????????\??????
int n = S.top();
S.pop();
n = n + S.top();
S.pop();
S.push(n);
} else i... | #include <iostream>
#include <stack>
#include <string>
using namespace std;
int main() {
string word;
stack<int> S;
while (cin >> word) {
if (word == "+") {
// ??°??????????¶???????????????\??????
int n = S.top();
S.pop();
n = n + S.top();
S.pop();
S.push(n);
} else i... | [
"expression.operation.binary.remove",
"assignment.change"
] | 107,814 | 107,815 | u305206529 | cpp |
p02263 |
#include <cstdlib>
#include <iostream>
#include <stack>
#include <string>
using namespace std;
int main() {
string word;
stack<int> S;
while (cin >> word) {
if (word == "+") {
int a = S.top();
S.pop();
int b = S.top();
S.pop();
S.push(a + b);
} else if (word == "-") {
... |
#include <cstdlib>
#include <iostream>
#include <stack>
#include <string>
using namespace std;
int main() {
string word;
stack<int> S;
while (cin >> word) {
if (word == "+") {
int a = S.top();
S.pop();
int b = S.top();
S.pop();
S.push(a + b);
} else if (word == "-") {
... | [
"expression.operation.binary.remove"
] | 107,816 | 107,817 | u829912068 | cpp |
p02263 | #include <cstdlib>
#include <iostream>
#include <stack>
#include <string>
using namespace std;
int main() {
string word;
stack<int> S;
int i, j;
while (cin >> word) {
if (word == "+") {
i = S.top();
S.pop();
j = S.top();
S.pop();
S.push(i + j);
}
if (word == "-") {
... | #include <cstdlib>
#include <iostream>
#include <stack>
#include <string>
using namespace std;
int main() {
string word;
stack<int> S;
int i, j;
while (cin >> word) {
if (word == "+") {
i = S.top();
S.pop();
j = S.top();
S.pop();
S.push(i + j);
}
else if (word == "-"... | [
"control_flow.branch.else_if.replace.add",
"control_flow.branch.if.replace.remove",
"expression.operation.binary.remove"
] | 107,818 | 107,819 | u633469237 | cpp |
p02263 | #include <cstdlib>
#include <iostream>
#include <stack>
#include <string>
using namespace std;
int main() {
string word;
stack<int> S;
int i, j;
while (cin >> word) {
if (word == "+") {
i = S.top();
S.pop();
j = S.top();
S.pop();
S.push(i + j);
}
else if (word == "-"... | #include <cstdlib>
#include <iostream>
#include <stack>
#include <string>
using namespace std;
int main() {
string word;
stack<int> S;
int i, j;
while (cin >> word) {
if (word == "+") {
i = S.top();
S.pop();
j = S.top();
S.pop();
S.push(i + j);
}
else if (word == "-"... | [
"expression.operation.binary.remove"
] | 107,820 | 107,819 | u633469237 | cpp |
p02263 | #include <algorithm>
#include <cmath>
#include <cstdio>
#include <cstdlib>
#include <ctime>
#include <iostream>
#include <stack>
#include <string>
#include <vector>
using namespace std;
int main(void) {
string word;
stack<int> S;
while (cin >> word) {
if (word == "+") {
int a, b;
a = S.top();
... | #include <algorithm>
#include <cmath>
#include <cstdio>
#include <cstdlib>
#include <ctime>
#include <iostream>
#include <stack>
#include <string>
#include <vector>
using namespace std;
int main(void) {
string word;
stack<int> S;
while (cin >> word) {
if (word == "+") {
int a, b;
a = S.top();
... | [
"expression.operation.binary.remove"
] | 107,821 | 107,822 | u087252596 | cpp |
p02263 | #include <bits/stdc++.h>
using namespace std;
int top, S[1000];
void push(int x) { S[++top] = x; }
int pop() {
top--;
return S[top + 1];
}
int main() {
int a, b;
top = 0;
char s[100];
while (cin >> s) {
if (s[0] == '+') {
a = pop();
b = pop();
push(a + b);
} else if (s[0] == '-') {... | #include <bits/stdc++.h>
using namespace std;
int top, S[1000];
void push(int x) { S[++top] = x; }
int pop() {
top--;
return S[top + 1];
}
int main() {
int a, b;
top = 0;
char s[100];
while (cin >> s) {
if (s[0] == '+') {
a = pop();
b = pop();
push(a + b);
} else if (s[0] == '-') {... | [
"assignment.add"
] | 107,823 | 107,824 | u393312973 | cpp |
p02263 | #include <algorithm>
#include <cstdio>
#include <cstdlib>
#include <iostream>
#include <map>
#include <set>
#include <stack>
#include <string>
#include <vector>
using namespace std;
int main() {
//?¨?????????????????????????stack????????¨
stack<int> S;
int a, b, x;
string s;
while (cin >> s) {
if (s[0]... | #include <algorithm>
#include <cstdio>
#include <cstdlib>
#include <iostream>
#include <map>
#include <set>
#include <stack>
#include <string>
#include <vector>
using namespace std;
int main() {
stack<int> S;
int a, b, x;
string s;
while (cin >> s) {
if (s[0] == '+') {
a = S.top();
S.pop();
... | [
"assignment.variable.change",
"identifier.change"
] | 107,825 | 107,826 | u178753893 | cpp |
p02263 | #include <cstdlib>
#include <iostream>
#include <stack>
#include <string>
using namespace std;
int main() {
stack<int> st;
int a, b;
string s;
while (cin >> s) {
if (s[0] == '+') {
a = st.top();
st.pop();
b = st.top();
st.pop();
st.push(a + b);
} else if (s[0] == '-') {
... | #include <cstdlib>
#include <iostream>
#include <stack>
#include <string>
using namespace std;
int main() {
stack<int> st;
int a, b;
string s;
while (cin >> s) {
if (s[0] == '+') {
b = st.top();
st.pop();
a = st.top();
st.pop();
st.push(a + b);
} else if (s[0] == '-') {
... | [
"assignment.variable.change",
"identifier.change"
] | 107,827 | 107,828 | u920406124 | cpp |
p02263 | #include <iostream>
#include <stack>
#include <string>
using namespace std;
int main() {
string s;
stack<int> st;
while (cin >> s) {
if (s == "+" || s == "-" || s == "*") {
int n1, n2;
n1 = st.top();
st.pop();
n2 = st.top();
st.pop();
if (s == "+") {
st.push(n1 +... | #include <iostream>
#include <stack>
#include <string>
using namespace std;
int main() {
string s;
stack<int> st;
while (cin >> s) {
if (s == "+" || s == "-" || s == "*") {
int n1, n2;
n1 = st.top();
st.pop();
n2 = st.top();
st.pop();
if (s == "+") {
st.push(n1 +... | [
"expression.operation.binary.remove"
] | 107,829 | 107,830 | u327778409 | cpp |
p02263 | #include <stdio.h>
#include <stdlib.h>
#include <string.h>
int stack[100];
int it = 0;
void push(int x) {
it++;
stack[it - 1] = x;
//???????????????x????????????it???1????¶????
}
int pop() {
it--;
return stack
[it]; //?????????????????????????????????????????????it??????1?????????
}
int main(void) {... | #include <stdio.h>
#include <stdlib.h>
#include <string.h>
int stack[100];
int it = 0;
void push(int x) {
it++;
stack[it - 1] = x;
//???????????????x????????????it???1????¶????
}
int pop() {
it--;
return stack
[it]; //?????????????????????????????????????????????it??????1?????????
}
int main(void) {... | [
"identifier.replace.remove",
"literal.replace.add",
"variable_access.subscript.index.change",
"call.arguments.change",
"expression.operation.binary.change",
"io.output.change",
"expression.operation.binary.remove"
] | 107,833 | 107,834 | u774184874 | cpp |
p02263 | #include <stdio.h>}
#include <stdlib.h>
#include <string.h>
int stack[100];
int it = 0;
// push(6)
// push(8)
// push(10);
// pop();
//[0] [1] [2] [3] ...
// 6 8 10
void push(int x) {
//???????????????x???????????§??????????????°???1????¶????
stack[it] = x;
it++;
}
int pop() {
//???????????°??????1??????... | #include <stdio.h>}
#include <stdlib.h>
#include <string.h>
int stack[200];
int it = 0;
void push(int x) {
stack[it] = x;
it++;
}
int pop() {
it--;
return stack[it];
}
int main(void) {
int a, b, i;
char str[1000000];
while (scanf("%s", str) != EOF) {
if (strcmp(str, "+") == 0) {
a = pop();... | [
"literal.number.change",
"variable_declaration.array_dimensions.change",
"expression.operation.binary.remove"
] | 107,836 | 107,837 | u366441586 | cpp |
p02263 | #include <stdio.h>}
#include <stdlib.h>
#include <string.h>
int stack[200];
int it = 0;
// push(6)
// push(8)
// push(10);
// pop();
//[0] [1] [2] [3] ...
// 6 8 10
void push(int x) {
//???????????????x???????????§??????????????°???1????¶????
stack[it] = x;
it++;
}
int pop() {
//???????????°??????1??????... | #include <stdio.h>}
#include <stdlib.h>
#include <string.h>
int stack[200];
int it = 0;
void push(int x) {
stack[it] = x;
it++;
}
int pop() {
it--;
return stack[it];
}
int main(void) {
int a, b, i;
char str[1000000];
while (scanf("%s", str) != EOF) {
if (strcmp(str, "+") == 0) {
a = pop();... | [
"expression.operation.binary.remove"
] | 107,838 | 107,837 | u366441586 | cpp |
p02263 | #include <stdio.h>}
#include <stdlib.h>
#include <string.h>
int stack[200];
int it = 0;
void push(int x) {
stack[it] = x;
it++;
}
int pop() {
it--;
return stack[it];
}
int main(void) {
int a, b, i;
char str[1000000];
while (scanf("%s", str) != EOF) {
if (strcmp(str, "+") == 0) {
a = pop();... | #include <stdio.h>}
#include <stdlib.h>
#include <string.h>
int stack[200];
int it = 0;
void push(int x) {
stack[it] = x;
it++;
}
int pop() {
it--;
return stack[it];
}
int main(void) {
int a, b, i;
char str[1000000];
while (scanf("%s", str) != EOF) {
if (strcmp(str, "+") == 0) {
a = pop();... | [
"expression.operation.binary.remove"
] | 107,839 | 107,837 | u366441586 | cpp |
p02263 | #include <cstdlib>
#include <iostream>
using namespace std;
#define MAX 1000
int A[MAX], top;
void push(int x) {
if (top >= MAX - 1) {
cout << "?????????????????????";
} else {
top++;
A[top] = x;
}
}
int pop() {
if (top == 0) {
cout << "??¢??????????????????";
return 0;
} else {
top... | #include <cstdlib>
#include <iostream>
using namespace std;
#define MAX 1000
int A[MAX], top;
void push(int x) {
if (top >= MAX - 1) {
cout << "?????????????????????";
} else {
top++;
A[top] = x;
}
}
int pop() {
if (top == 0) {
cout << "??¢??????????????????";
return 0;
} else {
top... | [] | 107,840 | 107,841 | u600138564 | cpp |
p02263 | #include <cstdlib>
#include <iostream>
#include <stack>
#include <string>
using namespace std;
int main() {
string str;
stack<int> s;
int a, b, n;
while (cin >> str) {
if (str == "+") {
a = s.top();
s.pop();
b = s.top();
s.pop();
s.push(a + b);
} else if (str == "-") {
... | #include <cstdlib>
#include <iostream>
#include <stack>
#include <string>
using namespace std;
int main() {
string str;
stack<int> s;
int a, b, n;
while (cin >> str) {
if (str == "+") {
a = s.top();
s.pop();
b = s.top();
s.pop();
s.push(a + b);
} else if (str == "-") {
... | [
"io.output.change"
] | 107,844 | 107,845 | u403618837 | cpp |
p02263 | #include <cstdio>
#include <iostream>
#include <stack>
#include <string.h>
using namespace std;
int main() {
// your code goes here
int ans = 0;
stack<int> s;
char r[10];
int a, b;
while (scanf("%s", r) != EOF) {
if (strcmp(r, "+") == 0) {
a = s.top();
s.pop();
b = s.top();
s.... | #include <cstdio>
#include <iostream>
#include <stack>
#include <string.h>
using namespace std;
int main() {
// your code goes here
int ans = 0;
stack<int> s;
char r[10];
int a, b;
while (scanf("%s", r) != EOF) {
if (strcmp(r, "+") == 0) {
a = s.top();
s.pop();
b = s.top();
s.... | [
"expression.operation.binary.remove"
] | 107,846 | 107,847 | u835243363 | cpp |
p02263 | #include <iostream>
#include <stack>
using namespace std;
int main() {
string s;
int b, c;
stack<int> a;
while (cin >> s) {
if (s == "+") {
b = a.top();
a.pop();
c = a.top();
a.pop();
a.push(b + c);
} else if (s == "-") {
b = a.top();
a.pop();
c = a.top(... | #include <iostream>
#include <stack>
using namespace std;
int main() {
string s;
int b, c;
stack<int> a;
while (cin >> s) {
if (s == "+") {
b = a.top();
a.pop();
c = a.top();
a.pop();
a.push(b + c);
} else if (s == "-") {
b = a.top();
a.pop();
c = a.top(... | [
"misc.opposites",
"expression.operator.arithmetic.change",
"call.arguments.change",
"expression.operation.binary.change"
] | 107,848 | 107,849 | u921834076 | cpp |
p02263 | #include <algorithm>
#include <cctype>
#include <cmath>
#include <iomanip>
#include <iostream>
#include <stack>
#include <string>
#include <vector>
using namespace std;
int main() {
int a, b;
stack<int> st;
string op;
while (cin >> op) {
cin >> op;
if (isdigit(op[0]))
st.push(stoi(op));
else... | #include <algorithm>
#include <cctype>
#include <cmath>
#include <iomanip>
#include <iostream>
#include <stack>
#include <string>
#include <vector>
using namespace std;
int main() {
int a, b;
stack<int> st;
string op;
while (cin >> op) {
// cout << op << endl;
if (isdigit(op[0]))
st.push(stoi(op... | [] | 107,852 | 107,853 | u983285463 | cpp |
p02263 | #include "bits/stdc++.h"
using namespace std;
int top, S[1000];
void push(int x) { S[++top] = x; }
int pop() {
top--;
return S[top + 1];
}
int main() {
int a, b;
top = 0;
char s[100];
while (scanf("%s", s) != EOF) {
if (s[0] == '+') {
a = pop();
b = pop();
push(a + b);
} else if... | #include "bits/stdc++.h"
using namespace std;
int top, S[1000];
void push(int x) { S[++top] = x; }
int pop() {
top--;
return S[top + 1];
}
int main() {
int a, b;
top = 0;
char s[100];
while (scanf("%s", s) != EOF) {
if (s[0] == '+') {
a = pop();
b = pop();
push(a + b);
} else if ... | [
"assignment.add"
] | 107,854 | 107,855 | u944777079 | cpp |
p02263 | #include <algorithm>
#include <iostream>
#include <sstream>
#include <stack>
#define ll long long
using namespace std;
int main() {
string s;
stack<ll> st;
while (cin >> s) {
if (s == "+") {
ll a = st.top();
st.pop();
ll b = st.top();
st.pop();
st.push(a + b);
} else if (s ... | #include <algorithm>
#include <iostream>
#include <sstream>
#include <stack>
#define ll long long
using namespace std;
int main() {
string s;
stack<ll> st;
while (cin >> s) {
if (s == "+") {
ll a = st.top();
st.pop();
ll b = st.top();
st.pop();
st.push(a + b);
} else if (s ... | [
"expression.operation.binary.remove"
] | 107,856 | 107,857 | u219436378 | cpp |
p02263 | #include <stack>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
int top, S[1000];
int pop() {
if (top == 0) {
throw "stack is empty.";
}
return S[--top];
}
void push(int x) { S[top++] = x; }
int main() {
int x;
char s[100];
top = 0;
while (scanf("%s", s) != EOF) {
if (s[0] == '+'... |
#include <stack>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
int top, S[1000];
int pop() {
if (top == 0) {
throw "stack is empty.";
}
return S[--top];
}
void push(int x) { S[top++] = x; }
int main() {
int x;
char s[100];
top = 0;
while (scanf("%s", s) != EOF) {
if (s[0] == '+... | [
"expression.operation.binary.remove"
] | 107,860 | 107,861 | u379744035 | cpp |
p02263 | #include <algorithm>
#include <cctype>
#include <cmath>
#include <iomanip>
#include <iostream>
#include <sstream>
#include <stack>
#include <string>
#include <vector>
#define REP(i, n) for (int i = 0; i < n; ++i)
#define RREP(i, n) for (int i = n - 1; i >= 0; --i)
#define FOR(i, m, n) for (int i = m; i < n; ++i)
#defi... | #include <algorithm>
#include <cctype>
#include <cmath>
#include <iomanip>
#include <iostream>
#include <sstream>
#include <stack>
#include <string>
#include <vector>
#define REP(i, n) for (int i = 0; i < n; ++i)
#define RREP(i, n) for (int i = n - 1; i >= 0; --i)
#define FOR(i, m, n) for (int i = m; i < n; ++i)
#defi... | [
"expression.operation.binary.remove"
] | 107,862 | 107,863 | u667297321 | cpp |
p02263 | #include <cstdlib>
#include <iostream>
#include <math.h>
#include <stack>
#include <stdio.h>
#include <string.h>
using namespace std;
class c_polish {
private:
public:
c_polish();
void f_input();
};
c_polish::c_polish() {}
void c_polish::f_input() {
string s[200];
long i;
long data0;
stack<long> data1;
... | #include <cstdlib>
#include <iostream>
#include <math.h>
#include <stack>
#include <stdio.h>
#include <string.h>
using namespace std;
class c_polish {
private:
public:
c_polish();
void f_input();
};
c_polish::c_polish() {}
void c_polish::f_input() {
string s[200];
long i;
long data0;
stack<long> data1;
... | [
"expression.operation.binary.remove",
"assignment.change"
] | 107,864 | 107,865 | u851545257 | cpp |
p02263 | #include <cstdlib>
#include <deque>
#include <iostream>
using namespace std;
int main(void) {
deque<int> st;
string formula;
int a, b;
while (1) {
cin >> formula;
if (cin.eof())
break;
char c = *formula.c_str();
switch (c) {
case '+':
a = st[st.size() - 1];
b = st... | #include <cstdlib>
#include <deque>
#include <iostream>
using namespace std;
int main(void) {
deque<int> st;
string formula;
int a, b;
while (1) {
cin >> formula;
if (cin.eof())
break;
char c = *formula.c_str();
switch (c) {
case '+':
a = st[st.size() - 2];
b = st... | [
"literal.number.change",
"assignment.value.change",
"variable_access.subscript.index.change",
"expression.operation.binary.change"
] | 107,869 | 107,870 | u982084524 | cpp |
p02263 | #include <stdio.h>
#include <stdlib.h>
#include <string.h>
int top, S[1000];
void push(int x) { S[++top] = x; }
int pop() {
top--;
return S[top + 1];
}
int main() {
int a, b;
top = 0;
char str[100];
while (scanf("%s", str) != EOF) {
if (str[0] == '+') {
a = pop();
b = pop();
push(a +... | #include <stdio.h>
#include <stdlib.h>
#include <string.h>
int top, S[1000];
void push(int x) { S[++top] = x; }
int pop() {
top--;
return S[top + 1];
}
int main() {
int a, b;
top = 0;
char str[100];
while (scanf("%s", str) != EOF) {
if (str[0] == '+') {
a = pop();
b = pop();
push(a +... | [
"assignment.add"
] | 107,871 | 107,872 | u355438259 | cpp |
p02263 | #include <iostream>
#include <stdio.h>
#include <stdlib.h>
#include <string>
using namespace std;
int top = 0, S[1000];
int pop() {
top--;
return S[top + 1];
}
void push(int x) { S[++top] = x; }
int main() {
char s[100];
while (scanf("%s", s) != EOF) {
if (s[0] == '+') {
int a = pop();
int ... | #include <iostream>
#include <stdio.h>
#include <stdlib.h>
#include <string>
using namespace std;
int top = 0, S[1000];
int pop() {
top--;
return S[top + 1];
}
void push(int x) { S[++top] = x; }
int main() {
char s[100];
while (scanf("%s", s) != EOF) {
if (s[0] == '+') {
int a = pop();
int ... | [
"expression.operation.binary.remove",
"literal.string.change",
"call.arguments.change",
"io.output.change",
"io.output.newline.add"
] | 107,873 | 107,874 | u096656118 | cpp |
p02263 | #include <iostream>
#include <stdio.h>
#include <stdlib.h>
#include <string>
using namespace std;
int top = 0, S[1000];
int pop() {
top--;
return S[top + 1];
}
void push(int x) { S[++top] = x; }
int main() {
char s[100];
while (scanf("%s", s) != EOF) {
if (s[0] == '+') {
int a = pop();
int ... | #include <iostream>
#include <stdio.h>
#include <stdlib.h>
#include <string>
using namespace std;
int top = 0, S[1000];
int pop() {
top--;
return S[top + 1];
}
void push(int x) { S[++top] = x; }
int main() {
char s[100];
while (scanf("%s", s) != EOF) {
if (s[0] == '+') {
int a = pop();
int ... | [
"expression.operation.binary.remove"
] | 107,875 | 107,874 | u096656118 | cpp |
p02263 | #include <cstdio>
#include <cstdlib>
#include <iostream>
#include <string>
using namespace std;
int S[1000], top;
void push(int x) { S[++top] = x; }
int pop() {
top--;
return S[top + 1];
}
int main() {
int a, b;
char s[100];
top = 0;
while (scanf("%s", s) != EOF) {
if (s[0] == '+') {
a = pop(... | #include <cstdio>
#include <cstdlib>
#include <iostream>
#include <string>
using namespace std;
int S[1000], top;
void push(int x) { S[++top] = x; }
int pop() {
top--;
return S[top + 1];
}
int main() {
int a, b;
char s[100];
top = 0;
while (scanf("%s", s) != EOF) {
if (s[0] == '+') {
a = pop(... | [
"assignment.add"
] | 107,876 | 107,877 | u387842620 | cpp |
p02263 | #include <cstdlib>
#include <iostream>
using namespace std;
int S[1000], top;
void push(int i) {
S[top] = i;
top++;
}
int pop() {
int i = S[top--];
top--;
return i;
}
int main() {
int i, j;
char c[100];
while (cin >> c) {
if (c[0] == '+') {
i = pop();
j = pop();
push(i + j);
} ... | #include <cstdlib>
#include <iostream>
using namespace std;
int S[1000], top;
void push(int i) {
S[top] = i;
top++;
}
int pop() {
int i = S[top - 1];
top--;
return i;
}
int main() {
int i, j;
char c[100];
while (cin >> c) {
if (c[0] == '+') {
i = pop();
j = pop();
push(i + j);
... | [
"variable_access.subscript.index.change"
] | 107,878 | 107,879 | u660370248 | cpp |
p02263 | #include <algorithm>
#include <iostream>
#include <limits>
#include <stack>
#include <string>
#include <vector>
#define INT_MAX 2147483647
#define INT_MIN -2147483647
using namespace std;
void print(vector<pair<char, int>> &data) {
for (int i = 0; i < data.size() - 1; ++i)
cout << data[i].first << data[i].secon... | #include <algorithm>
#include <iostream>
#include <limits>
#include <stack>
#include <string>
#include <vector>
#define INT_MAX 2147483647
#define INT_MIN -2147483647
using namespace std;
void print(vector<pair<char, int>> &data) {
for (int i = 0; i < data.size() - 1; ++i)
cout << data[i].first << data[i].secon... | [
"assignment.variable.change",
"identifier.change"
] | 107,880 | 107,881 | u922538592 | cpp |
p02263 | #include <stdio.h>
#include <stdlib.h>
char stack[200];
int top = 0;
bool isFull() {
if (top == 199) {
return true;
}
return false;
}
bool isEmpty() {
if (top == -1) {
return true;
}
return false;
}
int pop() {
if (isEmpty()) {
printf("Stack is empty.\n");
exit(EXIT_FAILURE);
}
ret... | #include <stdio.h>
#include <stdlib.h>
int stack[100];
int top = 0;
bool isFull() {
if (top == 199) {
return true;
}
return false;
}
bool isEmpty() {
if (top == -1) {
return true;
}
return false;
}
int pop() {
if (isEmpty()) {
printf("Stack is empty.\n");
exit(EXIT_FAILURE);
}
retu... | [
"variable_declaration.type.primitive.change",
"literal.number.change",
"variable_declaration.array_dimensions.change",
"function.return_value.change"
] | 107,882 | 107,883 | u432957752 | cpp |
p02263 | #include <iostream>
#include <stack>
#include <string>
using namespace std;
int main() {
string word;
stack<int> S;
while (cin >> word) {
if (word == "+") {
double a = S.top();
S.pop();
double b = S.top();
S.pop();
S.push(a + b);
} else if (word == "-") {
double a = S.... | #include <iostream>
#include <stack>
#include <string>
using namespace std;
int main() {
string word;
stack<int> S;
while (cin >> word) {
if (word == "+") {
double a = S.top();
S.pop();
double b = S.top();
S.pop();
S.push(a + b);
} else if (word == "-") {
double a = S.... | [] | 107,885 | 107,886 | u134393644 | cpp |
p02263 | #include <cctype>
#include <cstdio>
#include <cstdlib>
#include <iostream>
#include <string>
using namespace std;
const int MAX = 100;
int top, s[MAX + 1];
void initialize() { top = 0; }
bool isEmpty() { return top == 0; }
bool isFull() { return top >= MAX; }
void push(int x) {
if (isFull()) {
fprintf(stderr... | #include <cctype>
#include <cstdio>
#include <cstdlib>
#include <iostream>
#include <string>
using namespace std;
const int MAX = 100;
int top, s[MAX + 1];
void initialize() { top = 0; }
bool isEmpty() { return top == 0; }
bool isFull() { return top >= MAX; }
void push(int x) {
if (isFull()) {
fprintf(stderr... | [
"variable_declaration.remove",
"variable_declaration.add"
] | 107,887 | 107,888 | u295583755 | cpp |
p02263 | #include <iostream>
#include <stack>
#include <stdlib.h>
#include <string>
using namespace std;
int main() {
stack<int> S;
string ch;
int a, b;
while (cin >> ch) {
switch (ch[0]) {
case '+':
a = S.top();
S.pop();
b = S.top();
S.pop();
S.push(a + b);
break;
case ... | #include <iostream>
#include <stack>
#include <stdlib.h>
#include <string>
using namespace std;
int main() {
stack<int> S;
string ch;
int a, b;
while (cin >> ch) {
switch (ch[0]) {
case '+':
a = S.top();
S.pop();
b = S.top();
S.pop();
S.push(a + b);
break;
case ... | [
"expression.operation.binary.remove"
] | 107,889 | 107,890 | u513562273 | cpp |
p02263 | #ifdef LOCAL_BUILD
#include "pch.h"
#define DLOG(msg) cout << "#" << __LINE__ << ":" << msg << endl;
#else
#include <bits/stdc++.h>
#define DLOG(msg)
#endif
using namespace std;
template <typename T> struct StackProcessor {
StackProcessor() : m(new T[buffer_len]) {}
template <typename F> void process(F f) {
a... | #ifdef LOCAL_BUILD
#include "pch.h"
#define DLOG(msg) cout << "#" << __LINE__ << ":" << msg << endl;
#else
#include <bits/stdc++.h>
#define DLOG(msg)
#endif
using namespace std;
template <typename T> struct StackProcessor {
StackProcessor() : m(new T[buffer_len]) {}
template <typename F> void process(F f) {
a... | [
"call.arguments.change",
"call.arguments.add",
"misc.opposites",
"expression.operator.arithmetic.change",
"function.return_value.change",
"expression.operation.binary.change"
] | 107,896 | 107,897 | u096346680 | cpp |
p02263 | #ifdef LOCAL_BUILD
#include "pch.h"
#define DLOG(msg) cout << "#" << __LINE__ << ":" << msg << endl;
#else
#include <bits/stdc++.h>
#define DLOG(msg)
#endif
using namespace std;
template <typename T> struct StackProcessor {
StackProcessor() : m(new T[buffer_len]) {}
template <typename F> void process(F f) {
a... | #ifdef LOCAL_BUILD
#include "pch.h"
#define DLOG(msg) cout << "#" << __LINE__ << ":" << msg << endl;
#else
#include <bits/stdc++.h>
#define DLOG(msg)
#endif
using namespace std;
template <typename T> struct StackProcessor {
StackProcessor() : m(new T[buffer_len]) {}
template <typename F> void process(F f) {
a... | [
"call.arguments.change",
"call.arguments.add"
] | 107,898 | 107,897 | u096346680 | cpp |
p02263 | #include <iostream>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
using namespace std;
int top, S[1000];
void push(int x) { S[++top] = x; }
int pop() {
top--;
return S[top + 1];
}
int main() {
int a, b;
top = 0;
char ch[100];
while (scanf("%s", ch) != EOF) {
if (ch[0] == '+') {
a ... | #include <iostream>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
using namespace std;
int top, S[1000];
void push(int x) { S[++top] = x; }
int pop() {
top--;
return S[top + 1];
}
int main() {
int a, b;
top = 0;
char ch[100];
while (scanf("%s", ch) != EOF) {
if (ch[0] == '+') {
a ... | [
"expression.operation.binary.remove"
] | 107,901 | 107,902 | u559945002 | cpp |
p02263 | #include <iostream>
#include <stack>
#include <string>
using namespace std;
int main() {
string s;
int a, b;
stack<int> st;
while (cin >> s) {
if (s == "+") {
a = st.top();
st.pop();
b = st.top();
st.pop();
st.push(a + b);
} else if (s == "-") {
a = st.top();
... | #include <iostream>
#include <stack>
#include <string>
using namespace std;
int main(void) {
string s;
int a, b;
stack<int> st;
while (cin >> s) {
if (s == "+") {
a = st.top();
st.pop();
b = st.top();
st.pop();
st.push(a + b);
} else if (s == "-") {
b = st.top();
... | [
"function.parameters.parameter.add",
"assignment.variable.change",
"identifier.change"
] | 107,903 | 107,904 | u429512194 | cpp |
p02263 |
#include <algorithm>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <deque>
#include <functional>
#include <iostream>
#include <map>
#include <queue>
#include <set>
#include <stack>
#include <stdio.h>
#include <vector>
#define Max_N 100
using namespace std;
int V[Max_N];
int top = 0;
int pop(int ... |
#include <algorithm>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <deque>
#include <functional>
#include <iostream>
#include <map>
#include <queue>
#include <set>
#include <stack>
#include <stdio.h>
#include <vector>
#define Max_N 100
using namespace std;
int V[Max_N];
int top = 0;
int pop(int ... | [
"expression.operation.binary.remove"
] | 107,909 | 107,910 | u753127815 | cpp |
p02263 | #include <cstdlib>
#include <iostream>
using std::cin;
using std::cout;
using std::endl;
#include <stack>
using std::stack;
#include <string>
using std::string;
int main() {
stack<int> S;
string s;
int v1, v2;
while (cin >> s) {
if (s[0] == '+') {
v1 = S.top();
S.pop();
v2 = S.top();
... | #include <cstdlib>
#include <iostream>
using std::cin;
using std::cout;
using std::endl;
#include <stack>
using std::stack;
#include <string>
using std::string;
int main() {
stack<int> S;
string s;
int v1, v2;
while (cin >> s) {
if (s[0] == '+') {
v1 = S.top();
S.pop();
v2 = S.top();
... | [
"expression.operation.binary.remove"
] | 107,911 | 107,912 | u753127815 | cpp |
p02263 | #include <ctype.h>
#include <iostream>
#include <stack>
#include <string>
using namespace std;
int main() {
stack<int> st;
string s;
while (cin >> s) {
char c = s[0];
if (isdigit(c)) {
st.push(stoi(s));
} else {
int x = st.top();
st.pop();
int y = st.top();
st.pop();
... | #include <ctype.h>
#include <iostream>
#include <stack>
#include <string>
using namespace std;
int main() {
stack<int> st;
string s;
while (cin >> s) {
char c = s[0];
if (isdigit(c)) {
st.push(stoi(s));
} else {
int y = st.top();
st.pop();
int x = st.top();
st.pop();
... | [
"variable_declaration.name.change",
"identifier.change"
] | 107,915 | 107,916 | u932131100 | cpp |
p02263 | #include <cstdlib>
#include <iostream>
#include <stack>
#include <string>
using namespace std;
int main() {
stack<int> st;
int a, b;
string s;
while (cin >> s)
if (s[0] == '+') {
a = st.top();
st.pop();
b = st.top();
st.pop();
st.push(a + b);
} else if (s[0] == '-') {
... | #include <cstdlib>
#include <iostream>
#include <stack>
#include <string>
using namespace std;
int main() {
stack<int> st;
int a, b;
string s;
while (cin >> s)
if (s[0] == '+') {
a = st.top();
st.pop();
b = st.top();
st.pop();
st.push(a + b);
} else if (s[0] == '-') {
... | [
"expression.operation.binary.remove"
] | 107,918 | 107,919 | u071175824 | cpp |
p02263 | #include <iostream>
#include <sstream>
#include <string>
#include <vector>
using namespace std;
struct Stack {
int pointer;
int *data;
Stack(int size) {
this->data = new int[size];
this->pointer = -1;
}
void push(int val) {
this->pointer++;
this->data[pointer] = val;
}
int pop() {
if... | #include <iostream>
#include <sstream>
#include <string>
#include <vector>
using namespace std;
struct Stack {
int pointer;
int *data;
Stack(int size) {
this->data = new int[size];
this->pointer = -1;
}
void push(int val) {
this->pointer++;
this->data[pointer] = val;
}
int pop() {
if... | [
"literal.string.change",
"control_flow.branch.if.condition.change",
"variable_declaration.remove",
"variable_declaration.add"
] | 107,923 | 107,924 | u312838664 | cpp |
p02263 | #include <stdio.h>
#include <stdlib.h>
#include <string.h>
int top;
int S[1000];
void push(int x) {
top++;
S[top] = x;
}
int pop() {
top--;
return S[top + 1];
}
int main() {
int a, b;
top = 0;
char s[100];
while (scanf("%s", s) != EOF) {
if (s[0] == '+') {
a = pop();
b = pop();
pus... | #include <stdio.h>
#include <stdlib.h>
#include <string.h>
int top;
int S[1000];
void push(int x) {
top++;
S[top] = x;
}
int pop() {
top--;
return S[top + 1];
}
int main() {
int a, b;
top = 0;
char s[100];
while (scanf("%s", s) != EOF) {
if (s[0] == '+') {
a = pop();
b = pop();
pus... | [
"expression.operation.binary.remove"
] | 107,925 | 107,926 | u827855385 | cpp |
p02263 | #include <iostream>
#include <sstream>
#include <stack>
#include <string>
using namespace std;
int main() {
string str;
getline(cin, str);
stack<int> sta;
stringstream ss(str);
string item;
while (getline(ss, item, ' ')) {
if ('0' < item[0] && item[0] < '9') {
sta.push(stoi(item));
contin... | #include <iostream>
#include <sstream>
#include <stack>
#include <string>
using namespace std;
int main() {
string str;
getline(cin, str);
stack<int> sta;
stringstream ss(str);
string item;
while (getline(ss, item, ' ')) {
if ('0' <= item[0] && item[0] <= '9') {
sta.push(stoi(item));
cont... | [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 107,927 | 107,928 | u891005456 | cpp |
p02263 | #include <iostream>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
using namespace std;
int s[1000], top = 0;
void push(int x) { s[++top] = x; }
int pop() {
--top;
return s[top + 1];
}
int main() {
int c, b;
char a[100];
while (scanf("%s", a)) {
if (a[0] == '+') {
b = pop();
c = ... | #include <iostream>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
using namespace std;
int s[1000], top = 0;
void push(int x) { s[++top] = x; }
int pop() {
--top;
return s[top + 1];
}
int main() {
int c, b;
char a[100];
while (scanf("%s", a) != EOF) {
if (a[0] == '+') {
b = pop();
... | [
"control_flow.loop.condition.change"
] | 107,931 | 107,932 | u861486645 | cpp |
p02263 | #include <algorithm>
#include <bits/stdc++.h>
#include <iostream>
#include <queue>
#include <stdio.h>
#include <string.h>
using namespace std;
stack<int> d;
int tag[50005];
int main() {
char a[100];
int x, y;
while (cin >> a) {
if (a[0] == '-') {
x = d.top();
d.pop();
y = d.top();
d.... | #include <algorithm>
#include <bits/stdc++.h>
#include <iostream>
#include <queue>
#include <stdio.h>
#include <string.h>
using namespace std;
stack<int> d;
int tag[50005];
int main() {
char a[100];
int x, y;
while (cin >> a) {
if (a[0] == '-') {
x = d.top();
d.pop();
y = d.top();
d.... | [
"expression.operation.binary.remove"
] | 107,953 | 107,954 | u402560117 | cpp |
p02263 | #include <algorithm>
#include <bits/stdc++.h>
#include <iostream>
#include <queue>
#include <stdio.h>
#include <string.h>
using namespace std;
stack<int> d;
int tag[50005];
int popo(stack<int> x) {
int y = x.top();
x.pop();
return y;
}
int main() {
char a[100];
int x, y;
while (cin >> a) {
if (a[0] == ... | #include <algorithm>
#include <bits/stdc++.h>
#include <iostream>
#include <queue>
#include <stdio.h>
#include <string.h>
using namespace std;
stack<int> d;
int tag[50005];
int popo(stack<int> &x) {
int y = x.top();
x.pop();
return y;
}
int main() {
char a[100];
int x, y;
while (cin >> a) {
if (a[0] ==... | [
"expression.operation.binary.remove"
] | 107,955 | 107,956 | u402560117 | cpp |
p02263 | #include <algorithm>
#include <bits/stdc++.h>
#include <iostream>
#include <queue>
#include <stdio.h>
#include <string.h>
using namespace std;
stack<int> d;
int tag[50005];
int popo(stack<int> &x) {
int y = x.top();
x.pop();
return y;
}
int main() {
char a[100];
int x, y;
while (cin >> a) {
if (a[0] ==... | #include <algorithm>
#include <bits/stdc++.h>
#include <iostream>
#include <queue>
#include <stdio.h>
#include <string.h>
using namespace std;
stack<int> d;
int tag[50005];
int popo(stack<int> &x) {
int y = x.top();
x.pop();
return y;
}
int main() {
char a[100];
int x, y;
while (cin >> a) {
if (a[0] ==... | [
"expression.operation.binary.remove"
] | 107,957 | 107,956 | u402560117 | cpp |
p02263 | #include <bits/stdc++.h>
using namespace std;
int main() {
string s;
int a, b;
stack<int> st;
while (cin >> s) {
if (s[0] == '+') {
a = st.top();
st.pop();
b = st.top();
st.pop();
st.push(b + a);
} else if (s[0] == '*') {
a = st.top();
st.pop();
b = st.to... | #include <bits/stdc++.h>
using namespace std;
int main() {
string s;
int a, b;
stack<int> st;
while (cin >> s) {
if (s[0] == '+') {
a = st.top();
st.pop();
b = st.top();
st.pop();
st.push(b + a);
} else if (s[0] == '*') {
a = st.top();
st.pop();
b = st.to... | [] | 107,958 | 107,959 | u662370791 | cpp |
p02263 | #include <cstdlib>
#include <iostream>
#include <stack>
#include <string>
using namespace std;
int main() {
int a, b;
string s;
stack<int> t;
while (cin >> s) {
if (s[0] == '+') {
a = t.top();
t.pop();
b = t.top();
t.pop();
t.push(a + b);
} else if (s[0] == '-') {
a ... | #include <cstdlib>
#include <iostream>
#include <stack>
#include <string>
using namespace std;
int main() {
int a, b;
string s;
stack<int> t;
while (cin >> s) {
if (s[0] == '+') {
a = t.top();
t.pop();
b = t.top();
t.pop();
t.push(a + b);
} else if (s[0] == '-') {
a ... | [
"expression.operation.binary.remove"
] | 107,962 | 107,963 | u675217322 | cpp |
p02263 | #include <algorithm>
#include <iostream>
#include <stack>
#include <string>
using namespace std;
main() {
int a, b;
string str;
stack<int> s;
while (cin >> str) {
if ('+' == str[0]) {
a = s.top();
s.pop();
b = s.top();
s.pop();
s.push(a + b);
} else if ('-' == str[0]) {
... | #include <algorithm>
#include <iostream>
#include <stack>
#include <string>
using namespace std;
main() {
int a, b;
string str;
stack<int> s;
while (cin >> str) {
if ('+' == str[0]) {
a = s.top();
s.pop();
b = s.top();
s.pop();
s.push(a + b);
} else if ('-' == str[0]) {
... | [
"expression.operation.binary.remove"
] | 107,964 | 107,965 | u915561865 | cpp |
p02263 | #include <algorithm>
#include <cmath>
#include <functional>
#include <iomanip>
#include <iostream>
#include <map>
#include <set>
#include <stack>
#include <string>
#include <utility>
#include <vector>
constexpr int MOD = 1000000007;
constexpr int INF = 2000000000;
int main() {
std::string str;
std::stack<int> s;
... | #include <algorithm>
#include <cmath>
#include <functional>
#include <iomanip>
#include <iostream>
#include <map>
#include <set>
#include <stack>
#include <string>
#include <utility>
#include <vector>
constexpr int MOD = 1000000007;
constexpr int INF = 2000000000;
int main() {
std::string str;
std::stack<int> s;
... | [
"assignment.variable.change",
"identifier.change"
] | 107,966 | 107,967 | u018085514 | cpp |
p02263 | #include <cstdlib>
#include <iostream>
#include <stack>
#include <string>
using namespace std;
int main() {
string word;
stack<int> S;
while (cin >> word) {
if (word == "+") {
int a = S.top();
S.pop();
int b = S.top();
S.pop();
S.push(a + b);
} else if (word == "-") {
... | #include <cstdlib>
#include <iostream>
#include <stack>
#include <string>
using namespace std;
int main() {
string word;
stack<int> S;
while (cin >> word) {
if (word == "+") {
int a = S.top();
S.pop();
int b = S.top();
S.pop();
S.push(a + b);
} else if (word == "-") {
... | [
"expression.operation.binary.remove"
] | 107,968 | 107,969 | u379596793 | cpp |
p02263 | #include <cstdlib>
#include <iostream>
#include <stack>
#include <string>
using namespace std;
int main() {
stack<int> mystack;
string in;
while (cin >> in) {
if (in == "+") {
int x = mystack.top();
mystack.pop();
int y = mystack.top();
mystack.pop();
int z = x + y;
mysta... | #include <cstdlib>
#include <iostream>
#include <stack>
#include <string>
using namespace std;
int main() {
stack<int> mystack;
string in;
while (cin >> in) {
if (in == "+") {
int x = mystack.top();
mystack.pop();
int y = mystack.top();
mystack.pop();
int z = x + y;
mysta... | [
"expression.operation.binary.remove"
] | 107,972 | 107,973 | u933366037 | cpp |
p02263 | #include <cstdlib>
#include <iostream>
#include <stack>
#include <string>
using namespace std;
int main() {
stack<int> mystack;
string in;
while (cin >> in) {
if (in == "+") {
int x = mystack.top();
mystack.pop();
int y = mystack.top();
mystack.pop();
int z = x + y;
mysta... | #include <cstdlib>
#include <iostream>
#include <stack>
#include <string>
using namespace std;
int main() {
stack<int> mystack;
string in;
while (cin >> in) {
if (in == "+") {
int x = mystack.top();
mystack.pop();
int y = mystack.top();
mystack.pop();
int z = x + y;
mysta... | [
"expression.operation.binary.remove"
] | 107,974 | 107,973 | u933366037 | cpp |
p02263 | #include <stdio.h>
#include <stdlib.h>
#include <string.h>
#define N 200
#define Max 1000000
int top;
int S[N];
int pop() { return S[top--]; }
void init() { top = 0; }
void push(int x) { S[++top] = x; }
int main() {
char s[Max];
int a, b;
init();
while (scanf("%s", s) != EOF) {
if (!strcmp(s, "+")) {
... | #include <stdio.h>
#include <stdlib.h>
#include <string.h>
#define N 200
#define Max 1000000
int top;
int S[N];
int pop() { return S[top--]; }
void init() { top = 0; }
void push(int x) { S[++top] = x; }
int main() {
char s[Max];
int a, b;
init();
while (scanf("%s", s) != EOF) {
if (!strcmp(s, "+")) {
... | [
"expression.operation.binary.remove"
] | 107,975 | 107,976 | u407335067 | cpp |
p02263 | #include <stdio.h>
#include <stdlib.h>
#include <string.h>
#define N 200
#define Max 1000000
int top;
int S[N];
int pop() { return S[top--]; }
void init() { top = 0; }
void push(int x) { S[++top] = x; }
int main() {
char s[Max];
int a, b;
init();
while (scanf("%s", s) != EOF) {
if (!strcmp(s, "+")) {
... | #include <stdio.h>
#include <stdlib.h>
#include <string.h>
#define N 200
#define Max 1000000
int top;
int S[N];
int pop() { return S[top--]; }
void init() { top = 0; }
void push(int x) { S[++top] = x; }
int main() {
char s[Max];
int a, b;
init();
while (scanf("%s", s) != EOF) {
if (!strcmp(s, "+")) {
... | [
"expression.operation.binary.remove"
] | 107,975 | 107,977 | u407335067 | cpp |
p02263 | #include <stdio.h>
#include <stdlib.h>
#include <string.h>
int top, S[1000];
void push(int x) { S[top++] = x; }
int pop() {
top--;
return S[top + 1];
}
int main() {
int a, b;
top = 0;
char s[100];
while (scanf("%s", s) != EOF) {
if (s[0] == '+') {
a = pop();
b = pop();
push(a + b);
... | #include <stdio.h>
#include <stdlib.h>
#include <string.h>
int top, S[1000];
void push(int x) { S[++top] = x; }
int pop() {
top--;
return S[top + 1];
}
int main() {
int a, b;
top = 0;
char s[100];
while (scanf("%s", s) != EOF) {
if (s[0] == '+') {
a = pop();
b = pop();
push(a + b... | [] | 107,978 | 107,979 | u188805649 | cpp |
p02263 | #include <algorithm>
#include <cmath>
#include <cstdio>
#include <functional>
#include <iostream>
#include <iterator>
#include <limits>
#include <map>
#include <numeric>
#include <queue>
#include <set>
#include <stack>
#include <string>
#include <vector>
#define all(x) (x).begin(), (x).end()
#define rall(x) (x).rbegin... |
#include <algorithm>
#include <cmath>
#include <cstdio>
#include <functional>
#include <iostream>
#include <iterator>
#include <limits>
#include <map>
#include <numeric>
#include <queue>
#include <set>
#include <stack>
#include <string>
#include <vector>
#define all(x) (x).begin(), (x).end()
#define rall(x) (x).rbegi... | [] | 107,980 | 107,981 | u481307862 | cpp |
p02263 | #include <cstdlib>
#include <iostream>
#include <stack>
using namespace std;
int main(void) {
stack<int> S;
string s;
int x;
int y;
while (cin >> s) {
if (s == "+") {
x = S.top();
S.pop();
y = S.top();
S.pop();
S.push(x + y);
} else if (s == "-") {
x = S.top();
... | #include <cstdlib>
#include <iostream>
#include <stack>
using namespace std;
int main(void) {
stack<int> S;
string s;
int x;
int y;
while (cin >> s) {
if (s == "+") {
x = S.top();
S.pop();
y = S.top();
S.pop();
S.push(x + y);
} else if (s == "-") {
x = S.top();
... | [
"expression.operation.binary.remove"
] | 107,982 | 107,983 | u526840628 | cpp |
p02263 | #define _CRT_SECURE_NO_WARNINGS
#include <algorithm>
#include <cstdio>
#include <cstdlib>
#include <string>
#include <vector>
using namespace std;
int top, S[101];
void initialize() { top = 0; }
bool isEmpty() { return top == 0; }
bool isFull() { return top == 100; }
void push(int x) {
if (isFull()) {
printf("... | #define _CRT_SECURE_NO_WARNINGS
#include <algorithm>
#include <cstdio>
#include <cstdlib>
#include <string>
#include <vector>
using namespace std;
int top, S[101];
void initialize() { top = 0; }
bool isEmpty() { return top == 0; }
bool isFull() { return top == 100; }
void push(int x) {
if (isFull()) {
printf("... | [
"literal.number.change",
"variable_access.subscript.index.change",
"control_flow.branch.if.condition.change"
] | 107,986 | 107,987 | u222195708 | cpp |
p02263 | #include <stdio.h>
#include <stdlib.h>
#include <string.h>
#define MAX 1000
int push(int A[], int *top, int val) {
if (*top == MAX - 1)
return 0;
A[++(*top)] = val;
return val;
}
int pop(int A[], int *top) {
if (*top == 0)
return 0;
(*top)--;
return A[(*top) + 1];
}
int main() {
int arr[1000], ... | #include <stdio.h>
#include <stdlib.h>
#include <string.h>
#define MAX 1000
int push(int A[], int *top, int val) {
if (*top == MAX - 1)
return 0;
A[++(*top)] = val;
return val;
}
int pop(int A[], int *top) {
if (*top == 0)
return 0;
(*top)--;
return A[(*top) + 1];
}
int main() {
int arr[1000], ... | [
"expression.operation.binary.remove"
] | 107,989 | 107,990 | u317061195 | cpp |
p02264 | #include <cstdio>
#include <iostream>
#include <queue>
using namespace std;
typedef struct pp {
char name[100];
int t;
} P;
queue<P> m;
int main() {
int i, n, q, ans = 0;
P u;
cin >> n >> q;
for (i = 0; i < n; i++) {
cin >> u.name >> u.t;
m.push(u);
}
while (!m.empty()) {
u = m.front();
... | #include <cstdio>
#include <iostream>
#include <queue>
using namespace std;
typedef struct pp {
char name[100];
int t;
} P;
queue<P> m;
int main() {
int i, n, q, ans = 0;
P u;
cin >> n >> q;
for (i = 0; i < n; i++) {
cin >> u.name >> u.t;
m.push(u);
}
while (!m.empty()) {
u = m.front();
... | [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 109,420 | 109,421 | u011621222 | cpp |
p02264 | #include <deque>
#include <iostream>
#include <stdio.h>
#include <stdlib.h>
#include <string>
using namespace std;
int main() {
int n, q;
deque<int> myque;
deque<string> nque;
string name;
long int time;
cin >> n >> q;
for (int i = 0; i < n; i++) {
cin >> name >> time;
nque.push_back(name);
my... | #include <deque>
#include <iostream>
#include <stdio.h>
#include <stdlib.h>
#include <string>
using namespace std;
int main() {
int n, q;
deque<long int> myque;
deque<string> nque;
string name;
long int time;
cin >> n >> q;
for (int i = 0; i < n; i++) {
cin >> name >> time;
nque.push_back(name);
... | [
"variable_declaration.type.widen.change",
"identifier.replace.add",
"literal.replace.remove",
"control_flow.branch.if.condition.change",
"assignment.value.change",
"expression.operation.binary.change"
] | 109,424 | 109,425 | u011621222 | cpp |
p02264 | #include <iostream>
#include <queue>
using namespace std;
int main(void) {
int n, q, s;
cin >> n >> q;
string m;
queue<string> name;
queue<int> time;
for (int i = 0; i < n; i++) {
cin >> m >> s;
name.push(m);
time.push(s);
}
int t = 0;
while (!name.empty()) {
string a = name.front();
... | #include <iostream>
#include <queue>
using namespace std;
int main(void) {
int n, q, s;
cin >> n >> q;
string m;
queue<string> name;
queue<int> time;
for (int i = 0; i < n; i++) {
cin >> m >> s;
name.push(m);
time.push(s);
}
int t = 0;
while (!name.empty()) {
string a = name.front();
... | [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 109,431 | 109,432 | u681100671 | cpp |
p02264 | #include <iostream>
#include <stdio.h>
#define LEN 100005
using namespace std;
struct Process {
char name[10];
int time;
};
int head, tail;
Process P[LEN];
bool isEmpty(void) { return head == tail; }
// bool isFull(void) {
// return
//}
Process deque(void) {
Process x = P[head];
head++;
if (head == LEN)... | #include <iostream>
#include <stdio.h>
#define LEN 100005
using namespace std;
struct Process {
char name[10];
int time;
};
int head, tail;
Process P[LEN];
bool isEmpty(void) { return head == tail; }
// bool isFull(void) {
// return
//}
Process deque(void) {
Process x = P[head];
head++;
if (head == LEN)... | [
"identifier.replace.add",
"literal.replace.remove",
"control_flow.branch.if.condition.change",
"assignment.value.change"
] | 109,436 | 109,437 | u687879635 | cpp |
p02264 | #include <algorithm>
#include <iostream>
#include <queue>
#include <string>
using namespace std;
int main() {
int n, q, t;
string name;
queue<pair<string, int>> Q;
cin >> n >> q;
for (int i = 0; i < n; i++) {
cin >> name >> t;
Q.push(make_pair(name, t));
}
pair<string, int> u;
int elaps = 0,... | #include <algorithm>
#include <iostream>
#include <queue>
#include <string>
//#include<stdlib.h>
using namespace std;
int main() {
int n, q, t;
string name;
queue<pair<string, int>> Q;
cin >> n >> q;
for (int i = 0; i < n; i++) {
cin >> name >> t;
Q.push(make_pair(name, t));
}
pair<string, int... | [
"io.output.change"
] | 109,438 | 109,439 | u239666932 | cpp |
p02264 | #include <algorithm>
#include <iostream>
#include <queue>
#include <string>
using namespace std;
int main() {
int n, q, t;
string name;
queue<pair<string, int>> Q;
cin >> n >> q;
for (int i = 0; i < n; i++) {
cin >> name >> t;
Q.push(make_pair(name, t));
}
pair<string, int> u;
int elaps = 0,... | #include <algorithm>
#include <iostream>
#include <queue>
#include <string>
//#include<stdlib.h>
using namespace std;
int main() {
int n, q, t;
string name;
queue<pair<string, int>> Q;
cin >> n >> q;
for (int i = 0; i < n; i++) {
cin >> name >> t;
Q.push(make_pair(name, t));
}
pair<string, int... | [
"io.output.change"
] | 109,440 | 109,439 | u239666932 | cpp |
p02264 | #include <stdio.h>
#include <string.h>
#define LEN 100005 // プロセスの制約 100000 のため
// 構造体
// P という別名をつけている
typedef struct pp {
char name[100];
int t;
} P;
P Q[LEN]; // P structの配列
int head, tail, n; // head ... 先頭ポインタ, tail ... 末尾ポインタ
void enqueue(P x) {
Q[tail] = x;
tail = (tail + 1) % LEN;
}
P deque... | #include <stdio.h>
#include <string.h>
#define LEN 100005 // プロセスの制約 100000 のため
// 構造体
// P という別名をつけている
typedef struct pp {
char name[100];
int t;
} P;
P Q[LEN]; // P structの配列
int head, tail, n; // head ... 先頭ポインタ, tail ... 末尾ポインタ
void enqueue(P x) {
Q[tail] = x;
tail = (tail + 1) % LEN;
}
P deque... | [
"literal.number.change",
"assignment.value.change",
"control_flow.loop.for.initializer.change",
"expression.off_by_one"
] | 109,445 | 109,446 | u742857353 | cpp |
p02264 | #include <iostream>
#include <string>
using namespace std;
class Process {
private:
string name;
int time;
public:
Process() = default;
Process(string name, int time) {
this->name = name;
this->time = time;
}
string getName() { return this->name; }
int getTime() { return this->time; }
void se... | #include <iostream>
#include <string>
using namespace std;
class Process {
private:
string name;
int time;
public:
Process() = default;
Process(string name, int time) {
this->name = name;
this->time = time;
}
string getName() { return this->name; }
int getTime() { return this->time; }
void se... | [
"literal.number.change",
"variable_declaration.array_dimensions.change"
] | 109,449 | 109,450 | u243315776 | cpp |
p02264 | #include <algorithm>
#include <cmath>
#include <cstdio>
#include <iostream>
#include <limits.h>
#include <queue>
#include <stack>
#include <string.h>
#include <string>
#include <vector>
#define maxn 10000000
#define pi acos(-1)
using namespace std;
struct node {
char x[17];
int time;
} a[100007];
int main() {
que... | #include <algorithm>
#include <cmath>
#include <cstdio>
#include <iostream>
#include <limits.h>
#include <queue>
#include <stack>
#include <string.h>
#include <string>
#include <vector>
#define maxn 10000000
#define pi acos(-1)
using namespace std;
struct node {
char x[17];
int time;
} a[100007];
int main() {
que... | [
"identifier.replace.add",
"literal.replace.remove",
"control_flow.branch.if.condition.change",
"assignment.value.change"
] | 109,454 | 109,455 | u964106905 | cpp |
p02264 | #include <algorithm>
#include <iostream>
#include <queue>
#include <string>
using namespace std;
int main() {
int n, q, t;
string name;
queue<pair<string, int>> Q;
cin >> n >> q;
for (int i = 0; i < n; i++) {
cin >> name >> t;
Q.push(make_pair(name, t));
}
pair<string, int> u;
int elaps = 0... | #include <algorithm>
#include <iostream>
#include <queue>
#include <string>
using namespace std;
int main() {
int n, q, t;
string name;
queue<pair<string, int>> Q;
cin >> n >> q;
for (int i = 0; i < n; i++) {
cin >> name >> t;
Q.push(make_pair(name, t));
}
pair<string, int> u;
int elaps = 0... | [
"assignment.add"
] | 109,456 | 109,457 | u334460795 | cpp |
p02264 | #include <iostream>
#include <stdio.h>
#include <string>
using namespace std;
#define LEN 100005
typedef struct pp {
char name[100];
int t;
} P;
P Q[LEN];
int head;
int tail;
int n;
// bool isEmpty()
// {
// return head == tail;
// }
// bool isFull()
// {
// return head == (tail + 1) % LEN;
// }
void enq... | #include <iostream>
#include <stdio.h>
#include <string>
using namespace std;
#define LEN 100005
typedef struct pp {
char name[100];
int t;
} P;
P Q[LEN];
int head;
int tail;
int n;
// bool isEmpty()
// {
// return head == tail;
// }
// bool isFull()
// {
// return head == (tail + 1) % LEN;
// }
void enq... | [
"literal.number.change",
"variable_declaration.value.change",
"control_flow.loop.for.initializer.change",
"expression.off_by_one"
] | 109,458 | 109,459 | u170615175 | cpp |
p02264 | #include <bits/stdc++.h>
using namespace std;
int main() {
int n, q, y, t;
string x;
cin >> n >> q;
queue<pair<string, int>> a;
pair<string, int> b;
for (int i = 0; i < n; i++) {
cin >> b.first >> b.second;
a.push(b);
}
while (!a.empty()) {
b = a.front();
if (b.second <= q) {
t +=... | #include <bits/stdc++.h>
using namespace std;
int main() {
int n, q, y, t = 0;
string x;
cin >> n >> q;
queue<pair<string, int>> a;
pair<string, int> b;
for (int i = 0; i < n; i++) {
cin >> b.first >> b.second;
a.push(b);
}
while (!a.empty()) {
b = a.front();
if (b.second <= q) {
... | [
"variable_declaration.value.change"
] | 109,463 | 109,464 | u472796341 | cpp |
p02264 | #include <algorithm>
#include <iostream>
#include <vector>
int main() {
int n, q;
std::cin >> n >> q;
std::vector<std::string> names(n);
std::vector<int> times(n);
int val, buf, totalTime = 0;
for (int i = 0; i < n; ++i) {
std::cin >> names.at(i) >> val;
buf = std::min(q, val);
totalTime += bu... | #include <algorithm>
#include <iostream>
#include <vector>
int main() {
int n, q;
std::cin >> n >> q;
std::vector<std::string> names(n);
std::vector<int> times(n);
int val, buf, totalTime = 0;
for (int i = 0; i < n; ++i) {
std::cin >> names.at(i) >> val;
buf = std::min(q, val);
totalTime += bu... | [
"call.arguments.change",
"expression.unary.arithmetic.add"
] | 109,468 | 109,469 | u306115317 | cpp |
p02264 | #include <iostream>
#include <queue>
using namespace std;
typedef struct {
string name;
int time;
} Process;
int main() {
int n, q;
queue<Process> que;
cin >> n >> q;
for (int i = 0; i < n; i++) {
string name;
int time;
cin >> name >> time;
Process p = {name, time};
que.push(p);
... | #include <iostream>
#include <queue>
using namespace std;
typedef struct {
string name;
int time;
} Process;
int main() {
int n, q;
queue<Process> que;
cin >> n >> q;
for (int i = 0; i < n; i++) {
string name;
int time;
cin >> name >> time;
Process p = {name, time};
que.push(p);
... | [
"identifier.replace.add",
"literal.replace.remove",
"control_flow.branch.if.condition.change",
"assignment.value.change"
] | 109,471 | 109,472 | u813563655 | cpp |
p02264 | #include <iostream>
#include <string>
using namespace std;
struct elem {
string name;
int time;
};
template <class T> class Queue {
public:
Queue(int n) : xs{new T[n]}, maxsize{n}, head{}, tail{1} {};
void enqueue(T v) { xs[tail++] = v; };
T dequeue() { return xs[head++]; };
int begin() { return head; };... | #include <iostream>
#include <string>
using namespace std;
struct elem {
string name;
int time;
};
template <class T> class Queue {
public:
Queue(int n) : xs{new T[n]}, maxsize{n}, head{}, tail{0} {};
void enqueue(T v) { xs[tail++] = v; };
T dequeue() { return xs[head++]; };
int begin() { return head; };... | [
"literal.number.change"
] | 109,473 | 109,474 | u663419588 | cpp |
p02264 | #include <cstring>
#include <iostream>
#include <queue>
using namespace std;
struct process {
char name[11];
int time;
process(char *n, int t) {
strcpy(name, n);
time = t;
}
};
int main() {
char nm[11];
int i, n, t, q, t_elapsed = 0;
int *tp;
queue<process> prcs;
cin >> n >> q;
for (i = 0;... | #include <cstring>
#include <iostream>
#include <queue>
using namespace std;
struct process {
char name[11];
int time;
process(char *n, int t) {
strcpy(name, n);
time = t;
}
};
int main() {
char nm[11];
int i, n, t, q, t_elapsed = 0;
int *tp;
queue<process> prcs;
cin >> n >> q;
for (i = 0;... | [
"assignment.value.change",
"identifier.replace.add",
"literal.replace.remove"
] | 109,475 | 109,476 | u660367323 | cpp |
p02264 | #include <algorithm>
#include <cmath>
#include <complex>
#include <iomanip>
#include <iostream>
#include <map>
#include <queue>
#include <sstream>
#include <stack>
#include <string>
#include <vector>
using namespace std;
#define ll long long
#define vvi vector<vector<int>>
#define All(X) X.begin(), X.end()
#define FOR... | #include <algorithm>
#include <cmath>
#include <complex>
#include <iomanip>
#include <iostream>
#include <map>
#include <queue>
#include <sstream>
#include <stack>
#include <string>
#include <vector>
using namespace std;
#define ll long long
#define vvi vector<vector<int>>
#define All(X) X.begin(), X.end()
#define FOR... | [
"assignment.add"
] | 109,477 | 109,478 | u220216937 | cpp |
p02264 | #include <bits/stdc++.h>
using namespace std;
pair<string, int> p[100000000];
pair<string, int> key;
int tail;
int head;
void push(string str, int n) {
p[tail].first = str;
p[tail].second = n;
tail++;
}
void pop() {
key = p[head];
head++;
}
int main() {
int n, q;
cin >> n >> q;
for (int i = 0; i < ... | #include <bits/stdc++.h>
using namespace std;
pair<string, int> p[1000000];
pair<string, int> key;
int tail;
int head;
void push(string str, int n) {
p[tail].first = str;
p[tail].second = n;
tail++;
}
void pop() {
key = p[head];
head++;
}
int main() {
int n, q;
cin >> n >> q;
for (int i = 0; i < n;... | [
"literal.number.change",
"variable_declaration.array_dimensions.change"
] | 109,485 | 109,483 | u623167544 | cpp |
p02264 | #include <iostream>
#include <queue>
#include <string>
#include <utility>
using namespace std;
int main() {
pair<string, int> schedule;
queue<pair<string, int>> Q;
int total;
int n, q;
cin >> n >> q;
for (int i = 0; i < n; i++) {
string s;
int ms;
cin >> s >> ms;
schedule = make_pair(s, ms... | #include <iostream>
#include <queue>
#include <string>
#include <utility>
using namespace std;
int main() {
pair<string, int> schedule;
queue<pair<string, int>> Q;
int total = 0;
int n, q;
cin >> n >> q;
for (int i = 0; i < n; i++) {
string s;
int ms;
cin >> s >> ms;
schedule = make_pair(s... | [
"variable_declaration.value.change"
] | 109,490 | 109,491 | u569803106 | cpp |
p02264 | #include <algorithm>
#include <cctype>
#include <cmath>
#include <cstdio>
#include <iostream>
#include <queue>
#include <string>
using namespace std;
struct PAIR {
string first;
int second;
};
int main() {
int number;
scanf("%d", &number);
int qu;
scanf("%d", &qu);
queue<PAIR> Q;
string name;
int ... | #include <algorithm>
#include <cctype>
#include <cmath>
#include <cstdio>
#include <iostream>
#include <queue>
#include <string>
using namespace std;
struct PAIR {
string first;
int second;
};
int main() {
int number;
scanf("%d", &number);
int qu;
scanf("%d", &qu);
queue<PAIR> Q;
string name;
int ... | [
"identifier.replace.add",
"literal.replace.remove",
"control_flow.branch.if.condition.change",
"assignment.value.change"
] | 109,495 | 109,496 | u334616498 | cpp |
p02264 | #include <iostream>
#include <queue>
using namespace std;
int main() {
int n, q;
int time = 0;
queue<int> Q, Qout;
queue<string> P, Pout;
cin >> n;
cin >> q;
while (n > 0) {
string N;
int T;
cin >> N;
cin >> T;
P.push(N);
Q.push(T);
n--;
}
while (!P.empty()) {
int T;
... | #include <iostream>
#include <queue>
using namespace std;
int main() {
int n, q;
int time = 0;
queue<int> Q, Qout;
queue<string> P, Pout;
cin >> n;
cin >> q;
while (n > 0) {
string N;
int T;
cin >> N;
cin >> T;
P.push(N);
Q.push(T);
n--;
}
while (!P.empty()) {
int T;
... | [
"identifier.replace.add",
"literal.replace.remove",
"control_flow.branch.if.condition.change",
"assignment.value.change"
] | 109,497 | 109,498 | u272694314 | cpp |
p02264 | #include <iostream>
#include <string>
using namespace std;
struct queue {
string name;
int time;
};
int tail, head;
queue Q[100000];
void enqueue(queue x);
queue dequeue();
int main() {
int n, q, t = 0, sum = -1;
string str;
cin >> n >> q;
tail = n;
head = 0;
for (int i = 0; i < n; i++)
cin >> Q... | #include <iostream>
#include <string>
using namespace std;
struct queue {
string name;
int time;
};
int tail, head;
queue Q[1000000];
void enqueue(queue x);
queue dequeue();
int main() {
int n, q, t = 0, sum = 0;
string str;
cin >> n >> q;
tail = n;
head = 0;
for (int i = 0; i < n; i++)
cin >> Q... | [
"literal.number.change",
"variable_declaration.array_dimensions.change",
"variable_declaration.value.change"
] | 109,499 | 109,500 | u215278532 | cpp |
p02264 | #include <algorithm>
#include <iostream>
#include <queue>
#include <string>
#include <utility>
using namespace std;
queue<pair<string, int>> tasks;
int main() {
cin.tie(0);
ios::ios_base::sync_with_stdio(false);
int taskam, q, time = 0;
cin >> taskam >> q;
for (int i = 0; i < taskam; ++i) {
string name... | #include <algorithm>
#include <iostream>
#include <queue>
#include <string>
#include <utility>
using namespace std;
queue<pair<string, int>> tasks;
int main() {
cin.tie(0);
ios::ios_base::sync_with_stdio(false);
int taskam, q, time = 0;
cin >> taskam >> q;
for (int i = 0; i < taskam; ++i) {
string name... | [
"assignment.add"
] | 109,503 | 109,504 | u192037914 | cpp |
p02264 | #include <algorithm>
#include <iostream>
#include <queue>
#include <string>
using namespace std;
int main() {
int n, q;
cin >> n >> q;
queue<pair<string, int>> que;
for (int i = 0; i < n; ++i) {
string s;
int t;
cin >> s >> t;
que.push(make_pair(s, t));
}
int sum = 0;
while (que.size()) {... | #include <algorithm>
#include <iostream>
#include <queue>
#include <string>
using namespace std;
int main() {
int n, q;
cin >> n >> q;
queue<pair<string, int>> que;
for (int i = 0; i < n; ++i) {
string s;
int t;
cin >> s >> t;
que.push(make_pair(s, t));
}
int sum = 0;
while (que.size()) {... | [
"assignment.value.change",
"identifier.replace.add",
"literal.replace.remove"
] | 109,505 | 109,506 | u520560663 | cpp |
p02264 | #include <iostream>
#include <queue>
#include <string>
using namespace std;
int main() {
int n, q; // n:number of process, q:quantum
int timer = 0;
queue<string> name;
queue<int> time;
cin >> n >> q;
for (int i = 0; i < n; ++i) {
string bufn;
int buft;
cin >> bufn >> buft;
name.push(bufn);
... | #include <iostream>
#include <queue>
#include <string>
using namespace std;
int main() {
int n, q; // n:number of process, q:quantum
int timer = 0;
queue<string> name;
queue<int> time;
cin >> n >> q;
for (int i = 0; i < n; ++i) {
string bufn;
int buft;
cin >> bufn >> buft;
name.push(bufn);
... | [
"identifier.replace.add",
"literal.replace.remove",
"control_flow.branch.if.condition.change",
"call.arguments.change",
"expression.operation.binary.change",
"assignment.value.change"
] | 109,507 | 109,508 | u891282449 | cpp |
p02264 | #include <iostream>
#include <queue>
#include <string>
using namespace std;
int main() {
int n, q; // n:number of process, q:quantum
int timer = 0;
queue<string> name;
queue<int> time;
cin >> n >> q;
for (int i = 0; i < n; ++i) {
string bufn;
int buft;
cin >> bufn >> buft;
name.push(bufn);
... | #include <iostream>
#include <queue>
#include <string>
using namespace std;
int main() {
int n, q; // n:number of process, q:quantum
int timer = 0;
queue<string> name;
queue<int> time;
cin >> n >> q;
for (int i = 0; i < n; ++i) {
string bufn;
int buft;
cin >> bufn >> buft;
name.push(bufn);
... | [
"identifier.replace.add",
"literal.replace.remove",
"call.arguments.change",
"expression.operation.binary.change",
"assignment.value.change"
] | 109,509 | 109,508 | u891282449 | cpp |
p02264 | #include <iostream>
#include <queue>
#include <string>
using namespace std;
int main() {
int n, q; // n:number of process, q:quantum
int timer = 0;
queue<string> name;
queue<int> time;
cin >> n >> q;
for (int i = 0; i < n; ++i) {
string bufn;
int buft;
cin >> bufn >> buft;
name.push(bufn);
... | #include <iostream>
#include <queue>
#include <string>
using namespace std;
int main() {
int n, q; // n:number of process, q:quantum
int timer = 0;
queue<string> name;
queue<int> time;
cin >> n >> q;
for (int i = 0; i < n; ++i) {
string bufn;
int buft;
cin >> bufn >> buft;
name.push(bufn);
... | [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change",
"identifier.replace.add",
"literal.replace.remove",
"call.arguments.change",
"expression.operation.binary.change",
"assignment.value.change"
] | 109,510 | 109,508 | u891282449 | cpp |
p02264 | #include <iostream>
#include <queue>
#include <string>
using namespace std;
int main() {
int n, q; // n:number of process, q:quantum
int timer = 0;
queue<string> name;
queue<int> time;
cin >> n >> q;
for (int i = 0; i < n; ++i) {
string bufn;
int buft;
cin >> bufn >> buft;
name.push(bufn);
... | #include <iostream>
#include <queue>
#include <string>
using namespace std;
int main() {
int n, q; // n:number of process, q:quantum
int timer = 0;
queue<string> name;
queue<int> time;
cin >> n >> q;
for (int i = 0; i < n; ++i) {
string bufn;
int buft;
cin >> bufn >> buft;
name.push(bufn);
... | [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 109,511 | 109,508 | u891282449 | cpp |
p02264 | #include <iostream>
#include <list>
#include <string>
using namespace std;
class Task {
public:
void input() { cin >> name >> time; }
string name;
int time;
};
int main() {
int n, q;
list<Task> tasks;
cin >> n >> q;
for (int i = 0; i < n; i++) {
auto task = Task();
task.input();
tasks.push_... | #include <iostream>
#include <list>
#include <string>
using namespace std;
class Task {
public:
void input() { cin >> name >> time; }
string name;
int time;
};
int main() {
int n, q;
list<Task> tasks;
cin >> n >> q;
for (int i = 0; i < n; i++) {
auto task = Task();
task.input();
tasks.push_... | [
"identifier.replace.add",
"literal.replace.remove",
"control_flow.branch.if.condition.change",
"assignment.value.change"
] | 109,531 | 109,532 | u755380694 | cpp |
p02264 | #include <iostream>
#include <queue>
#include <string>
using namespace std;
struct Process {
string name;
long t;
};
int main() {
queue<Process> qu;
long n, q;
cin >> n >> q;
for (long i = 0; i < n; i++) {
string name;
long t;
cin >> name >> t;
Process p;
p.name = name;
p.t = t;
... | #include <iostream>
#include <queue>
#include <string>
using namespace std;
struct Process {
string name;
long t;
};
int main() {
queue<Process> qu;
long n, q;
cin >> n >> q;
for (long i = 0; i < n; i++) {
string name;
long t;
cin >> name >> t;
Process p;
p.name = name;
p.t = t;
... | [
"identifier.replace.add",
"literal.replace.remove",
"control_flow.branch.if.condition.change",
"assignment.value.change"
] | 109,533 | 109,534 | u564420347 | cpp |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.