problem_id stringlengths 6 6 | language stringclasses 2
values | original_status stringclasses 3
values | original_src stringlengths 19 243k | changed_src stringlengths 19 243k | change stringclasses 3
values | i1 int64 0 8.44k | i2 int64 0 8.44k | j1 int64 0 8.44k | j2 int64 0 8.44k | error stringclasses 270
values | stderr stringlengths 0 226k |
|---|---|---|---|---|---|---|---|---|---|---|---|
p02381 | Python | Runtime Error | # -*- coding: utf-8 -*-
import math
while True:
n = int(input())
if n == 0:
break
s = list(map(float, input().split()))
mean = sum(s) / len(s)
for i in range(len(s)):
s[i] = (s[i] - sum) * (s[i] - sum)
variance = sum(s) / len(s)
stdev = math.sqrt(variance)
print(st... | # -*- coding: utf-8 -*-
import math
while True:
n = int(input())
if n == 0:
break
s = list(map(float, input().split()))
mean = sum(s) / len(s)
for i in range(len(s)):
s[i] = (s[i] - mean) * (s[i] - mean)
variance = sum(s) / len(s)
stdev = math.sqrt(variance)
print(... | replace | 14 | 15 | 14 | 15 | TypeError: unsupported operand type(s) for -: 'float' and 'builtin_function_or_method' | Traceback (most recent call last):
File "/home/alex/Documents/bug-detection/input/Project_CodeNet/data/p02381/Python/s289178962.py", line 15, in <module>
s[i] = (s[i] - sum) * (s[i] - sum)
TypeError: unsupported operand type(s) for -: 'float' and 'builtin_function_or_method'
|
p02381 | C++ | Runtime Error | #include <cmath>
#include <iomanip>
#include <iostream>
#include <string>
using namespace std;
int main() {
int q = 0;
while (1) {
double n;
double date[100];
double sum = 0;
double var = 0;
string haki;
cin >> n;
getline(cin, haki);
if (n == 0)
break;
for (int i = 0; i < ... | #include <cmath>
#include <iomanip>
#include <iostream>
#include <string>
using namespace std;
int main() {
int q = 0;
while (1) {
double n;
double date[1000];
double sum = 0;
double var = 0;
string haki;
cin >> n;
getline(cin, haki);
if (n == 0)
break;
for (int i = 0; i <... | replace | 10 | 11 | 10 | 11 | 0 | |
p02381 | C++ | Runtime Error | #include <iomanip>
#include <iostream>
#include <math.h>
using namespace std;
int main() {
int n;
double a[101], s, e;
do {
cin >> n;
if (n == 0)
break;
s = 0;
e = 0;
for (int i = 0; i < n; i++) {
cin >> a[i];
s += (a[i] / n);
}
for (int i = 0; i < n; i++) {
e +... | #include <iomanip>
#include <iostream>
#include <math.h>
using namespace std;
int main() {
int n;
double a[1001], s, e;
do {
cin >> n;
if (n == 0)
break;
s = 0;
e = 0;
for (int i = 0; i < n; i++) {
cin >> a[i];
s += (a[i] / n);
}
for (int i = 0; i < n; i++) {
e ... | replace | 6 | 7 | 6 | 7 | 0 | |
p02381 | C++ | Runtime Error | #include <bits/stdc++.h>
using namespace std;
int main() {
cout << fixed << setprecision(12);
int n;
int s[100];
double sum, ans;
while (1) {
cin >> n;
if (n == 0)
break;
sum = 0;
ans = 0;
for (int i = 0; i < n; i++) {
cin >> s[i];
sum += s[i];
}
sum /= n;
for... | #include <bits/stdc++.h>
using namespace std;
int main() {
cout << fixed << setprecision(12);
int n;
int s[1000];
double sum, ans;
while (1) {
cin >> n;
if (n == 0)
break;
sum = 0;
ans = 0;
for (int i = 0; i < n; i++) {
cin >> s[i];
sum += s[i];
}
sum /= n;
fo... | replace | 5 | 6 | 5 | 6 | 0 | |
p02381 | C++ | Runtime Error | #include <cmath>
#include <iostream>
#include <stdio.h>
using namespace std;
int main() {
double point, a, n, s[100], m; // a標準偏差 n学生の数
while (1) {
m = 0;
point = 0;
cin >> n;
if (n == 0)
break;
a = 0;
for (int i = 0; i < n; i++) {
cin >> s[i];
point += s[i];
}
m ... | #include <cmath>
#include <iostream>
#include <stdio.h>
using namespace std;
int main() {
double point, a, n, s[1000], m; // a標準偏差 n学生の数
while (1) {
m = 0;
point = 0;
cin >> n;
if (n == 0)
break;
a = 0;
for (int i = 0; i < n; i++) {
cin >> s[i];
point += s[i];
}
m... | replace | 5 | 6 | 5 | 6 | 0 | |
p02381 | C++ | Runtime Error | #include <cctype>
#include <cmath>
#include <cstdio>
#include <cstring>
#include <iostream>
#include <sstream>
using namespace std;
#define MPI 3.14159265358979323846
int main() {
while (true) {
int n, s[101], sum = 0;
double a = 0, m;
cin >> n;
if (n == 0)
break;
for (int i = 0; i < n; i++... | #include <cctype>
#include <cmath>
#include <cstdio>
#include <cstring>
#include <iostream>
#include <sstream>
using namespace std;
#define MPI 3.14159265358979323846
int main() {
while (true) {
int n, s[1001], sum = 0;
double a = 0, m;
cin >> n;
if (n == 0)
break;
for (int i = 0; i < n; i+... | replace | 11 | 12 | 11 | 12 | 0 | |
p02381 | C++ | Runtime Error | #include <cmath>
#include <cstdio>
#include <iostream>
using namespace std;
int main() {
int n, s[100];
while (1) {
double a = 0;
cin >> n;
if (n == 0)
break;
for (int i = 0; i < n; i++) {
cin >> s[i];
a += s[i];
}
double b = a / n;
double c = 0;
for (int i = 0; i <... | #include <cmath>
#include <cstdio>
#include <iostream>
using namespace std;
int main() {
int n, s[1001];
while (1) {
double a = 0;
cin >> n;
if (n == 0)
break;
for (int i = 0; i < n; i++) {
cin >> s[i];
a += s[i];
}
double b = a / n;
double c = 0;
for (int i = 0; i ... | replace | 5 | 6 | 5 | 6 | 0 | |
p02381 | C++ | Runtime Error | #include <cmath>
#include <cstdio>
#include <iostream>
using namespace std;
int main() {
int n;
double s[101], sum, dist, m;
while (1) {
cin >> n;
sum = 0.0;
dist = 0.0;
if (n == 0)
break;
for (int i = 0; i < n; i++) {
cin >> s[i];
sum += s[i];
}
m = sum / n;
... | #include <cmath>
#include <cstdio>
#include <iostream>
using namespace std;
int main() {
int n;
double s[1000], sum, dist, m;
while (1) {
cin >> n;
sum = 0.0;
dist = 0.0;
if (n == 0)
break;
for (int i = 0; i < n; i++) {
cin >> s[i];
sum += s[i];
}
m = sum / n;
... | replace | 7 | 8 | 7 | 8 | 0 | |
p02381 | C++ | Time Limit Exceeded | #include <cmath>
#include <iostream>
using namespace std;
int main() {
int time;
double m;
int s[100];
double apow;
while (true) {
cin >> time;
if (time == 0)
break;
apow = 0;
m = 0;
for (int i = 0; i < time; ++i) {
cin >> s[i];
m += s[i];
}
m /= (double)time;
... | #include <cmath>
#include <iostream>
using namespace std;
int main() {
int time;
double m;
int s[1000];
double apow;
while (true) {
cin >> time;
if (time == 0)
break;
apow = 0;
m = 0;
for (int i = 0; i < time; ++i) {
cin >> s[i];
m += s[i];
}
m /= (double)time;
... | replace | 6 | 7 | 6 | 7 | TLE | |
p02381 | C++ | Runtime Error | #include <iomanip>
#include <iostream>
#include <math.h>
#define PI 3.14159265
double standard_deviation(double *s, double m, double n) {
double sum_ = 0;
for (int i = 0; i < n; i++) {
sum_ += pow((s[i] - m), 2);
}
return sum_ / n;
}
int main() {
double n;
double s[100] = {0};
double m = 0;
whil... | #include <iomanip>
#include <iostream>
#include <math.h>
#define PI 3.14159265
double standard_deviation(double *s, double m, double n) {
double sum_ = 0;
for (int i = 0; i < n; i++) {
sum_ += pow((s[i] - m), 2);
}
return sum_ / n;
}
int main() {
double n;
double s[1000] = {0};
double m = 0;
whi... | replace | 16 | 17 | 16 | 17 | 0 | |
p02381 | C++ | Time Limit Exceeded | #include <iostream>
#include <math.h>
#define REP(i, a, b) for (i = a; i < b; i++)
#define rep(i, n) REP(i, 0, n)
using namespace std;
int main() {
int n, s[100], i;
double m, d;
cout.precision(8);
while (1) {
cin >> n;
if (n == 0)
break;
m = 0;
d = 0;
rep(i, n) {
cin >> s[i]... | #include <iostream>
#include <math.h>
#define REP(i, a, b) for (i = a; i < b; i++)
#define rep(i, n) REP(i, 0, n)
using namespace std;
int main() {
int n, s[1000], i;
double m, d;
cout.precision(8);
while (1) {
cin >> n;
if (n == 0)
break;
m = 0;
d = 0;
rep(i, n) {
cin >> s[i... | replace | 9 | 10 | 9 | 10 | TLE | |
p02381 | C++ | Time Limit Exceeded | #include <cctype>
#include <cmath>
#include <cstdio>
#include <cstring>
#include <iostream>
#include <string>
using namespace std;
int main() {
int n;
int S[100];
double sum = 0;
double std = 0;
double deviate = 0;
while (1) {
cin >> n;
if (n == 0)
break;
for (int i = 0; i < n; i++)
... | #include <cctype>
#include <cmath>
#include <cstdio>
#include <cstring>
#include <iostream>
#include <string>
using namespace std;
int main() {
int n;
int S[1000];
double sum = 0;
double std = 0;
double deviate = 0;
while (1) {
cin >> n;
if (n == 0)
break;
for (int i = 0; i < n; i++)
... | replace | 10 | 11 | 10 | 11 | TLE | |
p02381 | C++ | Runtime Error | // class point の練習(クラスの高度な実装)
#include <algorithm>
#include <cmath>
#include <cstdio>
#include <cstring>
#include <iomanip>
#include <iostream>
#include <vector>
typedef long long llong;
using namespace std;
int main() {
int n;
int score[150];
double mean, var;
while (1) {
scanf("%d", &n);
if (!n)
... | // class point の練習(クラスの高度な実装)
#include <algorithm>
#include <cmath>
#include <cstdio>
#include <cstring>
#include <iomanip>
#include <iostream>
#include <vector>
typedef long long llong;
using namespace std;
int main() {
int n;
int score[1100];
double mean, var;
while (1) {
scanf("%d", &n);
if (!n)
... | replace | 14 | 15 | 14 | 15 | 0 | |
p02381 | C++ | Runtime Error | #include <algorithm>
#include <bitset>
#include <cmath>
#include <functional>
#include <iostream>
#include <list>
#include <queue>
#include <stack>
#include <stdio.h>
#include <string.h>
#include <string>
#include <utility>
#include <vector>
#define FOR(i, a, b) for (int i = (a); i <= (b); i++)
#define RFOR(i, a, b) f... | #include <algorithm>
#include <bitset>
#include <cmath>
#include <functional>
#include <iostream>
#include <list>
#include <queue>
#include <stack>
#include <stdio.h>
#include <string.h>
#include <string>
#include <utility>
#include <vector>
#define FOR(i, a, b) for (int i = (a); i <= (b); i++)
#define RFOR(i, a, b) f... | replace | 26 | 27 | 26 | 27 | 0 | |
p02381 | C++ | Runtime Error | #include <algorithm>
#include <cmath>
#include <cstdlib>
#include <functional>
#include <iomanip>
#include <iostream>
#include <stdio.h>
#include <string.h>
#include <string>
#include <time.h>
#include <valarray>
#include <vector>
using namespace std;
int main(void) {
long double s[500], Hei, kari;
long int n;
... | #include <algorithm>
#include <cmath>
#include <cstdlib>
#include <functional>
#include <iomanip>
#include <iostream>
#include <stdio.h>
#include <string.h>
#include <string>
#include <time.h>
#include <valarray>
#include <vector>
using namespace std;
int main(void) {
long double s[1000], Hei, kari;
long int n;
... | replace | 16 | 17 | 16 | 17 | 0 | |
p02381 | C++ | Runtime Error | #include <algorithm>
#include <cctype>
#include <math.h>
#include <stdio.h>
#include <string.h>
#define PI 3.1415926
int main() {
int n, s[101];
double sum = 0;
double a2 = 0;
while (1) {
scanf("%d", &n);
if (n == 0) {
break;
}
for (int i = 1; i <= n; i++) {
scanf("%d", &s[i]);
... | #include <algorithm>
#include <cctype>
#include <math.h>
#include <stdio.h>
#include <string.h>
#define PI 3.1415926
int main() {
int n, s[2000];
double sum = 0;
double a2 = 0;
while (1) {
scanf("%d", &n);
if (n == 0) {
break;
}
for (int i = 1; i <= n; i++) {
scanf("%d", &s[i]);
... | replace | 9 | 10 | 9 | 10 | 0 | |
p02381 | C++ | Runtime Error | #include <cmath>
#include <cstdio>
#include <iostream>
using namespace std;
int main() {
// int n,vol,s[100];
double a, n, vol, s[100], avg;
while (true) {
cin >> n;
if (n == 0)
break;
vol = 0;
a = 0;
for (int i = 0; i < n; i++) {
cin >> s[i];
vol += s[i];
}
avg = v... | #include <cmath>
#include <cstdio>
#include <iostream>
using namespace std;
int main() {
// int n,vol,s[100];
double a, n, vol, s[1000], avg;
while (true) {
cin >> n;
if (n == 0)
break;
vol = 0;
a = 0;
for (int i = 0; i < n; i++) {
cin >> s[i];
vol += s[i];
}
avg = ... | replace | 7 | 8 | 7 | 8 | 0 | |
p02381 | C++ | Time Limit Exceeded | #include <cmath>
#include <cstdio>
#include <iostream>
using namespace std;
int main() {
while (1) {
int n;
cin >> n;
if (n == 0) {
break;
}
int s[101];
double total = 0;
for (int i = 0; i < n; i++) {
cin >> s[i];
total += s[i];
}
double m = total / n;
do... | #include <cmath>
#include <cstdio>
#include <iostream>
using namespace std;
int main() {
while (1) {
int n;
cin >> n;
if (n == 0) {
break;
}
int s[1000];
double total = 0;
for (int i = 0; i < n; i++) {
cin >> s[i];
total += s[i];
}
double m = total / n;
d... | replace | 14 | 15 | 14 | 15 | TLE | |
p02381 | C++ | Runtime Error | #include <cmath>
#include <cstdio>
#include <iostream>
using namespace std;
int main() {
int n;
const int max_n = 100;
double a[max_n];
while (cin >> n, n) {
double s = 0.0;
double sum = 0.0;
for (int i = 0; i < n; i++) {
cin >> a[i];
sum += a[i];
}
double m = sum / n;
for (... | #include <cmath>
#include <cstdio>
#include <iostream>
using namespace std;
int main() {
int n;
const int max_n = 1000;
double a[max_n];
while (cin >> n, n) {
double s = 0.0;
double sum = 0.0;
for (int i = 0; i < n; i++) {
cin >> a[i];
sum += a[i];
}
double m = sum / n;
for ... | replace | 7 | 8 | 7 | 8 | 0 | |
p02381 | C++ | Runtime Error | #include <cmath>
#include <cstdio>
#include <iostream>
using namespace std;
int main() {
while (1) {
long long n, sum = 0, s[101];
double sum2 = 0;
cin >> n;
if (n == 0)
break;
for (int i = 1; i <= n; i++) {
cin >> s[i];
sum += s[i];
}
double m = (double)sum / n;
... | #include <cmath>
#include <cstdio>
#include <iostream>
using namespace std;
int main() {
while (1) {
long long n, sum = 0, s[1001];
double sum2 = 0;
cin >> n;
if (n == 0)
break;
for (int i = 1; i <= n; i++) {
cin >> s[i];
sum += s[i];
}
double m = (double)sum / n;
... | replace | 7 | 8 | 7 | 8 | 0 | |
p02381 | C++ | Runtime Error | #include <iomanip>
#include <iostream>
#include <math.h>
using namespace std;
int main() {
double n, a[100], sum, sig;
while (1) {
sum = 0;
sig = 0;
cin >> n;
if (n == 0)
break;
for (int i = 0; i < n; i++) {
cin >> a[i];
sum += a[i];
}
for (int i = 0; i < n; i++) {
... | #include <iomanip>
#include <iostream>
#include <math.h>
using namespace std;
int main() {
double n, a[1000], sum, sig;
while (1) {
sum = 0;
sig = 0;
cin >> n;
if (n == 0)
break;
for (int i = 0; i < n; i++) {
cin >> a[i];
sum += a[i];
}
for (int i = 0; i < n; i++) {
... | replace | 7 | 8 | 7 | 8 | 0 | |
p02382 | C++ | Runtime Error | #include <cmath>
#include <iomanip>
#include <iostream>
#include <vector>
using namespace std;
int main() {
int n;
cin >> n;
vector<int> x(3, 0), y(3, 0);
for (int i = 0; i < n; ++i)
cin >> x[i];
for (int i = 0; i < n; ++i)
cin >> y[i];
// ???????????????????????¢(p = 1)
double md = 0.0;
d... | #include <cmath>
#include <iomanip>
#include <iostream>
#include <vector>
using namespace std;
int main() {
int n;
cin >> n;
vector<int> x(n, 0), y(n, 0);
for (int i = 0; i < n; ++i)
cin >> x[i];
for (int i = 0; i < n; ++i)
cin >> y[i];
// ???????????????????????¢(p = 1)
double md = 0.0;
d... | replace | 11 | 12 | 11 | 12 | 0 | |
p02382 | C++ | Time Limit Exceeded | #include <bits/stdc++.h>
using namespace std;
int n;
double x[100], y[100];
double distance(double p) {
double sum = 0;
for (int i = 0; i < n; i++) {
double w = abs(x[i] - y[i]);
sum += pow(w, p);
}
return pow(sum, 1.0 / p);
}
int main() {
cout << fixed << setprecision(12);
cin >> n;
for (int i... | #include <bits/stdc++.h>
using namespace std;
int n;
double x[100], y[100];
double distance(double p) {
double sum = 0;
for (int i = 0; i < n; i++) {
double w = abs(x[i] - y[i]);
sum += pow(w, p);
}
return pow(sum, 1.0 / p);
}
int main() {
cout << fixed << setprecision(12);
cin >> n;
for (int i... | replace | 28 | 29 | 28 | 29 | TLE | |
p02383 | C++ | Time Limit Exceeded | #include <iostream>
#include <string>
using namespace std;
enum eRoll { W, S, N, E };
class Dice {
private:
int _dice[6];
public:
void roll(eRoll er) {
int _diceinfo[6];
for (int i = 0; i < 6; ++i) {
_diceinfo[i] = _dice[i];
}
switch (er) {
case W:
_dice[0] = _diceinfo[2];
... | #include <iostream>
#include <string>
using namespace std;
enum eRoll { W, S, N, E };
class Dice {
private:
int _dice[6];
public:
void roll(eRoll er) {
int _diceinfo[6];
for (int i = 0; i < 6; ++i) {
_diceinfo[i] = _dice[i];
}
switch (er) {
case W:
_dice[0] = _diceinfo[2];
... | delete | 84 | 87 | 84 | 84 | TLE | |
p02383 | C++ | Runtime Error | #include <iostream>
#include <string>
#include <vector>
using namespace std;
struct Dice {
vector<int> faces;
Dice(vector<int> &f) : faces(f) {}
int top() { return faces.front(); }
void roll(char direction) {
int tmp;
switch (direction) {
case 'E': // 1,4,6,3 -> 4,6,3,1
tmp = faces[0];
... | #include <iostream>
#include <string>
#include <vector>
using namespace std;
struct Dice {
vector<int> faces;
Dice(vector<int> &f) : faces(f) {}
int top() { return faces.front(); }
void roll(char direction) {
int tmp;
switch (direction) {
case 'E': // 1,4,6,3 -> 4,6,3,1
tmp = faces[0];
... | replace | 63 | 64 | 63 | 64 | 0 | S->16
E->8
|
p02383 | C++ | Runtime Error | #include <cstdio>
#define LABEL_MAX 100
#define LABEL_MIN 0
#define ORDER_MAX 100
#define ORDER_MIN 0
class Dice {
public:
Dice();
int roll(int NSEW);
int GetLabel(void);
int PrintLabel(void);
private:
int top, south, east, north, west, bottom;
int label[6];
};
Dice::Dice() {
top = 0;
south = 1;
e... | #include <cstdio>
#define LABEL_MAX 100
#define LABEL_MIN 0
#define ORDER_MAX 100
#define ORDER_MIN 0
class Dice {
public:
Dice();
int roll(int NSEW);
int GetLabel(void);
int PrintLabel(void);
private:
int top, south, east, north, west, bottom;
int label[6];
};
Dice::Dice() {
top = 0;
south = 1;
e... | replace | 102 | 105 | 102 | 106 | 0 | |
p02384 | C++ | Runtime Error | #include <cstdio>
#include <iostream>
#include <string>
using namespace std;
#define rep2(x, from, to) for (int x = (from); (x) < (to); (x)++)
#define rep(x, to) rep2(x, 0, to)
int main() {
int a[6], head, down;
rep(i, 6) { cin >> a[i]; }
int s[6][6];
s[0][0] = -1, s[0][1] = 2, s[0][2] = 4, s[0][3] = 1, s[0][4]... | #include <cstdio>
#include <iostream>
#include <string>
using namespace std;
#define rep2(x, from, to) for (int x = (from); (x) < (to); (x)++)
#define rep(x, to) rep2(x, 0, to)
int main() {
int a[6], head, down;
rep(i, 6) { cin >> a[i]; }
int s[6][6];
s[0][0] = -1, s[0][1] = 2, s[0][2] = 4, s[0][3] = 1, s[0][4]... | replace | 23 | 24 | 23 | 31 | 0 | |
p02384 | C++ | Time Limit Exceeded | #include <array>
#include <iostream>
using namespace std;
class Dice {
private:
int temp;
public:
array<int, 7> d;
void set_eyes(int v1, int v2, int v3, int v4, int v5, int v6) {
d[1] = v1;
d[2] = v2;
d[3] = v3;
d[4] = v4;
d[5] = v5;
d[6] = v6;
}
void rotate(char direction) {
s... | #include <array>
#include <iostream>
using namespace std;
class Dice {
private:
int temp;
public:
array<int, 7> d;
void set_eyes(int v1, int v2, int v3, int v4, int v5, int v6) {
d[1] = v1;
d[2] = v2;
d[3] = v3;
d[4] = v4;
d[5] = v5;
d[6] = v6;
}
void rotate(char direction) {
s... | insert | 86 | 86 | 86 | 96 | TLE | |
p02384 | C++ | Time Limit Exceeded | #include <cstdio>
#include <iostream>
using namespace std;
struct dice {
int q1, q2, q3, q4, q5, q6;
};
void mN(dice &d) {
int tmp = d.q1;
d.q1 = d.q2;
d.q2 = d.q6;
d.q6 = d.q5;
d.q5 = tmp;
}
void mE(dice &d) {
int tmp = d.q1;
d.q1 = d.q4;
d.q4 = d.q6;
d.q6 = d.q3;
d.q3 = tmp;
}
void mW(dice &... | #include <cstdio>
#include <iostream>
using namespace std;
struct dice {
int q1, q2, q3, q4, q5, q6;
};
void mN(dice &d) {
int tmp = d.q1;
d.q1 = d.q2;
d.q2 = d.q6;
d.q6 = d.q5;
d.q5 = tmp;
}
void mE(dice &d) {
int tmp = d.q1;
d.q1 = d.q4;
d.q4 = d.q6;
d.q6 = d.q3;
d.q3 = tmp;
}
void mW(dice &... | replace | 60 | 61 | 60 | 61 | TLE | |
p02384 | C++ | Runtime Error | #include <algorithm>
#include <iostream>
#include <string>
using namespace std;
int dice(int a, int b) {
int count = 0;
string tpat[3];
tpat[0] = "12651";
tpat[1] = "23542";
tpat[2] = "13641";
int ret[3];
ret[0] = 3;
ret[1] = 1;
ret[2] = 5;
for (int i = 0; i < 3; i++) {
for (int j = 0; j < 4; ... | #include <algorithm>
#include <iostream>
#include <string>
using namespace std;
int dice(int a, int b) {
int count = 0;
string tpat[3];
tpat[0] = "12651";
tpat[1] = "23542";
tpat[2] = "13641";
int ret[3];
ret[0] = 3;
ret[1] = 1;
ret[2] = 5;
for (int i = 0; i < 3; i++) {
for (int j = 0; j < 4; ... | replace | 45 | 46 | 45 | 53 | 0 | |
p02385 | C++ | Time Limit Exceeded | #include <algorithm>
#include <cctype>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <iostream>
#include <map>
#include <queue>
#include <set>
#include <stack>
#include <utility>
#include <vector>
const int inf = 0x7fffffff;
typedef long long int ll;
using namespace std;
char s[100 + 10];
char ans[][... | #include <algorithm>
#include <cctype>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <iostream>
#include <map>
#include <queue>
#include <set>
#include <stack>
#include <utility>
#include <vector>
const int inf = 0x7fffffff;
typedef long long int ll;
using namespace std;
char s[100 + 10];
char ans[][... | insert | 106 | 106 | 106 | 107 | TLE | |
p02385 | C++ | Runtime Error | #include <iostream>
int memo[7][7] = {-1};
int x[3][5] = {{1, 2, 6, 5, 1}, {1, 3, 6, 4, 1}, {2, 3, 5, 4, 2}};
int sides[3][2] = {{4, 3}, {2, 5}, {6, 1}};
int main() {
int dice_a[7], dice_b[7];
int top, front, q;
char command;
for (int i = 1; i < 7; i++)
std::cin >> dice_a[i];
for (int i = 1; i < 7; i++... | #include <iostream>
int memo[101][101] = {-1};
int x[3][5] = {{1, 2, 6, 5, 1}, {1, 3, 6, 4, 1}, {2, 3, 5, 4, 2}};
int sides[3][2] = {{4, 3}, {2, 5}, {6, 1}};
int main() {
int dice_a[7], dice_b[7];
int top, front, q;
char command;
for (int i = 1; i < 7; i++)
std::cin >> dice_a[i];
for (int i = 1; i < 7;... | replace | 2 | 3 | 2 | 3 | 0 | |
p02385 | C++ | Time Limit Exceeded | #include <iostream>
using namespace std;
class dice {
public:
int _1, _2, _3, _4, _5, _6, sus;
void moveN() {
sus = _1;
_1 = _2;
_2 = _6;
_6 = _5;
_5 = sus;
}
void moveE() {
sus = _1;
_1 = _4;
_4 = _6;
_6 = _3;
_3 = sus;
}
void moveW() {
sus = _1;
_1 = _3... | #include <iostream>
using namespace std;
class dice {
public:
int _1, _2, _3, _4, _5, _6, sus;
void moveN() {
sus = _1;
_1 = _2;
_2 = _6;
_6 = _5;
_5 = sus;
}
void moveE() {
sus = _1;
_1 = _4;
_4 = _6;
_6 = _3;
_3 = sus;
}
void moveW() {
sus = _1;
_1 = _3... | replace | 66 | 67 | 66 | 67 | TLE | |
p02385 | C++ | Time Limit Exceeded | #include <cmath>
#include <cstdlib>
#include <iomanip>
#include <iostream>
#include <stdio.h>
#include <string.h>
#include <string>
using namespace std;
class Dice {
private:
int face[6];
public:
int getTop();
int getFace(int);
void setFace(int label, int value);
void turnOver(char dir);
void debugOut();... | #include <cmath>
#include <cstdlib>
#include <iomanip>
#include <iostream>
#include <stdio.h>
#include <string.h>
#include <string>
using namespace std;
class Dice {
private:
int face[6];
public:
int getTop();
int getFace(int);
void setFace(int label, int value);
void turnOver(char dir);
void debugOut();... | insert | 105 | 105 | 105 | 108 | TLE | |
p02385 | C++ | Runtime Error | #include <algorithm>
#include <bits/stdc++.h>
#include <vector>
using namespace std;
int main() {
int d1[7], d2[7];
scanf("%d %d %d %d %d %d", &d1[0], &d1[1], &d1[2], &d1[3], &d1[4], &d1[5]);
scanf("%d %d %d %d %d %d", &d2[0], &d2[1], &d2[2], &d2[3], &d2[4], &d2[5]);
for (int i = 0; i < 4; i++) {
int tmp1... | #include <algorithm>
#include <bits/stdc++.h>
#include <vector>
using namespace std;
int main() {
int d1[7], d2[7];
scanf("%d %d %d %d %d %d", &d1[0], &d1[1], &d1[2], &d1[3], &d1[4], &d1[5]);
scanf("%d %d %d %d %d %d", &d2[0], &d2[1], &d2[2], &d2[3], &d2[4], &d2[5]);
for (int i = 0; i < 4; i++) {
int tmp1... | replace | 37 | 38 | 37 | 38 | 1 | |
p02385 | C++ | Time Limit Exceeded | #include <iostream>
using namespace std;
int color[6];
class DICE {
public:
void set_num(int a[]) {
for (int i = 0; i < 6; i++) {
dicenum[i] = a[i];
}
}
void make_move(char c) {
int temp;
if (c == 'N') {
temp = dicenum[4];
dicenum[4] = dicenum[0];
dicenum[0] = dicenum[1]... | #include <iostream>
using namespace std;
int color[6];
class DICE {
public:
void set_num(int a[]) {
for (int i = 0; i < 6; i++) {
dicenum[i] = a[i];
}
}
void make_move(char c) {
int temp;
if (c == 'N') {
temp = dicenum[4];
dicenum[4] = dicenum[0];
dicenum[0] = dicenum[1]... | replace | 62 | 66 | 62 | 66 | TLE | |
p02386 | C++ | Time Limit Exceeded | #include <cstdlib>
#include <ctime>
#include <iostream>
#include <string>
using namespace std;
struct dice {
int u, n, e, s, w, d;
};
int main() {
srand((unsigned)time(NULL));
int n;
dice d[100];
int tmp;
int q, a, b;
int rn;
int cnt = 0;
cin >> n;
for (int i = 0; i < n; i++) {
cin >> d[i... | #include <cstdlib>
#include <ctime>
#include <iostream>
#include <string>
using namespace std;
struct dice {
int u, n, e, s, w, d;
};
int main() {
srand((unsigned)time(NULL));
int n;
dice d[100];
int tmp;
int q, a, b;
int rn;
int cnt = 0;
cin >> n;
for (int i = 0; i < n; i++) {
cin >> d[i... | replace | 28 | 66 | 28 | 67 | TLE | |
p02386 | C++ | Time Limit Exceeded | #include <cstdio>
#include <iostream>
#include <string>
using namespace std;
const int COUNT = 6;
class Dice {
public:
int num[6];
public:
Dice();
void play_dice(string);
void play(int, int, int, int);
void print_(int x) { printf("%d\n", num[x]); }
void to_top_and_front(int, int);
};
Dice::Dice() {
f... | #include <cstdio>
#include <iostream>
#include <string>
using namespace std;
const int COUNT = 6;
class Dice {
public:
int num[6];
public:
Dice();
void play_dice(string);
void play(int, int, int, int);
void print_(int x) { printf("%d\n", num[x]); }
void to_top_and_front(int, int);
};
Dice::Dice() {
f... | replace | 60 | 61 | 60 | 63 | TLE | |
p02386 | C++ | Runtime Error | #include <iostream>
#include <vector>
using namespace std;
class Dice {
public:
long r[6];
Dice(){};
void roll(long a, long b, long c, long d) {
swap(r[a], r[b]);
swap(r[b], r[c]);
swap(r[c], r[d]);
}
void spinW() { roll(0, 2, 5, 3); }
void spinN() { roll(0, 1, 5, 4); }
};
int main() {
int a... | #include <iostream>
#include <vector>
using namespace std;
class Dice {
public:
long r[6];
Dice(){};
void roll(long a, long b, long c, long d) {
swap(r[a], r[b]);
swap(r[b], r[c]);
swap(r[c], r[d]);
}
void spinW() { roll(0, 2, 5, 3); }
void spinN() { roll(0, 1, 5, 4); }
};
int main() {
int a... | replace | 26 | 28 | 26 | 28 | 0 | |
p02386 | C++ | Time Limit Exceeded | #include <iostream>
using namespace std;
class Cube {
public:
int f[6];
Cube() {}
void roll_z() { roll(1, 2, 4, 3); }
void roll_y() { roll(0, 2, 5, 3); }
void roll_x() { roll(0, 1, 5, 4); }
void roll(int i, int j, int k, int l) {
int t = f[i];
f[i] = f[j];
f[j] = f[k];
f[k] = f[l];
f[l]... | #include <iostream>
using namespace std;
class Cube {
public:
int f[6];
Cube() {}
void roll_z() { roll(1, 2, 4, 3); }
void roll_y() { roll(0, 2, 5, 3); }
void roll_x() { roll(0, 1, 5, 4); }
void roll(int i, int j, int k, int l) {
int t = f[i];
f[i] = f[j];
f[j] = f[k];
f[k] = f[l];
f[l]... | replace | 59 | 60 | 59 | 60 | TLE | |
p02386 | C++ | Time Limit Exceeded | #include <algorithm>
#include <cmath>
#include <cstdio>
#include <iostream>
#include <queue>
#include <string>
#include <vector>
void roll(std::vector<int> &v, char c) {
if (c == 'E') {
char tmp = v[0];
v[0] = v[3];
v[3] = v[5];
v[5] = v[2];
v[2] = tmp;
} else if (c == 'S') {
char tmp = v[0... | #include <algorithm>
#include <cmath>
#include <cstdio>
#include <iostream>
#include <queue>
#include <string>
#include <vector>
void roll(std::vector<int> &v, char c) {
if (c == 'E') {
char tmp = v[0];
v[0] = v[3];
v[3] = v[5];
v[5] = v[2];
v[2] = tmp;
} else if (c == 'S') {
char tmp = v[0... | insert | 37 | 37 | 37 | 44 | TLE | |
p02386 | C++ | Time Limit Exceeded | #include <algorithm>
#include <iostream>
#include <string>
#include <vector>
/*
NumnerOfDice?????????????????????????????§????????????????????????(No)????????????????????°??????(Yes)???????????????CheckConsistentDice_N
?????????????????????????????°???????????§?????????????????????CheckConsistentLabel
?????????????????... | #include <algorithm>
#include <iostream>
#include <string>
#include <vector>
/*
NumnerOfDice?????????????????????????????§????????????????????????(No)????????????????????°??????(Yes)???????????????CheckConsistentDice_N
?????????????????????????????°???????????§?????????????????????CheckConsistentLabel
?????????????????... | replace | 56 | 58 | 56 | 63 | TLE | |
p02386 | C++ | Runtime Error | #include <array>
#include <iostream>
#include <string>
#include <vector>
using namespace std;
constexpr int SURFACE_NUM = 6;
enum { TOP, FRONT, RIGHT, LEFT, BACK, BOTTOM };
class Dice {
private:
array<int, SURFACE_NUM> m_surface;
public:
// constructor
Dice(array<int, SURFACE_NUM> surface) : m_surface(surface... | #include <array>
#include <iostream>
#include <string>
#include <vector>
using namespace std;
constexpr int SURFACE_NUM = 6;
enum { TOP, FRONT, RIGHT, LEFT, BACK, BOTTOM };
class Dice {
private:
array<int, SURFACE_NUM> m_surface;
public:
// constructor
Dice(array<int, SURFACE_NUM> surface) : m_surface(surface... | replace | 95 | 96 | 95 | 96 | -6 | terminate called after throwing an instance of 'std::out_of_range'
what(): vector::_M_range_check: __n (which is 0) >= this->size() (which is 0)
|
p02388 | Python | Runtime Error | x = input()
print(x**3)
| x = input()
x = int(x)
print(x**3)
| insert | 1 | 1 | 1 | 2 | TypeError: unsupported operand type(s) for ** or pow(): 'str' and 'int' | Traceback (most recent call last):
File "/home/alex/Documents/bug-detection/input/Project_CodeNet/data/p02388/Python/s725747490.py", line 2, in <module>
print(x**3)
TypeError: unsupported operand type(s) for ** or pow(): 'str' and 'int'
|
p02388 | Python | Runtime Error | x = input()
print(x**3)
| x = int(input())
print(x**3)
| replace | 0 | 1 | 0 | 1 | TypeError: unsupported operand type(s) for ** or pow(): 'str' and 'int' | Traceback (most recent call last):
File "/home/alex/Documents/bug-detection/input/Project_CodeNet/data/p02388/Python/s709080194.py", line 2, in <module>
print(x**3)
TypeError: unsupported operand type(s) for ** or pow(): 'str' and 'int'
|
p02388 | Python | Runtime Error | n = input()
print(n * n * n)
| s = input()
n = int(s)
print(n**3)
| replace | 0 | 2 | 0 | 3 | TypeError: can't multiply sequence by non-int of type 'str' | Traceback (most recent call last):
File "/home/alex/Documents/bug-detection/input/Project_CodeNet/data/p02388/Python/s234463127.py", line 2, in <module>
print(n * n * n)
TypeError: can't multiply sequence by non-int of type 'str'
|
p02388 | Python | Runtime Error | x = input()
print(x**3)
| x = input()
x = int(x)
print(x**3)
| insert | 1 | 1 | 1 | 2 | TypeError: unsupported operand type(s) for ** or pow(): 'str' and 'int' | Traceback (most recent call last):
File "/home/alex/Documents/bug-detection/input/Project_CodeNet/data/p02388/Python/s056318749.py", line 3, in <module>
print(x**3)
TypeError: unsupported operand type(s) for ** or pow(): 'str' and 'int'
|
p02388 | Python | Runtime Error | num = input()
print(num**3)
| num_str = input()
num = int(num_str)
print(num**3)
| replace | 0 | 2 | 0 | 2 | TypeError: unsupported operand type(s) for ** or pow(): 'str' and 'int' | Traceback (most recent call last):
File "/home/alex/Documents/bug-detection/input/Project_CodeNet/data/p02388/Python/s367615831.py", line 3, in <module>
print(num ** 3)
TypeError: unsupported operand type(s) for ** or pow(): 'str' and 'int'
|
p02388 | Python | Runtime Error | print(input() ** 3)
| i = int(input())
print(i**3)
| replace | 0 | 1 | 0 | 2 | TypeError: unsupported operand type(s) for ** or pow(): 'str' and 'int' | Traceback (most recent call last):
File "/home/alex/Documents/bug-detection/input/Project_CodeNet/data/p02388/Python/s667447252.py", line 1, in <module>
print(input()**3)
TypeError: unsupported operand type(s) for ** or pow(): 'str' and 'int'
|
p02388 | Python | Runtime Error | input = input()
print(input**3)
| input = input()
print(int(input) ** 3)
| replace | 1 | 2 | 1 | 2 | TypeError: unsupported operand type(s) for ** or pow(): 'str' and 'int' | Traceback (most recent call last):
File "/home/alex/Documents/bug-detection/input/Project_CodeNet/data/p02388/Python/s516531505.py", line 2, in <module>
print(input**3)
TypeError: unsupported operand type(s) for ** or pow(): 'str' and 'int'
|
p02388 | Python | Runtime Error | print(input() ** 3)
| print(int(input()) ** 3)
| replace | 0 | 1 | 0 | 1 | TypeError: unsupported operand type(s) for ** or pow(): 'str' and 'int' | Traceback (most recent call last):
File "/home/alex/Documents/bug-detection/input/Project_CodeNet/data/p02388/Python/s557766359.py", line 1, in <module>
print(input()**3)
TypeError: unsupported operand type(s) for ** or pow(): 'str' and 'int'
|
p02388 | Python | Runtime Error | x = input()
print(x**3)
| x = int(input())
print(x**3)
| replace | 0 | 1 | 0 | 1 | TypeError: unsupported operand type(s) for ** or pow(): 'str' and 'int' | Traceback (most recent call last):
File "/home/alex/Documents/bug-detection/input/Project_CodeNet/data/p02388/Python/s482874964.py", line 3, in <module>
print(x**3)
TypeError: unsupported operand type(s) for ** or pow(): 'str' and 'int'
|
p02388 | Python | Runtime Error | print(input() ** 3)
| print(int(input()) ** 3)
| replace | 0 | 1 | 0 | 1 | TypeError: unsupported operand type(s) for ** or pow(): 'str' and 'int' | Traceback (most recent call last):
File "/home/alex/Documents/bug-detection/input/Project_CodeNet/data/p02388/Python/s627402686.py", line 1, in <module>
print(input() ** 3)
TypeError: unsupported operand type(s) for ** or pow(): 'str' and 'int'
|
p02388 | Python | Runtime Error | N = input()
print(N**3)
| N = int(input())
print(N**3)
| replace | 0 | 1 | 0 | 1 | TypeError: unsupported operand type(s) for ** or pow(): 'str' and 'int' | Traceback (most recent call last):
File "/home/alex/Documents/bug-detection/input/Project_CodeNet/data/p02388/Python/s645472377.py", line 2, in <module>
print(N**3)
TypeError: unsupported operand type(s) for ** or pow(): 'str' and 'int'
|
p02388 | Python | Runtime Error | x = input()
ans = x * x * x
print(ans)
| x = int(input())
ans = x * x * x
print(ans)
| replace | 0 | 1 | 0 | 1 | TypeError: can't multiply sequence by non-int of type 'str' | Traceback (most recent call last):
File "/home/alex/Documents/bug-detection/input/Project_CodeNet/data/p02388/Python/s517488440.py", line 3, in <module>
ans = x * x * x
TypeError: can't multiply sequence by non-int of type 'str'
|
p02388 | C++ | Runtime Error | #include <stdio.h>
int main(void) {
int x;
scanf("%d", x);
printf("%d \n", x * x * x);
return 0;
} | #include <stdio.h>
int main(void) {
int x, xxx;
scanf("%d", &x);
xxx = x * x * x;
printf("%d\n", xxx);
return 0;
} | replace | 3 | 6 | 3 | 7 | -11 | |
p02388 | C++ | Time Limit Exceeded | #include <iostream>
using namespace std;
int main() {
int x, sum;
do {
cin >> x;
} while (x < 1 || x > 10);
sum = x * x * x;
cout << sum << endl;
return 0;
}
| #include <iostream>
using namespace std;
int main() {
int x, sum;
cin >> x;
sum = x * x * x;
cout << sum << endl;
return 0;
}
| replace | 6 | 9 | 6 | 9 | TLE | |
p02388 | C++ | Runtime Error | #include <stdio.h>
int main(void) {
int x = 0;
scanf("%d", x);
printf("%d", x * x * x);
return 0;
} | #include <stdio.h>
int main(void) {
int x = 0;
scanf("%d", &x);
printf("%d\n", x * x * x);
return 0;
} | replace | 3 | 5 | 3 | 5 | -11 | |
p02388 | C++ | Runtime Error | #include <stdio.h>
int main() {
int a;
scanf("%d", a);
printf("%d\n", a * a * a);
return 0;
} | #include <stdio.h>
int main() {
int a;
scanf("%d", &a);
printf("%d\n", a * a * a);
return 0;
} | replace | 3 | 4 | 3 | 4 | -11 | |
p02388 | C++ | Time Limit Exceeded | #include <iostream>
using namespace std;
int Cubic(int x) { return (x * x * x); }
int main() {
int x;
cin >> x;
x = Cubic(x);
cout << x << endl;
while (1)
;
return 0;
} | #include <iostream>
using namespace std;
int Cubic(int x) { return (x * x * x); }
int main() {
int x;
cin >> x;
x = Cubic(x);
cout << x << endl;
// while(1);
return 0;
} | replace | 15 | 17 | 15 | 16 | TLE | |
p02388 | C++ | Runtime Error | #include <stdio.h>
int main() {
int x;
scanf("%d", x);
printf("%d\n", x * x * x);
} | #include <stdio.h>
int main() {
int x;
scanf("%d", &x);
printf("%d\n", x * x * x);
} | replace | 3 | 4 | 3 | 4 | -11 | |
p02388 | C++ | Runtime Error | #include <stdio.h>
int main(void) {
int a;
scanf("%d", &a);
int b = a * a * a;
return (b);
} | #include <stdio.h>
int main(void) {
int a;
scanf("%d", &a);
int b = a * a * a;
printf("%d\n", b);
return (0);
} | replace | 6 | 7 | 6 | 8 | 8 | |
p02388 | C++ | Runtime Error | #include <iostream>
int main() {
int x;
std::cin >> x;
std::cout << x * x * x << std::endl;
return x;
} | #include <iostream>
int main() {
int x;
std::cin >> x;
std::cout << x * x * x << std::endl;
} | delete | 6 | 7 | 6 | 6 | 2 | |
p02388 | Python | Runtime Error | x = input()
print(x**3)
| x = int(input())
print(x**3)
| replace | 0 | 1 | 0 | 1 | TypeError: unsupported operand type(s) for ** or pow(): 'str' and 'int' | Traceback (most recent call last):
File "/home/alex/Documents/bug-detection/input/Project_CodeNet/data/p02388/Python/s996581497.py", line 2, in <module>
print(x**3)
TypeError: unsupported operand type(s) for ** or pow(): 'str' and 'int'
|
p02388 | Python | Runtime Error | x = input(())
print(x**3)
| x = int(input())
print(x**3)
| replace | 0 | 1 | 0 | 1 | TypeError: unsupported operand type(s) for ** or pow(): 'str' and 'int' | Traceback (most recent call last):
File "/home/alex/Documents/bug-detection/input/Project_CodeNet/data/p02388/Python/s164445315.py", line 4, in <module>
print(x**3)
TypeError: unsupported operand type(s) for ** or pow(): 'str' and 'int'
|
p02388 | Python | Runtime Error | print(int(input) ** 3)
| print(int(input()) ** 3)
| replace | 0 | 1 | 0 | 1 | TypeError: int() argument must be a string, a bytes-like object or a real number, not 'builtin_function_or_method' | Traceback (most recent call last):
File "/home/alex/Documents/bug-detection/input/Project_CodeNet/data/p02388/Python/s322584303.py", line 1, in <module>
print(int(input)**3)
TypeError: int() argument must be a string, a bytes-like object or a real number, not 'builtin_function_or_method'
|
p02388 | Python | Runtime Error | import sys
args = sys.argv
num = int(args[1])
print(str(num**3))
| s = input()
num = int(s)
print(str(num**3))
| replace | 0 | 5 | 0 | 2 | IndexError: list index out of range | Traceback (most recent call last):
File "/home/alex/Documents/bug-detection/input/Project_CodeNet/data/p02388/Python/s550015206.py", line 5, in <module>
num = int(args[1])
IndexError: list index out of range
|
p02388 | Python | Runtime Error | print(input() ** 3)
| print(int(input()) ** 3)
| replace | 0 | 1 | 0 | 1 | TypeError: unsupported operand type(s) for ** or pow(): 'str' and 'int' | Traceback (most recent call last):
File "/home/alex/Documents/bug-detection/input/Project_CodeNet/data/p02388/Python/s376152712.py", line 1, in <module>
print(input() ** 3)
TypeError: unsupported operand type(s) for ** or pow(): 'str' and 'int'
|
p02388 | Python | Runtime Error | x = input()
print(x * x * x)
| x = int(input())
print(x * x * x)
| replace | 0 | 2 | 0 | 1 | TypeError: can't multiply sequence by non-int of type 'str' | Traceback (most recent call last):
File "/home/alex/Documents/bug-detection/input/Project_CodeNet/data/p02388/Python/s272745096.py", line 3, in <module>
print(x * x * x)
TypeError: can't multiply sequence by non-int of type 'str'
|
p02388 | Python | Runtime Error | x = input()
print(x**3)
| input_1 = int(input())
cal = (input_1) ** 3
print(cal)
| replace | 0 | 2 | 0 | 3 | TypeError: unsupported operand type(s) for ** or pow(): 'str' and 'int' | Traceback (most recent call last):
File "/home/alex/Documents/bug-detection/input/Project_CodeNet/data/p02388/Python/s257611309.py", line 2, in <module>
print(x**3)
TypeError: unsupported operand type(s) for ** or pow(): 'str' and 'int'
|
p02388 | Python | Runtime Error | x = input()
y = x**3
print(y)
| x = input()
print(x**3)
| replace | 1 | 3 | 1 | 2 | TypeError: unsupported operand type(s) for ** or pow(): 'str' and 'int' | Traceback (most recent call last):
File "/home/alex/Documents/bug-detection/input/Project_CodeNet/data/p02388/Python/s666518215.py", line 3, in <module>
y = x ** 3
TypeError: unsupported operand type(s) for ** or pow(): 'str' and 'int'
|
p02388 | Python | Runtime Error | print(input() ** 3)
| print(int(input()) ** 3)
| replace | 0 | 1 | 0 | 1 | TypeError: unsupported operand type(s) for ** or pow(): 'str' and 'int' | Traceback (most recent call last):
File "/home/alex/Documents/bug-detection/input/Project_CodeNet/data/p02388/Python/s844443016.py", line 1, in <module>
print(input()**3)
TypeError: unsupported operand type(s) for ** or pow(): 'str' and 'int'
|
p02388 | Python | Runtime Error | x = int(input())
print(**3)
| x = int(input())
print(x**3)
| replace | 1 | 2 | 1 | 2 | TypeError: print() argument after ** must be a mapping, not int | Traceback (most recent call last):
File "/home/alex/Documents/bug-detection/input/Project_CodeNet/data/p02388/Python/s451360688.py", line 2, in <module>
print(**3)
TypeError: print() argument after ** must be a mapping, not int
|
p02388 | Python | Runtime Error | print(int(input) ** 3)
| print(int(input()) ** 3)
| replace | 0 | 1 | 0 | 1 | TypeError: int() argument must be a string, a bytes-like object or a real number, not 'builtin_function_or_method' | Traceback (most recent call last):
File "/home/alex/Documents/bug-detection/input/Project_CodeNet/data/p02388/Python/s844330584.py", line 1, in <module>
print(int(input)**3)
TypeError: int() argument must be a string, a bytes-like object or a real number, not 'builtin_function_or_method'
|
p02388 | Python | Runtime Error | print(int(input) ** 3)
| print(int(input()) ** 3)
| replace | 0 | 1 | 0 | 1 | TypeError: int() argument must be a string, a bytes-like object or a real number, not 'builtin_function_or_method' | Traceback (most recent call last):
File "/home/alex/Documents/bug-detection/input/Project_CodeNet/data/p02388/Python/s120361537.py", line 1, in <module>
print(int(input)**3)
TypeError: int() argument must be a string, a bytes-like object or a real number, not 'builtin_function_or_method'
|
p02388 | Python | Runtime Error | s = input("")
ans = s * s * s
print(ans)
| user = input("")
num = int(user)
ans = num * num * num
print(ans)
| replace | 0 | 2 | 0 | 3 | TypeError: can't multiply sequence by non-int of type 'str' | Traceback (most recent call last):
File "/home/alex/Documents/bug-detection/input/Project_CodeNet/data/p02388/Python/s469089457.py", line 2, in <module>
ans = s * s * s
TypeError: can't multiply sequence by non-int of type 'str'
|
p02388 | C++ | Runtime Error | #include <stdio.h>
int main(void) {
int x;
scanf("%d", x);
printf("%d", x * 2);
return 0;
}
| #include <stdio.h>
int main(void) {
int x;
scanf("%d", &x);
x = x * x * x;
printf("%d\n", x);
return 0;
} | replace | 4 | 6 | 4 | 7 | -11 | |
p02388 | C++ | Runtime Error | #include <stdio.h>
int main(int argc, char *argv[]) {
int x = scanf("%d", argv[1]);
printf("%d\n", x * x * x);
return 0;
} | #include <stdio.h>
int main(int argc, char *argv[]) {
int x;
scanf("%d", &x);
printf("%d\n", x * x * x);
return 0;
} | replace | 2 | 3 | 2 | 4 | -11 | |
p02388 | C++ | Runtime Error | #include <iostream>
using namespace std;
int main() {
int x;
cin >> x;
return x * x * x;
} | #include <iostream>
using namespace std;
int main() {
int x;
cin >> x;
cout << x * x * x << endl;
return 0;
} | replace | 6 | 7 | 6 | 8 | 8 | |
p02388 | C++ | Runtime Error | #include <stdio.h>
int main() {
int a;
scanf("%d", a);
printf("%d", a * a * a);
}
| #include <stdio.h>
int main() {
int a, b;
scanf("%d", &a);
b = a * a * a;
printf("%d\n", b);
}
| replace | 2 | 5 | 2 | 6 | -11 | |
p02388 | C++ | Runtime Error | #include <stdio.h>
int main(void) {
int x;
scanf("%d", &x);
return x * x * x;
} | #include <stdio.h>
int main(void) {
int x;
scanf("%d", &x);
printf("%d\n", x * x * x);
} | replace | 5 | 6 | 5 | 6 | 8 | |
p02388 | C++ | Runtime Error | #include <stdio.h>
int main() {
int x;
scanf("%d", x);
x = x * x * x;
printf("%d\n", x);
} | #include <stdio.h>
int main() {
int x;
scanf("%d", &x);
x = x * x * x;
printf("%d\n", x);
} | replace | 6 | 7 | 6 | 7 | -11 | |
p02388 | C++ | Runtime Error | #include <iostream>
using namespace std;
int main(int x) { return x * x * x; } | #include <iostream>
using namespace std;
int main() {
int x;
cin >> x;
cout << x * x * x << endl;
} | replace | 3 | 4 | 3 | 8 | 1 | |
p02388 | C++ | Runtime Error | #include <stdio.h>
int main(void) {
int x;
scanf("%d", x);
printf("%d", x * x * x);
return 0;
}
| #include <stdio.h>
int main(void) {
int x;
scanf("%d", &x);
printf("%d\n", x * x * x);
return 0;
}
| replace | 5 | 7 | 5 | 7 | -11 | |
p02388 | C++ | Runtime Error | #include <stdio.h>
int main(void) {
int x = 0;
scanf("%d\n", x);
printf("x", x * x * x);
return 0;
}
| #include <stdio.h>
int main(void) {
int a;
scanf("%d\n", &a);
printf("%d\n", a * a * a);
return 0;
}
| replace | 3 | 6 | 3 | 6 | -11 | |
p02388 | Python | Runtime Error | number = input(int())
print(number**3)
| number = int(input())
print(number**3)
| replace | 0 | 1 | 0 | 1 | TypeError: unsupported operand type(s) for ** or pow(): 'str' and 'int' | Traceback (most recent call last):
File "/home/alex/Documents/bug-detection/input/Project_CodeNet/data/p02388/Python/s272552751.py", line 2, in <module>
print(number**3)
TypeError: unsupported operand type(s) for ** or pow(): 'str' and 'int'
|
p02388 | Python | Runtime Error | print(int(input() ** 3))
| print(int(input()) ** 3)
| replace | 0 | 1 | 0 | 1 | TypeError: unsupported operand type(s) for ** or pow(): 'str' and 'int' | Traceback (most recent call last):
File "/home/alex/Documents/bug-detection/input/Project_CodeNet/data/p02388/Python/s690364339.py", line 1, in <module>
print(int(input()**3))
TypeError: unsupported operand type(s) for ** or pow(): 'str' and 'int'
|
p02388 | C++ | Runtime Error | #include <stdio.h>
int main() {
int x;
scanf("%d", x);
printf("%d", x * x * x);
return 0;
} | #include <stdio.h>
int main() {
int x;
scanf("%d", &x);
x = x * x * x;
printf("%d\n", x);
return 0;
} | replace | 4 | 6 | 4 | 9 | -11 | |
p02388 | C++ | Runtime Error | #include <iostream>
#define OK 1;
using namespace std;
int main(void) {
int x;
// scanf
cin >> x;
// printf
cout << x * x * x << endl;
return OK;
} | #include <iostream>
#define OK 0;
using namespace std;
int main(void) {
int x;
// scanf
cin >> x;
// printf
cout << x * x * x << endl;
return OK;
} | replace | 2 | 3 | 2 | 3 | 1 | |
p02388 | C++ | Time Limit Exceeded | #include <iostream>
using namespace std;
int main(void) {
int x = 5;
int sum = 1;
do {
cin >> x;
} while (1 <= x && x <= 1000);
for (int i = 0; i <= 2; i++) {
sum *= x;
}
cout << sum << endl;
return 0;
} | #include <iostream>
using namespace std;
int main(void) {
int x = 5;
int sum = 1;
cin >> x;
for (int i = 0; i <= 2; i++) {
sum *= x;
}
cout << sum << endl;
return 0;
} | replace | 7 | 10 | 7 | 8 | TLE | |
p02388 | C++ | Runtime Error | #include <stdio.h>
int main() {
int x, ans;
scanf("%d", x);
ans = x * x * x;
printf("%d\n", ans);
return 0;
} | #include <stdio.h>
int main() {
int x, ans;
scanf("%d", &x);
ans = x * x * x;
printf("%d\n", ans);
return 0;
} | replace | 4 | 5 | 4 | 5 | -11 | |
p02388 | C++ | Time Limit Exceeded | #include <iostream>
using namespace std;
int main() {
int x;
do {
cin >> x;
} while (x >= 1 && x <= 100);
cout << (x * x * x) << endl;
return 0;
} | #include <iostream>
using namespace std;
int main() {
int x;
cin >> x;
cout << x * x * x << endl;
} | replace | 5 | 10 | 5 | 7 | TLE | |
p02388 | C++ | Runtime Error | #include <stdio.h>
int main() {
int x, ans = 0;
scanf("%d", x);
ans = x * x * x;
printf("%d\n", ans);
return 0;
} | #include <stdio.h>
int main() {
int x, ans = 0;
scanf("%d", &x);
ans = x * x * x;
printf("%d\n", ans);
return 0;
} | replace | 3 | 4 | 3 | 4 | -11 | |
p02388 | C++ | Runtime Error | #include <stdio.h>
int main() {
int x = 0;
scanf("%d", x);
printf("%d\n", x * x * x);
return 0;
}
| #include <stdio.h>
int main() {
int x = 0;
scanf("%d", &x);
printf("%d\n", x * x * x);
return 0;
}
| replace | 4 | 5 | 4 | 5 | -11 | |
p02388 | C++ | Runtime Error | #include <stdio.h>
int main() {
int x = 0;
scanf("%d", x);
printf("%d\n", &x);
return 0;
} | #include <stdio.h>
int main() {
int x = 0;
scanf("%d", &x);
printf("%d\n", x * x * x);
return 0;
} | replace | 3 | 5 | 3 | 5 | -11 | |
p02388 | C++ | Runtime Error | #include <stdio.h>
using namespace std;
int main() {
int w = 0;
scanf("%d", &w);
printf("%d\n", w * w * w);
return 8;
} | #include <stdio.h>
using namespace std;
int main() {
int w = 0;
scanf("%d", &w);
printf("%d\n", w * w * w);
return 0;
} | replace | 6 | 7 | 6 | 7 | 8 | |
p02388 | C++ | Runtime Error | #include <iostream>
#include <string>
int main(int argc, char const *argv[]) {
std::string str;
int i, answer;
str += argv[1];
i = std::stoi(str);
answer = i * i * i;
std::cout << answer << std::endl;
return 0;
} | #include <iostream>
using namespace std;
int main() {
int x;
cin >> x;
cout << x * x * x << endl;
} | replace | 1 | 10 | 1 | 7 | -11 | |
p02388 | Python | Runtime Error | x = input()
print(x**3)
| x = int(input())
print(x**3)
| replace | 0 | 1 | 0 | 1 | TypeError: unsupported operand type(s) for ** or pow(): 'str' and 'int' | Traceback (most recent call last):
File "/home/alex/Documents/bug-detection/input/Project_CodeNet/data/p02388/Python/s314503322.py", line 2, in <module>
print(x**3)
TypeError: unsupported operand type(s) for ** or pow(): 'str' and 'int'
|
p02388 | C++ | Runtime Error | #include <iostream>
#include <math.h>
#include <stdio.h>
#include <stdlib.h>
#include <string>
double charToDouble(char *c) { return atof(c); }
std::string doubleToString(double x) {
char c[256] = {'\0'};
sprintf(c, "%.0f", x);
return c;
}
int main(int argc, char *argv[]) {
double y = pow(charToDouble(argv[... | #include <iostream>
#include <math.h>
#include <stdio.h>
#include <stdlib.h>
#include <string>
double charToDouble(char *c) { return atof(c); }
std::string doubleToString(double x) {
char c[256] = {'\0'};
sprintf(c, "%.0f", x);
return c;
}
int main() {
int x;
std::cin >> x;
double y = pow(double(x), 3);... | replace | 15 | 17 | 15 | 19 | -11 | |
p02388 | C++ | Runtime Error | #include <cstdio>
int main() {
int a, b;
scanf("%d", a);
b = a * a * a;
printf("%d\n", b);
return 0;
} | #include <cstdio>
int main() {
int a, b;
scanf("%d", &a);
b = a * a * a;
printf("%d\n", b);
return 0;
} | replace | 3 | 4 | 3 | 4 | -11 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.