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 | //
// Created by yoshihito.hotta on 2018/06/17.
//
#include <iostream>
#include <stdio.h>
#include <stdlib.h> /* atoi */
//
// Created by yoshihito.hotta on 2018/06/17.
//
#include <iostream>
using namespace std;
char a[100];
int stack[100];
int top = 0;
int pop() {
top--;
return stack[top + 1];
}
void push(int... | //
// Created by yoshihito.hotta on 2018/06/17.
//
#include <iostream>
#include <stdio.h>
#include <stdlib.h> /* atoi */
//
// Created by yoshihito.hotta on 2018/06/17.
//
#include <iostream>
using namespace std;
char a[100];
int stack[100];
int top = 0;
int pop() {
top--;
return stack[top + 1];
}
void push(int... | [
"expression.operation.binary.remove"
] | 107,445 | 107,444 | u011563519 | cpp |
p02263 | #include <stdio.h>
#include <stdlib.h>
#include <string.h>
int top, S[1000];
void push(int x) { S[++top] = x; }
int pop() { return S[top--]; }
int main() {
int a, b;
top = 0;
char s[100];
while (scanf("%s", s) != EOF) { // Ctr + D
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() { return S[top--]; }
int main() {
int a, b;
top = 0;
char s[100];
while (scanf("%s", s) != EOF) { // Ctr + D
if (s[0] == '+') {
a = pop();
b = pop();
push(a + b);
... | [
"assignment.add"
] | 107,451 | 107,449 | u204247262 | cpp |
p02263 | #include <cstdlib>
#include <iostream>
#include <stack>
#include <string>
int main(int argc, char const *argv[]) {
std::stack<int> S;
int a, b, x;
std::string s;
while (std::cin >> s) {
if (s[0] == '+') {
a = S.top();
S.pop();
b = S.top();
S.pop();
S.push(a + b);
} else... | #include <cstdlib>
#include <iostream>
#include <stack>
#include <string>
int main(int argc, char const *argv[]) {
std::stack<int> S;
int a, b, x;
std::string s;
while (std::cin >> s) {
if (s[0] == '+') {
a = S.top();
S.pop();
b = S.top();
S.pop();
S.push(a + b);
} else... | [
"expression.operation.binary.remove"
] | 107,466 | 107,467 | u222399051 | cpp |
p02263 | #include <stdio.h>
#include <stdlib.h>
#include <string.h>
int top, S[10000];
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[10000];
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... | [
"assignment.add"
] | 107,468 | 107,469 | u742857353 | cpp |
p02263 | #include <stdio.h>
#include <stdlib.h>
#include <string.h>
void add(int num[], int *pa) {
*pa = (*pa) - 1;
num[(*pa) - 1] += num[*pa];
num[*pa] = 0;
}
void minus(int num[], int *pa) {
*pa = (*pa) - 1;
num[(*pa) - 1] -= num[*pa];
num[*pa] = 0;
}
void multiply(int num[], int *pa) {
*pa = (*pa) - 1;
num... | #include <stdio.h>
#include <stdlib.h>
#include <string.h>
void add(int num[], int *pa) {
*pa = (*pa) - 1;
num[(*pa) - 1] += num[*pa];
num[*pa] = 0;
}
void minus(int num[], int *pa) {
*pa = (*pa) - 1;
num[(*pa) - 1] -= num[*pa];
num[*pa] = 0;
}
void multiply(int num[], int *pa) {
*pa = (*pa) - 1;
num... | [
"expression.operation.unary.reference.add"
] | 107,473 | 107,474 | u053802181 | cpp |
p02263 | #include <bits/stdc++.h>
#define REP(i, n) for (int i = 0; i < n; i++)
#define REPB(i, n) for (int i = n; i >= 0; i--)
#define FOR(i, m, n) for (int i = m; i < n; i++)
#define FORB(i, m, n) for (int i = m; i >= m; i--)
#define ll long long
#define pb push_back
#define popb pop_back
using namespace std;
int top, S[100... | #include <bits/stdc++.h>
#define REP(i, n) for (int i = 0; i < n; i++)
#define REPB(i, n) for (int i = n; i >= 0; i--)
#define FOR(i, m, n) for (int i = m; i < n; i++)
#define FORB(i, m, n) for (int i = m; i >= m; i--)
#define ll long long
#define pb push_back
#define popb pop_back
using namespace std;
int top, S[100... | [
"assignment.variable.change",
"identifier.change",
"expression.operation.binary.change"
] | 107,475 | 107,476 | u061111033 | cpp |
p02263 | #include <cmath>
#include <cstdlib>
#include <iomanip>
#include <iostream>
#include <stack>
#include <string>
#include <vector>
using namespace std;
int main() {
stack<int> s;
int a, b;
string str;
while (cin >> str) {
if (str == "+") {
a = s.top();
s.pop();
b = s.top();
s.pop();
... |
#include <cmath>
#include <cstdlib>
#include <iomanip>
#include <iostream>
#include <stack>
#include <string>
#include <vector>
using namespace std;
int main() {
stack<int> s;
int a, b;
string str;
while (cin >> str) {
if (str == "+") {
a = s.top();
s.pop();
b = s.top();
s.pop();
... | [
"expression.operation.binary.remove"
] | 107,479 | 107,480 | u762888860 | cpp |
p02263 |
#include <cmath>
#include <cstdlib>
#include <iomanip>
#include <iostream>
#include <stack>
#include <string>
#include <vector>
using namespace std;
int main() {
stack<int> s;
int a, b;
string str;
while (cin >> str) {
if (str == "+") {
a = s.top();
s.pop();
b = s.top();
s.pop();
... |
#include <cmath>
#include <cstdlib>
#include <iomanip>
#include <iostream>
#include <stack>
#include <string>
#include <vector>
using namespace std;
int main() {
stack<int> s;
int a, b;
string str;
while (cin >> str) {
if (str == "+") {
a = s.top();
s.pop();
b = s.top();
s.pop();
... | [
"expression.operation.binary.remove"
] | 107,483 | 107,480 | u762888860 | cpp |
p02263 | #include <cstdio>
#include <cstdlib>
#include <cstring>
#include <iostream>
#include <stack>
#include <vector>
using namespace std;
int main() {
stack<int> a;
char b[100];
while (cin >> b) {
if (b[0] == '+') {
int x = a.top();
a.pop();
int y = a.top();
a.pop();
int z = x + y;
... | #include <cstdio>
#include <cstdlib>
#include <cstring>
#include <iostream>
#include <stack>
#include <vector>
using namespace std;
int main() {
stack<int> a;
char b[100];
while (cin >> b) {
if (b[0] == '+') {
int x = a.top();
a.pop();
int y = a.top();
a.pop();
int z = x + y;
... | [
"expression.operation.binary.remove"
] | 107,488 | 107,489 | u622238957 | cpp |
p02263 | #include <stdio.h>
#include <stdlib.h>
#include <string.h>
int top, S[1000];
void push(int x) {
// topを加算してからその位置へ代入
S[top++] = x;
}
int pop() {
top--;
// topが指していた要素を返す
return S[top + 1];
}
int main() {
int a, b;
top = 0;
char s[100];
while (scanf("%s", s) != EOF) {
if (s[0] == '+') {
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 s[100];
while (scanf("%s", s) != EOF) {
if (s[0] == '+') {
a = pop();
b = pop();
push(a + b);... | [
"assignment.add"
] | 107,490 | 107,491 | u618814736 | cpp |
p02263 | #include <algorithm>
#include <iostream>
#include <queue>
#include <stack>
#include <string>
#include <vector>
#define FOR(i, a, b) for (int i = a; i < b; i++)
#define REP(i, n) for (int i = 0; i < n; i++)
using namespace std;
int main() {
int a, b;
stack<int> st;
string s;
while (cin >> s) {
if (s == "+")... | #include <algorithm>
#include <iostream>
#include <queue>
#include <stack>
#include <string>
#include <vector>
#define FOR(i, a, b) for (int i = a; i < b; i++)
#define REP(i, n) for (int i = 0; i < n; i++)
using namespace std;
int main() {
int a, b;
stack<int> st;
string s;
while (cin >> s) {
if (s == "+")... | [
"expression.operation.binary.remove"
] | 107,492 | 107,493 | u408228031 | cpp |
p02263 | #include "bits/stdc++.h"
using namespace std;
void push(int A);
int pop(void);
int S[1000];
int Top = 0;
int main(void) {
char str[100];
int a, b;
Top = 0;
while (scanf("%s", str) != EOF) {
cin >> str;
if (str[0] == '+') {
a = pop();
b = pop();
push(a + b);
} else if (str[0] =... | #include "bits/stdc++.h"
using namespace std;
void push(int A);
int pop(void);
int S[1000];
int Top = 0;
int main(void) {
char str[100];
int a, b;
Top = 0;
while (scanf("%s", str) != EOF) {
if (str[0] == '+') {
a = pop();
b = pop();
push(a + b);
} else if (str[0] == '-') {
b... | [] | 107,494 | 107,495 | u816396590 | cpp |
p02263 | #include <cstdlib>
#include <iostream>
#include <stack>
#include <string>
using namespace std;
int main() {
string s;
stack<int> St;
int l, r;
while (cin >> s) {
switch (s[0]) {
case '+':
l = St.top();
St.pop();
r = St.top();
St.pop();
St.push(l + r);
break;
cas... | #include <cstdlib>
#include <iostream>
#include <stack>
#include <string>
using namespace std;
int main() {
string s;
stack<int> St;
int l, r;
while (cin >> s) {
switch (s[0]) {
case '+':
l = St.top();
St.pop();
r = St.top();
St.pop();
St.push(l + r);
break;
cas... | [
"expression.operation.binary.remove"
] | 107,496 | 107,497 | u423206630 | cpp |
p02263 | #include <climits>
#include <iostream>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
int top;
int 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 ... | #include <climits>
#include <iostream>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
using namespace std;
int top;
int 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... | [
"assignment.add"
] | 107,498 | 107,499 | u282759714 | 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)... | [
"expression.operation.binary.remove"
] | 107,501 | 107,502 | u334460795 | cpp |
p02263 | // Reverse Polish Notation
// http://judge.u-aizu.ac.jp/onlinejudge/description.jsp?id=ALDS1_3_A&lang=jp
// 所要時間 20分 {中央}×{中央}
// Stack
#include <cstdlib>
#include <iostream>
#include <stack>
#include <string>
using namespace std;
int main() {
string word;
stack<int> S;
while (cin >> word) {
if (word == "*... | // Reverse Polish Notation
// http://judge.u-aizu.ac.jp/onlinejudge/description.jsp?id=ALDS1_3_A&lang=jp
// 所要時間 20分 {中央}×{中央}
// Stack
#include <cstdlib>
#include <iostream>
#include <stack>
#include <string>
using namespace std;
int main() {
string word;
stack<int> S;
while (cin >> word) {
if (word == "*... | [
"assignment.value.change",
"assignment.change"
] | 107,503 | 107,504 | u496095283 | cpp |
p02263 | #include <cstdlib>
#include <iostream>
using namespace std;
int top, S[1000];
void push(int x);
int pop();
int main() {
int a, b;
top = 0;
char s[100];
int t = 0;
while (cin >> s) {
if (s[0] == '+') {
a = pop();
b = pop();
push(a + b);
} else if (s[0] == '-') {
a = pop();
... | #include <cstdlib>
#include <iostream>
using namespace std;
int top, S[1000];
void push(int x);
int pop();
int main() {
int a, b;
top = 0;
char s[100];
int t = 0;
while (cin >> s) {
if (s[0] == '+') {
a = pop();
b = pop();
push(a + b);
} else if (s[0] == '-') {
b = pop();
... | [
"assignment.add"
] | 107,506 | 107,507 | u822200871 | cpp |
p02263 | #include <bits/stdc++.h>
using namespace std;
template <class T> inline bool chmax(T &a, T b) {
if (a < b) {
a = b;
return 1;
}
return 0;
}
template <class T> inline bool chmin(T &a, T b) {
if (a > b) {
a = b;
return 1;
}
return 0;
}
typedef long long int ll;
#define EPS (1e-7)
#define INF ... | #include <bits/stdc++.h>
using namespace std;
template <class T> inline bool chmax(T &a, T b) {
if (a < b) {
a = b;
return 1;
}
return 0;
}
template <class T> inline bool chmin(T &a, T b) {
if (a > b) {
a = b;
return 1;
}
return 0;
}
typedef long long int ll;
#define EPS (1e-7)
#define INF ... | [
"expression.operation.binary.remove"
] | 107,508 | 107,509 | u497519802 | cpp |
p02263 | #include <bits/stdc++.h>
using namespace std;
template <class T> inline bool chmax(T &a, T b) {
if (a < b) {
a = b;
return 1;
}
return 0;
}
template <class T> inline bool chmin(T &a, T b) {
if (a > b) {
a = b;
return 1;
}
return 0;
}
typedef long long int ll;
#define EPS (1e-7)
#define INF ... | #include <bits/stdc++.h>
using namespace std;
template <class T> inline bool chmax(T &a, T b) {
if (a < b) {
a = b;
return 1;
}
return 0;
}
template <class T> inline bool chmin(T &a, T b) {
if (a > b) {
a = b;
return 1;
}
return 0;
}
typedef long long int ll;
#define EPS (1e-7)
#define INF ... | [
"control_flow.branch.else_if.replace.add",
"control_flow.branch.if.replace.remove",
"expression.operation.binary.remove"
] | 107,510 | 107,509 | u497519802 | 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] == '+') {
b = pop();
a = pop();
push(a + b)... | [
"assignment.variable.change",
"identifier.change",
"assignment.add"
] | 107,512 | 107,513 | u475246825 | 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,512 | 107,514 | u475246825 | cpp |
p02263 | #include <algorithm>
#include <iostream>
#include <stack>
#include <string>
#include <vector>
using namespace std;
int main() {
stack<int> st;
vector<string> vec;
string s;
while (cin >> s) {
vec.push_back(s);
}
for (int i = 0; i < (int)vec.size(); i++) {
if (vec[i] == "+") {
int a = st.t... | #include <algorithm>
#include <iostream>
#include <stack>
#include <string>
#include <vector>
using namespace std;
int main() {
stack<int> st;
vector<string> vec;
string s;
while (cin >> s) {
vec.push_back(s);
}
for (int i = 0; i < (int)vec.size(); i++) {
if (vec[i] == "+") {
int a = st.t... | [
"expression.operation.binary.remove"
] | 107,518 | 107,519 | u070649969 | cpp |
p02263 | #include <iostream>
#include <stack>
#include <string>
using namespace std;
int main() {
string str;
stack<int> S;
while (cin >> str) {
if (str[0] == '+') {
int a = S.top();
S.pop();
int b = S.top();
S.pop();
S.push(a + b);
} else if (str[0] == '-') {
int a = S.top()... | #include <iostream>
#include <stack>
#include <string>
using namespace std;
int main() {
string str;
stack<int> S;
while (cin >> str) {
if (str[0] == '+') {
int a = S.top();
S.pop();
int b = S.top();
S.pop();
S.push(a + b);
} else if (str[0] == '-') {
int b = S.top()... | [
"variable_declaration.name.change",
"identifier.change"
] | 107,520 | 107,521 | u539796523 | cpp |
p02263 | #include <iostream>
#include <sstream>
#include <stack>
#include <string>
using namespace std;
int main() {
string t;
int tmp, ans = 0, t1, t2;
stack<int> sta;
while (cin >> t) {
if (t[0] == '-' || t[0] == '+' || t[0] == '*') {
t2 = sta.top();
sta.pop();
t1 = sta.top();
sta.top();
... |
#include <iostream>
#include <sstream>
#include <stack>
#include <string>
using namespace std;
int main() {
string t;
int tmp, ans = 0, t1, t2;
stack<int> sta;
while (cin >> t) {
if (t[0] == '-' || t[0] == '+' || t[0] == '*') {
t2 = sta.top();
sta.pop();
t1 = sta.top();
sta.pop();... | [
"call.function.change"
] | 107,522 | 107,523 | u746860079 | cpp |
p02263 | #include <cstdlib>
#include <iostream>
#include <stack>
#include <string>
using namespace std;
int main() {
string word;
stack<int> S;
int a, b;
while (cin >> word) {
if (word == "+") {
a = S.top();
S.pop();
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;
int a, b;
while (cin >> word) {
if (word == "+") {
a = S.top();
S.pop();
b = S.top();
S.pop();
S.push(a + b);
} else if (word == "-") {
... | [
"expression.operation.binary.remove"
] | 107,524 | 107,525 | u145932954 | cpp |
p02263 | #include <cstdlib>
#include <iostream>
#include <queue>
#include <stack>
using namespace std;
int main() {
string word;
stack<int> s;
while (cin >> word) {
if (word == "+") {
int x = s.top();
s.pop();
int y = s.top();
s.pop();
int z = x + y;
s.push(z);
} else if (word =... | #include <cstdlib>
#include <iostream>
#include <queue>
#include <stack>
using namespace std;
int main() {
string word;
stack<int> s;
while (cin >> word) {
if (word == "+") {
int x = s.top();
s.pop();
int y = s.top();
s.pop();
int z = x + y;
s.push(z);
} else if (word =... | [
"expression.operation.binary.remove"
] | 107,528 | 107,529 | u200903667 | cpp |
p02263 | #include <cstdlib>
#include <iostream>
#include <stack>
#include <string>
using namespace std;
int main() {
string word;
stack<int> S;
while (cin >> word) {
int a, b;
if (word == "+") {
a = S.top();
S.pop();
b = S.top();
S.pop();
S.push(a + b);
}
if (word == "-") {
... | #include <cstdlib>
#include <iostream>
#include <stack>
#include <string>
using namespace std;
int main() {
string word;
stack<int> S;
while (cin >> word) {
int a, b;
if (word == "+") {
a = S.top();
S.pop();
b = S.top();
S.pop();
S.push(a + b);
// cout << "+" << a+b;
... | [
"control_flow.branch.else_if.replace.add",
"control_flow.branch.if.replace.remove",
"expression.operation.binary.remove"
] | 107,530 | 107,531 | u412625617 | cpp |
p02263 | #include <cstdio>
#include <cstdlib>
#include <iostream>
#include <stack>
#include <string>
using namespace std;
int main() {
stack<int> num;
string s;
int a, b;
while (cin >> s) {
if (s >= "0" && s <= "9")
num.push(atoi(s.c_str()));
else if (s == "+" || s == "-" || s == "*") {
a = num.top... | #include <cstdio>
#include <cstdlib>
#include <iostream>
#include <stack>
#include <string>
using namespace std;
int main() {
stack<int> num;
string s;
int a, b;
while (cin >> s) {
if (s >= "0")
num.push(atoi(s.c_str()));
else if (s == "+" || s == "-" || s == "*") {
a = num.top();
nu... | [
"expression.operation.binary.remove"
] | 107,532 | 107,533 | u981364540 | cpp |
p02263 | #include <cstdio>
#include <cstdlib>
#include <iostream>
#include <stack>
#include <string>
using namespace std;
int main() {
stack<int> num;
string s;
int a, b;
while (cin >> s) {
if (s >= "0" && s <= "100")
num.push(atoi(s.c_str()));
else if (s == "+" || s == "-" || s == "*") {
a = num.t... | #include <cstdio>
#include <cstdlib>
#include <iostream>
#include <stack>
#include <string>
using namespace std;
int main() {
stack<int> num;
string s;
int a, b;
while (cin >> s) {
if (s >= "0")
num.push(atoi(s.c_str()));
else if (s == "+" || s == "-" || s == "*") {
a = num.top();
nu... | [
"expression.operation.binary.remove"
] | 107,534 | 107,533 | u981364540 | cpp |
p02263 | #include <cstdio>
#include <cstdlib>
#include <iostream>
#include <stack>
#include <string>
using namespace std;
int main() {
stack<int> num;
string s;
int a, b;
while (cin >> s) {
if (s >= "0" && s <= "100000")
num.push(atoi(s.c_str()));
else if (s == "+" || s == "-" || s == "*") {
a = nu... | #include <cstdio>
#include <cstdlib>
#include <iostream>
#include <stack>
#include <string>
using namespace std;
int main() {
stack<int> num;
string s;
int a, b;
while (cin >> s) {
if (s >= "0")
num.push(atoi(s.c_str()));
else if (s == "+" || s == "-" || s == "*") {
a = num.top();
nu... | [
"expression.operation.binary.remove"
] | 107,535 | 107,533 | u981364540 | cpp |
p02263 | #include <cstdio>
#include <cstdlib>
#include <iostream>
#include <stack>
#include <string>
using namespace std;
int main() {
stack<int> num;
string s;
int a, b;
while (cin >> s) {
if (s >= "1")
num.push(atoi(s.c_str()));
else if (s == "+" || s == "-" || s == "*") {
a = num.top();
nu... | #include <cstdio>
#include <cstdlib>
#include <iostream>
#include <stack>
#include <string>
using namespace std;
int main() {
stack<int> num;
string s;
int a, b;
while (cin >> s) {
if (s >= "0")
num.push(atoi(s.c_str()));
else if (s == "+" || s == "-" || s == "*") {
a = num.top();
nu... | [
"literal.string.change",
"control_flow.branch.if.condition.change"
] | 107,537 | 107,533 | u981364540 | cpp |
p02263 | #include <cstdlib>
#include <iostream>
#include <stack>
#include <string>
using namespace std;
int main() {
string word;
stack<int> S;
int m, n;
while (cin >> word) { //??\??????????????????????????????
if (word == "+") {
m = S.top();
S.pop();
n = S.top();
S.pop();
S.push(m + n... | #include <cstdlib>
#include <iostream>
#include <stack>
#include <string>
using namespace std;
int main() {
string word;
stack<int> S;
int m, n;
while (cin >> word) { //??\??????????????????????????????
if (word == "+") {
m = S.top();
S.pop();
n = S.top();
S.pop();
S.push(m + n... | [
"expression.operation.binary.remove"
] | 107,546 | 107,547 | u272694314 | cpp |
p02263 | #include <algorithm>
#include <bitset>
#include <cctype>
#include <cmath>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <ctime>
#include <deque>
#include <functional>
#include <iomanip>
#include <iostream>
#include <list>
#include <map>
#include <numeric>
#include <set>
#include <sstream>
#include <s... | #include <algorithm>
#include <bitset>
#include <cctype>
#include <cmath>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <ctime>
#include <deque>
#include <functional>
#include <iomanip>
#include <iostream>
#include <list>
#include <map>
#include <numeric>
#include <set>
#include <sstream>
#include <s... | [
"variable_declaration.name.change",
"identifier.change"
] | 107,567 | 107,568 | u418027098 | cpp |
p02263 | #include <iostream>
#include <string>
using namespace std;
int top, Stack[1000];
void push(int x) {
top++;
Stack[top] = x;
}
int pop() {
top--;
return Stack[top + 1];
}
int main() {
int a, b;
top = 0;
string s;
while (cin >> s) {
if (s == "+") {
a = pop();
b = pop();
push(a +... | #include <iostream>
#include <string>
using namespace std;
int top, Stack[1000];
void push(int x) {
top++;
Stack[top] = x;
}
int pop() {
top--;
return Stack[top + 1];
}
int main() {
int a, b;
top = 0;
string s;
while (cin >> s) {
if (s == "+") {
a = pop();
b = pop();
push(a +... | [
"assignment.add"
] | 107,571 | 107,572 | u886418725 | cpp |
p02263 | #include <algorithm>
#include <cstdlib>
#include <iostream>
#include <stack>
#include <string>
#include <utility>
using namespace std;
int a, b;
int main() {
string word;
stack<int> S;
while (cin >> word) {
if (word == "+") {
int sum;
a = S.top();
S.pop();
b = S.top();
S.pop(... | #include <algorithm>
#include <cstdlib>
#include <iostream>
#include <stack>
#include <string>
#include <utility>
using namespace std;
int a, b;
int main() {
string word;
stack<int> S;
while (cin >> word) {
if (word == "+") {
int sum;
a = S.top();
S.pop();
b = S.top();
S.pop(... | [
"expression.operation.binary.remove",
"assignment.change"
] | 107,573 | 107,574 | u513271372 | cpp |
p02263 | #include <stdio.h>
#include <stdlib.h>
#include <string.h>
int top, S[1000];
void push(int x) { S[++top] = x; }
int pop(void) {
top--;
return S[top + 1];
}
int main() {
int a, b;
char ch[1000];
top = 0;
while (scanf("%s", ch) != EOF) {
if (ch[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(void) {
top--;
return S[top + 1];
}
int main() {
int a, b;
char ch[1000];
top = 0;
while (scanf("%s", ch) != EOF) {
if (ch[0] == '+') {
a = pop();
b = pop();
push(a +... | [
"assignment.add"
] | 107,576 | 107,577 | u253376705 | cpp |
p02263 | #include <iostream>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#define MAX 1001
struct _Stack {
int value;
};
_Stack S[MAX];
int top;
void push(int val) {
top++;
S[top].value = val;
}
int pop() {
top--;
return S[top++].value;
}
int main() {
// std::string tmp;
char tmp[10];
top =... | #include <iostream>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#define MAX 1001
struct _Stack {
int value;
};
_Stack S[MAX];
int top;
void push(int val) {
top++;
S[top].value = val;
}
int pop() {
top--;
return S[top + 1].value;
}
int main() {
// std::string tmp;
char tmp[10];
top... | [
"variable_access.subscript.index.change",
"function.return_value.change"
] | 107,580 | 107,581 | u888548672 | cpp |
p02263 | #include <cstdlib>
#include <iostream>
using namespace std;
int top, 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 (cin >> s) {
if (s[0] == '+') {
a = pop();
b = pop();
push(a + b);
... | #include <cstdlib>
#include <iostream>
using namespace std;
int top, 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 (cin >> s) {
if (s[0] == '+') {
a = pop();
b = pop();
push(a + b);
... | [
"expression.operation.binary.remove"
] | 107,582 | 107,583 | u554688210 | cpp |
p02263 | #define _CRT_SECURE_NO_WARNINGS
#include <algorithm>
#include <cmath>
#include <cstdio>
#include <cstring>
#include <deque>
#include <forward_list>
#include <functional>
#include <iostream>
#include <limits>
#include <list>
#include <map>
#include <numeric>
#include <set>
#include <sstream>
#include <string>
#include ... | #define _CRT_SECURE_NO_WARNINGS
#include <algorithm>
#include <cmath>
#include <cstdio>
#include <cstring>
#include <deque>
#include <forward_list>
#include <functional>
#include <iostream>
#include <limits>
#include <list>
#include <map>
#include <numeric>
#include <set>
#include <sstream>
#include <string>
#include ... | [
"call.arguments.change",
"call.arguments.add"
] | 107,584 | 107,585 | u647533294 | cpp |
p02263 | #include <cstdio>
#include <cstdlib>
#include <iostream>
#include <stack>
#include <string>
#define REP(i, n) for (int(i) = 0; i < (n); i++)
using namespace std;
int main() {
stack<int> is;
int a, b, x;
string s;
while (cin >> s) {
if (s[0] == '+') {
a = is.top();
is.pop();
b = is.top()... | #include <cstdio>
#include <cstdlib>
#include <iostream>
#include <stack>
#include <string>
#define REP(i, n) for (int(i) = 0; i < (n); i++)
using namespace std;
int main() {
stack<int> is;
int a, b, x;
string s;
while (cin >> s) {
if (s[0] == '+') {
a = is.top();
is.pop();
b = is.top()... | [
"expression.operation.binary.remove"
] | 107,587 | 107,588 | u110280195 | cpp |
p02263 | #include <iostream>
#include <stack>
#include <string>
using namespace std;
int main() {
stack<string> st;
string str;
while (cin >> str) {
if (str == "+") {
int a = stoi(st.top());
st.pop();
int b = stoi(st.top());
st.pop();
st.push(to_string(a + b));
} else if (str == "... | #include <iostream>
#include <stack>
#include <string>
using namespace std;
int main() {
stack<string> st;
string str;
while (cin >> str) {
if (str == "+") {
int a = stoi(st.top());
st.pop();
int b = stoi(st.top());
st.pop();
st.push(to_string(a + b));
} else if (str == "... | [
"expression.operation.binary.remove"
] | 107,591 | 107,592 | u878584486 | cpp |
p02263 | #include <iostream>
#include <stack>
#include <string>
int eval(std::stack<std::string> &stc) {
int a, b;
if (stc.top() == "+") {
stc.pop();
a = std::stoi(stc.top());
stc.pop();
b = std::stoi(stc.top());
stc.pop();
return a + b;
} else if (stc.top() == "-") {
stc.pop();
a = std::s... | #include <iostream>
#include <stack>
#include <string>
int eval(std::stack<std::string> &stc) {
int a, b;
if (stc.top() == "+") {
stc.pop();
a = std::stoi(stc.top());
stc.pop();
b = std::stoi(stc.top());
stc.pop();
return a + b;
} else if (stc.top() == "-") {
stc.pop();
a = std::s... | [
"expression.operation.binary.remove"
] | 107,593 | 107,594 | u790463499 | cpp |
p02263 | #include <stdio.h>
#include <stdlib.h>
#include <string.h>
int top, S[1000];
void push(int x) {
/* topを加算してからその位置へ挿入 */
S[++top] = x;
}
int pop() {
top--;
/* topが指していた要素を返す */
return S[top + 1];
}
int main() {
int a, b;
top = 0;
char s[100];
while (scanf("%s", s) != EOF) {
if (s[0] == '+') {
... | #include <stdio.h>
#include <stdlib.h>
#include <string.h>
int top, S[1000];
void push(int x) {
/* topを加算してからその位置へ挿入 */
S[++top] = x;
}
int pop() {
top--;
/* topが指していた要素を返す */
return S[top + 1];
}
int main() {
int a, b;
top = 0;
char s[100];
while (scanf("%s", s) != EOF) {
if (s[0] == '+') {
... | [
"expression.operator.arithmetic.change",
"call.arguments.change",
"expression.operation.binary.change"
] | 107,599 | 107,600 | u047796078 | cpp |
p02263 | #include <stdio.h>
#include <stdlib.h>
#include <string.h>
int top, 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();
pu... | #include <stdio.h>
#include <stdlib.h>
#include <string.h>
int top, 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();
pu... | [
"expression.operation.binary.remove"
] | 107,603 | 107,604 | u799509286 | cpp |
p02263 | #include <bits/stdc++.h>
#define SIZE 100005
using namespace std;
typedef long long ll;
typedef pair<int, int> P;
struct Stack {
ll table[1000];
ll top;
void init() { top = 0; }
bool empty() { return top == 0; }
void push(ll x) {
table[top] = x;
top++;
}
ll pop() {
if (empty())
return 0... | #include <bits/stdc++.h>
#define SIZE 100005
using namespace std;
typedef long long ll;
typedef pair<int, int> P;
struct Stack {
ll table[1000];
ll top;
void init() { top = 0; }
bool empty() { return top == 0; }
void push(ll x) {
table[top] = x;
top++;
}
ll pop() {
if (empty())
return 0... | [
"literal.string.change",
"expression.operator.arithmetic.change",
"control_flow.branch.if.condition.change"
] | 107,607 | 107,608 | u568216192 | cpp |
p02263 | #include <cstdlib>
#include <iomanip>
#include <iostream>
#include <math.h>
#include <stdio.h>
#include <stdlib.h>
#include <string>
#include <vector>
using namespace std;
int main() {
int st[150];
int si = 0;
string t;
int x, y;
while (cin >> t) {
if (t == "+") {
si--;
x = st[si];
... | #include <cstdlib>
#include <iomanip>
#include <iostream>
#include <math.h>
#include <stdio.h>
#include <stdlib.h>
#include <string>
#include <vector>
using namespace std;
int main() {
int st[150];
int si = 0;
string t;
int x, y;
while (cin >> t) {
if (t == "+") {
si--;
x = st[si];
... | [
"expression.operation.binary.remove",
"assignment.change"
] | 107,609 | 107,610 | u721602113 | cpp |
p02263 | #include <cstdlib>
#include <iostream>
#include <string>
using namespace std;
class Stack {
public:
int S[101];
int top;
Stack();
void push(int x);
int pop();
bool isEmpty();
bool isFull();
};
Stack::Stack() {
S[0] = 0;
top = 0;
return;
}
void Stack::push(int x) {
top++;
S[top] = x;
return... | #include <cstdlib>
#include <iostream>
#include <string>
using namespace std;
class Stack {
public:
int S[101];
int top;
Stack();
void push(int x);
int pop();
bool isEmpty();
bool isFull();
};
Stack::Stack() {
S[0] = 0;
top = 0;
return;
}
void Stack::push(int x) {
top++;
S[top] = x;
return... | [
"expression.operation.binary.change",
"assignment.change"
] | 107,611 | 107,612 | u643494333 | cpp |
p02263 | #include <cstdio>
#include <cstdlib>
#include <iostream>
#include <string.h>
using namespace std;
int top, 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 (cin >> s) {
if (s[0] == '+') {
a = pop();
... | #include <cstdio>
#include <cstdlib>
#include <iostream>
#include <string.h>
using namespace std;
int top, 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 (cin >> s) {
if (s[0] == '+') {
a = pop();
... | [
"assignment.add"
] | 107,613 | 107,614 | u594988858 | cpp |
p02263 | #include <cmath>
#include <cstdio>
#include <cstdlib>
#include <iostream>
#include <stack>
#include <string>
using namespace std;
int main() {
stack<int> s;
string x;
int a, b;
while (cin >> x) {
if (x[0] == '+') {
a = s.top();
s.pop();
b = s.top();
s.pop();
s.push(a + b);
... | #include <cmath>
#include <cstdio>
#include <cstdlib>
#include <iostream>
#include <stack>
#include <string>
using namespace std;
int main() {
stack<int> s;
string x;
int a, b;
while (cin >> x) {
if (x[0] == '+') {
a = s.top();
s.pop();
b = s.top();
s.pop();
s.push(a + b);
... | [] | 107,615 | 107,616 | u594988858 | cpp |
p02263 | #include <cstdlib>
#include <iostream>
#include <stack>
#include <string>
using namespace std;
stack<int> s;
/*
<stack>で使うもの
empty() → コンテナが空かどうかチェック
pop() → 要素を末尾から削除
push() → 要素を末尾に追加
top() → 末尾の要素を取得
size() → 要素数を取得
*/
int calc(string str) {
int x = s.top();
s.pop();
int y = s.top();
s.pop();
swi... | #include <cstdlib>
#include <iostream>
#include <stack>
#include <string>
using namespace std;
stack<int> s;
/*
<stack>で使うもの
empty() → コンテナが空かどうかチェック
pop() → 要素を末尾から削除
push() → 要素を末尾に追加
top() → 末尾の要素を取得
size() → 要素数を取得
*/
int calc(string str) {
int x = s.top();
s.pop();
int y = s.top();
s.pop();
swi... | [
"expression.operation.binary.remove"
] | 107,618 | 107,619 | u650071126 | 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);... | [
"expression.operation.binary.remove"
] | 107,623 | 107,624 | u032207327 | cpp |
p02263 | #include <iostream>
#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();
... | #include <iostream>
#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();
... | [
"expression.operation.binary.remove"
] | 107,628 | 107,629 | u230220367 | cpp |
p02263 | #include <cstdlib>
#include <iostream>
#include <stack>
#include <string>
using namespace std;
int main() {
stack<int> S;
int a, b;
string s;
while (cin >> s) {
if (s[0] == '+') {
a = S.top();
S.pop();
b = S.top();
S.pop();
S.push(a + b);
} else if (s[0] == '-') {
a... | #include <cstdlib>
#include <iostream>
#include <stack>
#include <string>
using namespace std;
int main() {
stack<int> S;
int a, b;
string s;
while (cin >> s) {
if (s[0] == '+') {
a = S.top();
S.pop();
b = S.top();
S.pop();
S.push(a + b);
} else if (s[0] == '-') {
a... | [
"expression.operation.binary.remove"
] | 107,632 | 107,633 | u178313254 | cpp |
p02263 | #include <bits/stdc++.h>
#define FOR(i, a, b) for (long long int i = (a); i <= (b); i++)
#define RFOR(i, a, b) for (long long int i = (a); i >= (b); i--)
#define MOD 1000000007
#define INF 1000000000 // 2000000000
#define LLINF 1000000000000000000 // 9000000000000000000
#define PI 3.14159265358979
using na... | #include <bits/stdc++.h>
#define FOR(i, a, b) for (long long int i = (a); i <= (b); i++)
#define RFOR(i, a, b) for (long long int i = (a); i >= (b); i--)
#define MOD 1000000007
#define INF 1000000000 // 2000000000
#define LLINF 1000000000000000000 // 9000000000000000000
#define PI 3.14159265358979
using na... | [
"expression.operator.arithmetic.change",
"call.arguments.change",
"expression.operation.binary.change"
] | 107,634 | 107,635 | u314954937 | cpp |
p02263 | #include <algorithm>
#include <array>
#include <cmath>
#include <complex>
#include <iostream>
#include <map>
#include <queue>
#include <set>
#include <stack>
#include <string>
#include <utility>
#include <vector>
int dx[4] = {-1, 0, 1, 0};
int dy[4] = {0, 1, 0, -1};
#define INF 99999999
typedef std::pair<int, int> pii;... | #include <algorithm>
#include <array>
#include <cmath>
#include <complex>
#include <iostream>
#include <map>
#include <queue>
#include <set>
#include <stack>
#include <string>
#include <utility>
#include <vector>
int dx[4] = {-1, 0, 1, 0};
int dy[4] = {0, 1, 0, -1};
#define INF 99999999
typedef std::pair<int, int> pii;... | [
"expression.operation.binary.remove",
"expression.operator.arithmetic.change",
"call.arguments.change",
"expression.operation.binary.change"
] | 107,638 | 107,639 | u384180745 | cpp |
p02263 | #include <algorithm>
#include <array>
#include <cmath>
#include <complex>
#include <iostream>
#include <map>
#include <queue>
#include <set>
#include <stack>
#include <string>
#include <utility>
#include <vector>
int dx[4] = {-1, 0, 1, 0};
int dy[4] = {0, 1, 0, -1};
#define INF 99999999
typedef std::pair<int, int> pii;... | #include <algorithm>
#include <array>
#include <cmath>
#include <complex>
#include <iostream>
#include <map>
#include <queue>
#include <set>
#include <stack>
#include <string>
#include <utility>
#include <vector>
int dx[4] = {-1, 0, 1, 0};
int dy[4] = {0, 1, 0, -1};
#define INF 99999999
typedef std::pair<int, int> pii;... | [
"expression.operation.binary.remove"
] | 107,640 | 107,639 | u384180745 | cpp |
p02263 | /*
* ALDS1_3_A.cpp
*
* Created on: Apr 25, 2018
* Author: 13743
*/
#include <cstdio>
#include <cstdlib>
#include <stack>
using namespace std;
int main() {
stack<int> st;
char s[100];
while (scanf("%s", s) != EOF) {
if (s[0] == '+') {
int a = st.top();
st.pop();
int b = st.top()... | /*
* ALDS1_3_A.cpp
*
* Created on: Apr 25, 2018
* Author: 13743
*/
#include <cstdio>
#include <cstdlib>
#include <stack>
using namespace std;
int main() {
stack<int> st;
char s[100];
while (scanf("%s", s) != EOF) {
if (s[0] == '+') {
int a = st.top();
st.pop();
int b = st.top()... | [
"expression.operation.binary.remove"
] | 107,641 | 107,642 | u115352705 | cpp |
p02263 | #include <algorithm>
#include <bitset>
#include <cmath>
#include <cstdio>
#include <functional>
#include <iomanip>
#include <iostream>
#include <list>
#include <map>
#include <queue>
#include <random>
#include <set>
#include <string>
#include <unordered_map>
#include <vector>
using namespace std;
//--------------------... | #include <algorithm>
#include <bitset>
#include <cmath>
#include <cstdio>
#include <functional>
#include <iomanip>
#include <iostream>
#include <list>
#include <map>
#include <queue>
#include <random>
#include <set>
#include <string>
#include <unordered_map>
#include <vector>
using namespace std;
//--------------------... | [
"assignment.change"
] | 107,649 | 107,650 | u602903519 | cpp |
p02263 | #include <cstdlib>
#include <iostream>
#include <stack>
#include <string>
using namespace std;
int main() {
stack<int> st;
string str;
int a, b;
while (getline(cin, str)) {
if (str == "+") {
a = st.top();
st.pop();
b = st.top();
st.pop();
st.push(a + b);
} else if (str ==... | #include <cstdlib>
#include <iostream>
#include <stack>
#include <string>
using namespace std;
int main() {
stack<int> st;
string str;
int a, b;
while (cin >> str) {
if (str == "+") {
a = st.top();
st.pop();
b = st.top();
st.pop();
st.push(a + b);
} else if (str == "-") {... | [
"call.remove",
"control_flow.loop.condition.change"
] | 107,653 | 107,654 | u952465998 | cpp |
p02263 | #include <cstdlib>
#include <iostream>
#include <stack>
#include <string>
using namespace std;
int main() {
stack<int> st;
string str;
int a, b;
while (getline(cin, str)) {
if (str == "+") {
a = st.top();
st.pop();
b = st.top();
st.pop();
st.push(a + b);
} else if (str ==... | #include <cstdlib>
#include <iostream>
#include <stack>
#include <string>
using namespace std;
int main() {
stack<int> st;
string str;
int a, b;
while (cin >> str) {
if (str == "+") {
a = st.top();
st.pop();
b = st.top();
st.pop();
st.push(a + b);
} else if (str == "-") {
... | [
"call.remove",
"control_flow.loop.condition.change"
] | 107,653 | 107,656 | u952465998 | cpp |
p02263 | #include <cstdlib>
#include <iostream>
#include <stack>
#include <string>
using namespace std;
int main() {
stack<int> st;
string str;
int a, b;
while (cin >> str) {
if (str == "+") {
a = st.top();
st.pop();
b = st.top();
st.pop();
st.push(a + b);
} else if (str == "-") {
... | #include <cstdlib>
#include <iostream>
#include <stack>
#include <string>
using namespace std;
int main() {
stack<int> st;
string str;
int a, b;
while (cin >> str) {
if (str == "+") {
a = st.top();
st.pop();
b = st.top();
st.pop();
st.push(a + b);
} else if (str == "-") {
... | [
"expression.operation.binary.remove"
] | 107,657 | 107,656 | u952465998 | cpp |
p02263 | #include <algorithm>
#include <iostream>
#include <string>
#include <vector>
#define rep(i, n) for (int(i) = 0; (i) < (n); (i)++)
#define rep1(i, n) for (int i = 1; i <= (int)(n); i++)
using namespace std;
typedef long long ll;
const int MAXN = 200;
int top = 0;
int S[MAXN];
void initialize() { top = 0; }
bool isE... | #include <algorithm>
#include <iostream>
#include <string>
#include <vector>
#define rep(i, n) for (int(i) = 0; (i) < (n); (i)++)
#define rep1(i, n) for (int i = 1; i <= (int)(n); i++)
using namespace std;
typedef long long ll;
const int MAXN = 200;
int top = 0;
int S[MAXN];
void initialize() { top = 0; }
bool isE... | [
"expression.operation.binary.remove"
] | 107,658 | 107,659 | u147896162 | cpp |
p02263 | #include <algorithm>
#include <cstdlib>
#include <iostream>
#include <math.h>
#include <stack>
#include <stdio.h>
#include <string>
using namespace std;
int main() {
string s;
stack<int> a;
while (cin >> s) {
if (s == "+" || s == "-" || s == "*") {
int b, c;
b = a.top();
a.pop();
c =... | #include <algorithm>
#include <cstdlib>
#include <iostream>
#include <math.h>
#include <stack>
#include <stdio.h>
#include <string>
using namespace std;
int main() {
string s;
stack<int> a;
while (cin >> s) {
if (s == "+" || s == "-" || s == "*") {
int b, c;
b = a.top();
a.pop();
c =... | [
"expression.operation.binary.remove"
] | 107,662 | 107,663 | u412537960 | cpp |
p02263 | #include <cstdlib>
#include <iostream>
#include <sstream>
#include <stack>
using namespace std;
int main() {
int a, b;
stack<int> st;
string s;
getline(cin, s);
stringstream ss;
ss << s;
while (ss >> s) { // 1 2 -
if (s == "+") {
a = st.top();
st.pop();
b = st.top();
st.pop();... | #include <cstdlib>
#include <iostream>
#include <sstream>
#include <stack>
using namespace std;
int main() {
int a, b;
stack<int> st;
string s;
getline(cin, s);
stringstream ss;
ss << s;
while (ss >> s) { // 1 2 -
if (s == "+") {
a = st.top();
st.pop();
b = st.top();
st.pop();... | [
"expression.operation.binary.change"
] | 107,664 | 107,665 | u511231264 | cpp |
p02263 | #include <algorithm>
#include <iostream>
#include <map>
#include <math.h>
#include <set>
#include <stack>
#include <string>
#include <vector>
#define _USE_MATH_DEFINES
using namespace std;
typedef long long ll;
double pi = 3.141592653589793;
ll mod = 1000000007;
int main() {
stack<int> st;
string word;
while (ci... | #include <algorithm>
#include <iostream>
#include <map>
#include <math.h>
#include <set>
#include <stack>
#include <string>
#include <vector>
#define _USE_MATH_DEFINES
using namespace std;
typedef long long ll;
double pi = 3.141592653589793;
ll mod = 1000000007;
int main() {
stack<int> st;
string word;
while (ci... | [
"expression.operation.binary.remove"
] | 107,666 | 107,667 | u678214067 | cpp |
p02263 | #include <iostream>
using namespace std;
class Stack {
public:
long long data[1000];
int tp;
Stack() { tp = 0; }
void push(long long x) {
tp++;
data[tp] = x;
}
long long pop() { return data[tp--]; }
};
int main() {
Stack stack;
string input;
long long a, b;
while (cin >> input) {
if ... | #include <iostream>
using namespace std;
class Stack {
public:
long long data[1000];
int tp;
Stack() { tp = 0; }
void push(long long x) {
tp++;
data[tp] = x;
}
long long pop() { return data[tp--]; }
};
int main() {
Stack stack;
string input;
long long a, b;
while (cin >> input) {
if ... | [
"assignment.variable.change",
"identifier.change",
"assignment.add"
] | 107,668 | 107,669 | u998279501 | cpp |
p02263 | #define pb push_back
#define vi vector<int>
#include <bits/stdc++.h>
using namespace std;
const int N = 300000;
int pro[300000], n;
string v1[N], v2[N], v3[N];
map<int, vector<char>> mp1, mp2, mp3;
int cv(string s) {
int val = 0, i = 0, sign = 1;
if (s[0] == '-')
sign = -1, i++;
for (; i < s.size(); i++) {
... | #define pb push_back
#define vi vector<int>
#include <bits/stdc++.h>
using namespace std;
const int N = 300000;
int pro[300000], n;
string v1[N], v2[N], v3[N];
map<int, vector<char>> mp1, mp2, mp3;
int cv(string s) {
int val = 0, i = 0, sign = 1;
if (s[0] == '-')
sign = -1, i++;
for (; i < s.size(); i++) {
... | [
"assignment.add"
] | 107,670 | 107,671 | u406414983 | cpp |
p02263 | #include <stdio.h>
#include <stdlib.h>
#include <string.h>
int top, 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, 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... | [
"assignment.add"
] | 107,672 | 107,673 | u578092577 | cpp |
p02263 | #include <iostream>
using namespace std;
int top = 0; // 最後の要素の位置
int S[1000]; // Stackのデータ
// topにxを追加する
void push(int x) {
// topを加算してからSのその位置へ挿入
top++;
S[top] = x;
}
// topから要素を取り出す
int pop() {
// topが指していた要素を返す
int res = S[top];
top--;
return res;
}
int main() {
// 読み込んだ1シンボル(オペランドや演算子)
char s... | #include <iostream>
using namespace std;
int top = 0; // 最後の要素の位置
int S[1000]; // Stackのデータ
// topにxを追加する
void push(int x) {
// topを加算してからSのその位置へ挿入
top++;
S[top] = x;
}
// topから要素を取り出す
int pop() {
// topが指していた要素を返す
int res = S[top];
top--;
return res;
}
int main() {
// 読み込んだ1シンボル(オペランドや演算子)
char s... | [
"assignment.add"
] | 107,675 | 107,676 | u622463058 | cpp |
p02263 | #include <iostream>
#include <sstream>
#include <string>
using namespace std;
class Stack {
private:
int sp;
int S[100];
public:
Stack() { sp = 0; }
bool isFull() const { return (sp == 100); }
bool isEmpty() const { return (sp == 0); }
void push(int d);
int top();
void pop();
};
void Stack::push(int ... | #include <iostream>
#include <sstream>
#include <string>
using namespace std;
class Stack {
private:
int sp;
int S[100];
public:
Stack() { sp = 0; }
bool isFull() const { return (sp == 100); }
bool isEmpty() const { return (sp == 0); }
void push(int d);
int top();
void pop();
};
void Stack::push(int ... | [
"identifier.replace.add",
"literal.replace.remove",
"call.arguments.change",
"expression.operation.binary.change"
] | 107,684 | 107,685 | u518803905 | cpp |
p02263 | #include <iostream>
#include <sstream>
#include <string>
using namespace std;
class Stack {
private:
int sp;
int S[100];
public:
Stack() { sp = 0; }
bool isFull() const { return (sp == 100); }
bool isEmpty() const { return (sp == 0); }
void push(int d);
int top();
void pop();
};
void Stack::push(int ... | #include <iostream>
#include <sstream>
#include <string>
using namespace std;
class Stack {
private:
int sp;
int S[100];
public:
Stack() { sp = 0; }
bool isFull() const { return (sp == 100); }
bool isEmpty() const { return (sp == 0); }
void push(int d);
int top();
void pop();
};
void Stack::push(int ... | [] | 107,687 | 107,685 | u518803905 | cpp |
p02263 | #include <iostream>
#include <stack>
#include <string>
using namespace std;
int main() {
stack<int> st;
int a, b;
string s;
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() {
stack<int> st;
int a, b;
string s;
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();
... | [
"expression.operation.binary.remove"
] | 107,688 | 107,689 | u843674796 | cpp |
p02263 | #include <stack>
#include <stdio.h>
#include <stdlib.h>
using namespace std;
int main() {
int a, b;
char s[100];
stack<int> S;
while (scanf("%s", s) != EOF) {
if (s[0] == '+') {
a = S.top();
S.pop();
b = S.top();
S.pop();
S.push(a + b);
} else if (s[0] == '-') {
b =... | #include <stack>
#include <stdio.h>
#include <stdlib.h>
using namespace std;
int main() {
int a, b;
char s[100];
stack<int> S;
while (scanf("%s", s) != EOF) {
if (s[0] == '+') {
a = S.top();
S.pop();
b = S.top();
S.pop();
S.push(a + b);
} else if (s[0] == '-') {
b =... | [
"misc.opposites",
"expression.operator.arithmetic.change",
"call.arguments.change",
"expression.operation.binary.change",
"literal.string.change",
"io.output.change",
"io.output.newline.add"
] | 107,694 | 107,695 | u815527706 | cpp |
p02263 | #define _CRT_SECURE_NO_WARNINGS
#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();... | #define _CRT_SECURE_NO_WARNINGS
#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();... | [
"assignment.add"
] | 107,697 | 107,698 | u420562930 | cpp |
p02263 | #include <cstdio>
#include <cstdlib>
#include <iostream>
using namespace std;
#define MAX 100
#define max 1000000
void initialize();
int isEmpty();
int isFull();
void push(int);
int pop();
int top;
int S[max];
int main() {
char c[max];
int sum = 0;
int a, b;
initialize();
while (cin >> c) {
if (c[0] ... | #include <cstdio>
#include <cstdlib>
#include <iostream>
using namespace std;
#define MAX 200
#define max 1000000
void initialize();
int isEmpty();
int isFull();
void push(int);
int pop();
int top;
int S[max];
int main() {
char c[max];
int sum = 0;
int a, b;
initialize();
while (cin >> c) {
if (c[0] ... | [
"preprocessor.define.value.change",
"literal.integer.change",
"expression.operation.binary.remove"
] | 107,699 | 107,700 | u668137368 | cpp |
p02263 | #include <algorithm>
#include <cmath>
#include <cstdio>
#include <cstring>
#include <iostream>
#include <stack>
using namespace std;
int main() {
int x[200] = {};
int i = 0;
char str[20] = {};
while (cin >> str) {
if (str[0] == '+') {
x[i - 1] += x[i];
i--;
}
if (str[0] == '-') {
... | #include <algorithm>
#include <cmath>
#include <cstdio>
#include <cstring>
#include <iostream>
#include <stack>
using namespace std;
int main() {
int x[200] = {};
int i = 0;
char str[20] = {};
while (cin >> str) {
if (str[0] == '+') {
x[i - 1] += x[i];
i--;
} else if (str[0] == '-') {
... | [
"control_flow.branch.else_if.replace.add",
"control_flow.branch.if.replace.remove",
"assignment.change",
"expression.operation.binary.remove"
] | 107,708 | 107,709 | u367386691 | cpp |
p02263 | #include <algorithm>
#include <cmath>
#include <cstdio>
#include <cstring>
#include <iostream>
#include <stack>
using namespace std;
int main() {
int x[200] = {};
int i = 0;
char str[20] = {};
while (cin >> str) {
if (str[0] == '+') {
x[i - 1] += x[i];
i--;
} else if (str[0] == '-') {
... | #include <algorithm>
#include <cmath>
#include <cstdio>
#include <cstring>
#include <iostream>
#include <stack>
using namespace std;
int main() {
int x[200] = {};
int i = 0;
char str[20] = {};
while (cin >> str) {
if (str[0] == '+') {
x[i - 1] += x[i];
i--;
} else if (str[0] == '-') {
... | [
"assignment.change",
"expression.operation.binary.remove"
] | 107,710 | 107,709 | u367386691 | cpp |
p02263 | #include <iostream>
#include <string>
using namespace std;
int S[3];
int top = 0;
void push(int x) {
top += 1;
S[top] = x;
}
int pop() {
top -= 1;
return S[top + 1];
}
int main() {
string c;
int a, b;
while (cin >> c) {
if (c == "+") {
a = pop();
b = pop();
push(a + b);
} els... | #include <iostream>
#include <string>
using namespace std;
int S[200];
int top = 0;
void push(int x) {
top += 1;
S[top] = x;
}
int pop() {
top -= 1;
return S[top + 1];
}
int main() {
string c;
int a, b;
while (cin >> c) {
if (c == "+") {
a = pop();
b = pop();
push(a + b);
} e... | [
"literal.number.change",
"variable_declaration.array_dimensions.change",
"assignment.add"
] | 107,711 | 107,712 | u492887225 | cpp |
p02263 | #include <iostream>
#include <string>
using namespace std;
int S[100];
int top = 0;
void push(int x) {
top += 1;
S[top] = x;
}
int pop() {
top -= 1;
return S[top + 1];
}
int main() {
string c;
int a, b;
while (cin >> c) {
if (c == "+") {
a = pop();
b = pop();
push(a + b);
} e... | #include <iostream>
#include <string>
using namespace std;
int S[200];
int top = 0;
void push(int x) {
top += 1;
S[top] = x;
}
int pop() {
top -= 1;
return S[top + 1];
}
int main() {
string c;
int a, b;
while (cin >> c) {
if (c == "+") {
a = pop();
b = pop();
push(a + b);
} e... | [
"literal.number.change",
"variable_declaration.array_dimensions.change",
"assignment.add"
] | 107,713 | 107,712 | u492887225 | cpp |
p02263 | #include <fstream>
#include <iostream>
#include <string>
using namespace std;
int S[200];
int top = 0;
void push(int x) { S[top++] = x; }
int pop() { return S[--top]; }
int main() {
string s;
char c;
int a, b;
// cin >> s;
// getline(cin, s);
// int i=0;
// cout << s << endl;
// for (char& c: s) {
... | #include <fstream>
#include <iostream>
#include <string>
using namespace std;
int S[200];
int top = 0;
void push(int x) { S[top++] = x; }
int pop() { return S[--top]; }
int main() {
string s;
char c;
int a, b;
// cin >> s;
// getline(cin, s);
// int i=0;
// cout << s << endl;
// for (char& c: s) {
... | [
"expression.operation.binary.remove"
] | 107,714 | 107,715 | u925247338 | cpp |
p02263 | #include <iostream>
#include <stdlib.h>
using namespace std;
const int Max = 300;
int Stack[Max];
int top = 0;
bool isFull() { return (top >= Max); }
bool isEmpty() { return top == 0; }
int push(int x) {
if (!isFull()) {
Stack[top++] = x;
}
}
int pop() {
if (!isEmpty())
return Stack[--top];
}
int main()... | #include <iostream>
#include <stdlib.h>
using namespace std;
const int Max = 300;
int Stack[Max];
int top = 0;
bool isFull() { return (top >= Max); }
bool isEmpty() { return top == 0; }
void push(int x) {
if (!isFull()) {
Stack[top++] = x;
}
}
int pop() {
if (!isEmpty())
return Stack[--top];
}
int main()... | [
"function.return_type.change",
"expression.operation.binary.remove"
] | 107,717 | 107,718 | u166697967 | cpp |
p02263 | #include <iostream>
#include <stdlib.h>
using namespace std;
const int Max = 300;
int Stack[Max];
int top = 0;
bool isFull() { return (top >= Max); }
bool isEmpty() { return top == 0; }
void push(int x) {
if (!isFull()) {
Stack[top++] = x;
}
}
int pop() {
if (!isEmpty())
return Stack[--top];
}
int main()... | #include <iostream>
#include <stdlib.h>
using namespace std;
const int Max = 300;
int Stack[Max];
int top = 0;
bool isFull() { return (top >= Max); }
bool isEmpty() { return top == 0; }
void push(int x) {
if (!isFull()) {
Stack[top++] = x;
}
}
int pop() {
if (!isEmpty())
return Stack[--top];
}
int main()... | [
"expression.operation.binary.remove"
] | 107,719 | 107,718 | u166697967 | cpp |
p02263 | #include <iostream>
#include <stack>
#include <string>
#include <typeinfo>
using namespace std;
int main(void) {
string num;
int a, b;
stack<int> st;
while (cin >> num) {
if (num == "+") {
a = st.top();
st.pop();
b = st.top();
st.pop();
st.push(a + b);
} else if (num == "-"... | #include <iostream>
#include <stack>
#include <string>
#include <typeinfo>
using namespace std;
int main(void) {
string num;
int a, b;
stack<int> st;
while (cin >> num) {
if (num == "+") {
a = st.top();
st.pop();
b = st.top();
st.pop();
st.push(a + b);
} else if (num == "-"... | [
"expression.operation.binary.remove"
] | 107,722 | 107,723 | u124401670 | cpp |
p02263 | #include <cstdio>
#include <cstdlib>
#include <stack>
using namespace std;
int main(void) {
stack<int> st;
char mozsu[10] = {0};
int hen = 0;
int aa = 0;
int bb = 0;
while (scanf("%s", mozsu) != EOF) {
switch (mozsu[0]) {
case '+':
aa = st.top();
st.pop();
bb = st.top();
st... | #include <cstdio>
#include <cstdlib>
#include <stack>
using namespace std;
int main(void) {
stack<int> st;
char mozsu[10] = {0};
int hen = 0;
int aa = 0;
int bb = 0;
while (scanf("%s", mozsu) != EOF) {
switch (mozsu[0]) {
case '+':
aa = st.top();
st.pop();
bb = st.top();
st... | [
"expression.operation.binary.remove",
"assignment.change",
"literal.string.change",
"call.arguments.change",
"io.output.change",
"io.output.newline.add"
] | 107,726 | 107,727 | u875428540 | cpp |
p02263 | #include <cstdio>
#include <cstdlib>
#include <stack>
using namespace std;
int main(void) {
stack<int> st;
char mozsu[10] = {0};
int hen = 0;
int aa = 0;
int bb = 0;
while (scanf("%s", mozsu) != EOF) {
switch (mozsu[0]) {
case '+':
aa = st.top();
st.pop();
bb = st.top();
st... | #include <cstdio>
#include <cstdlib>
#include <stack>
using namespace std;
int main(void) {
stack<int> st;
char mozsu[10] = {0};
int hen = 0;
int aa = 0;
int bb = 0;
while (scanf("%s", mozsu) != EOF) {
switch (mozsu[0]) {
case '+':
aa = st.top();
st.pop();
bb = st.top();
st... | [
"expression.operation.binary.remove",
"assignment.change"
] | 107,728 | 107,727 | u875428540 | cpp |
p02263 | #include <iostream>
#include <sstream>
#include <stack>
using namespace std;
int main() {
ios::sync_with_stdio(false);
string c;
stack<int> st;
while (cin >> c) {
if (c == "+") {
int i1 = st.top();
st.pop();
int i2 = st.top();
st.pop();
st.push(i1 + i2);
} else if (c == "... | #include <iostream>
#include <sstream>
#include <stack>
using namespace std;
int main() {
ios::sync_with_stdio(false);
string c;
stack<int> st;
while (cin >> c) {
if (c == "+") {
int i2 = st.top();
st.pop();
int i1 = st.top();
st.pop();
st.push(i1 + i2);
} else if (c == "... | [
"variable_declaration.name.change",
"identifier.change"
] | 107,731 | 107,732 | u923336331 | cpp |
p02263 | #include <cstdlib>
#include <iostream>
using namespace std;
int main() {
char buf[10];
int stack[200];
int counter = 0;
while (cin) {
cin >> buf;
switch (buf[0]) {
case '+':
counter--;
stack[counter] = stack[counter] + stack[counter + 1];
break;
case '-':
counter--;... | #include <cstdlib>
#include <iostream>
using namespace std;
int main() {
char buf[10];
int stack[200];
int counter = 0;
while (cin >> buf) {
switch (buf[0]) {
case '+':
counter--;
stack[counter] = stack[counter] + stack[counter + 1];
break;
case '-':
counter--;
sta... | [
"control_flow.loop.condition.change"
] | 107,735 | 107,736 | u333404033 | cpp |
p02263 | #include <cstdlib>
#include <iostream>
#include <stack>
#include <string>
using namespace std;
int main() {
stack<int> s;
int x, y, z;
string ret;
while (cin >> ret) {
if (ret == "+" || ret == "-" || ret == "*" || ret == "/") {
x = s.top();
s.pop();
y = s.top();
s.pop();
swit... | #include <cstdlib>
#include <iostream>
#include <stack>
#include <string>
using namespace std;
int main() {
stack<int> s;
int x, y, z;
string ret;
while (cin >> ret) {
if (ret == "+" || ret == "-" || ret == "*" || ret == "/") {
y = s.top();
s.pop();
x = s.top();
s.pop();
swit... | [
"assignment.variable.change",
"identifier.change"
] | 107,738 | 107,739 | u142816770 | cpp |
p02263 | #include <cstdio>
#include <cstdlib>
class stack {
int top;
int s[100];
public:
stack() : top(0), s() {}
void push(int x) { s[++top] = x; }
int pop() { return s[(top--) + 1]; }
};
int main() {
int a, b, x;
char s[100];
stack st;
while (scanf("%s", s) != EOF) {
if (s[0] == '+') {
a = st.po... | #include <cstdio>
#include <cstdlib>
class stack {
int top;
int s[100];
public:
stack() : top(0), s() {}
void push(int x) { s[++top] = x; }
int pop() { return s[top--]; }
};
int main() {
int a, b, x;
char s[100];
stack st;
while (scanf("%s", s) != EOF) {
if (s[0] == '+') {
a = st.pop();
... | [
"expression.operation.binary.remove"
] | 107,753 | 107,754 | u884445603 | cpp |
p02263 | #include <cstdio>
#include <cstdlib>
template <typename T> class stack {
T a[101];
unsigned n;
public:
stack() : a(), n(0) {}
T &top() { return a[n - 1]; }
T pop() { return a[n--]; }
void push(T in) { a[n++] = in; }
};
int main() {
stack<int> s;
char buf[100];
while (scanf("%s", buf) != EOF) {
... | #include <cstdio>
#include <cstdlib>
template <typename T> class stack {
T a[101];
unsigned n;
public:
stack() : a(), n(0) {}
T &top() { return a[n - 1]; }
T pop() { return a[--n]; }
void push(T in) { a[n++] = in; }
};
int main() {
stack<int> s;
char buf[100];
while (scanf("%s", buf) != EOF) {
... | [
"function.return_value.change"
] | 107,755 | 107,756 | u884445603 | cpp |
p02263 | #include <cstdio>
#include <cstdlib>
#include <cstring>
using namespace std;
int top, 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();
... | #include <cstdio>
#include <cstdlib>
#include <cstring>
using namespace std;
int top, 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();
... | [
"assignment.add"
] | 107,759 | 107,760 | u338932851 | cpp |
p02263 | #include <cstdio>
#include <cstdlib>
#include <cstring>
using namespace std;
int top, 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();
... | #include <cstdio>
#include <cstdlib>
#include <cstring>
using namespace std;
int top, 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();
... | [
"call.remove",
"control_flow.branch.if.replace.add",
"control_flow.branch.else_if.replace.remove",
"control_flow.branch.if.add",
"assignment.add",
"call.add"
] | 107,759 | 107,761 | u338932851 | 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 n = S.top();
S.pop();
n += S.top();
S.pop();
S.push(n);
} else if (word == "-") {
int s = ... | #include <cstdlib>
#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 += S.top();
S.pop();
S.push(n);
} else if (word == "-") {
int s = ... | [
"assignment.value.change",
"assignment.change"
] | 107,762 | 107,763 | u203009499 | 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 n = S.top();
S.pop();
n += S.top();
S.pop();
S.push(n);
} else if (word == "-") {
int s = ... | #include <cstdlib>
#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 += S.top();
S.pop();
S.push(n);
} else if (word == "-") {
int s = ... | [] | 107,764 | 107,763 | u203009499 | cpp |
p02263 | #include <iostream>
#include <stack>
#include <string>
using namespace std;
int main() {
stack<int> S;
string buf;
while (cin >> buf) {
if (buf == "+") {
int a = S.top();
S.pop();
int b = S.top();
S.pop();
S.push(a + b);
} else if (buf == "-") {
int a = S.top();
... | #include <iostream>
#include <stack>
#include <string>
using namespace std;
int main() {
stack<int> S;
string buf;
while (cin >> buf) {
if (buf == "+") {
int b = S.top();
S.pop();
int a = S.top();
S.pop();
S.push(a + b);
} else if (buf == "-") {
int b = S.top();
... | [
"variable_declaration.name.change",
"identifier.change"
] | 107,765 | 107,766 | u098622705 | cpp |
p02263 | #include <cstdio>
#include <cstdlib>
#include <cstring>
#include <iostream>
#include <stack>
#include <string>
using namespace std;
int main() {
string str;
stack<int> S;
int a, b;
while (cin >> str) {
if (str == "+") {
a = S.top();
S.pop();
b = S.top();
S.pop();
S.push(a + b)... | #include <cstdio>
#include <cstdlib>
#include <cstring>
#include <iostream>
#include <stack>
#include <string>
using namespace std;
int main() {
string str;
stack<int> S;
int a, b;
while (cin >> str) {
if (str == "+") {
a = S.top();
S.pop();
b = S.top();
S.pop();
S.push(a + b)... | [
"expression.operation.binary.remove",
"literal.string.change",
"expression.operator.arithmetic.change",
"control_flow.branch.if.condition.change"
] | 107,767 | 107,768 | u551438531 | cpp |
p02263 | #include <cstdio>
#include <cstdlib>
#include <cstring>
#include <iostream>
#include <stack>
#include <string>
using namespace std;
int main() {
string str;
stack<int> S;
int a, b;
while (cin >> str) {
if (str == "+") {
a = S.top();
S.pop();
b = S.top();
S.pop();
S.push(a + b)... | #include <cstdio>
#include <cstdlib>
#include <cstring>
#include <iostream>
#include <stack>
#include <string>
using namespace std;
int main() {
string str;
stack<int> S;
int a, b;
while (cin >> str) {
if (str == "+") {
a = S.top();
S.pop();
b = S.top();
S.pop();
S.push(a + b)... | [
"expression.operation.binary.remove"
] | 107,769 | 107,768 | u551438531 | cpp |
p02263 | #include <algorithm>
#include <cctype>
#include <iomanip>
#include <iostream>
#include <math.h>
#include <stack>
#include <string>
#include <unordered_map>
#include <utility>
#include <vector>
using namespace std;
#define _USE_MATH_DEFINES
int main() {
string c;
stack<int> s;
int a, b;
while (cin >> c) {
i... | #include <algorithm>
#include <cctype>
#include <iomanip>
#include <iostream>
#include <math.h>
#include <stack>
#include <string>
#include <unordered_map>
#include <utility>
#include <vector>
using namespace std;
#define _USE_MATH_DEFINES
int main() {
string c;
stack<int> s;
int a, b;
while (cin >> c) {
i... | [
"expression.operation.binary.remove"
] | 107,770 | 107,771 | u618042143 | cpp |
p02263 | #include <cstdlib>
#include <iostream>
#include <stack>
#include <string>
using namespace std;
int main() {
stack<int> data;
string str[1000];
int a;
int b1;
int b2;
int c = 0;
while (cin >> str[c]) {
if (str[c] != "+" && str[c] != "-" && str[c] != "*" && str[c] != "/") {
a = atoi(str[c].c_str... | #include <cstdlib>
#include <iostream>
#include <stack>
#include <string>
using namespace std;
int main() {
stack<int> data;
string str[1000];
int a;
int b1;
int b2;
int c = 0;
while (cin >> str[c]) {
if (str[c] != "+" && str[c] != "-" && str[c] != "*" && str[c] != "/") {
a = atoi(str[c].c_str... | [
"expression.operation.binary.remove"
] | 107,774 | 107,773 | u852311840 | cpp |
p02263 | #include <iostream>
#include <stack>
using namespace std;
int main() {
stack<int> iStack;
string s;
int a, b;
while (cin >> s) {
if (s == "+") {
a = iStack.top();
iStack.pop();
b = iStack.top();
iStack.pop();
iStack.push(a + b);
} else if (s == "*") {
a = iStack.to... | #include <iostream>
#include <stack>
using namespace std;
int main() {
stack<int> iStack;
string s;
int a, b;
while (cin >> s) {
if (s == "+") {
a = iStack.top();
iStack.pop();
b = iStack.top();
iStack.pop();
iStack.push(a + b);
} else if (s == "*") {
a = iStack.to... | [
"expression.operation.binary.remove"
] | 107,775 | 107,776 | u652295168 | cpp |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.