File tree 1 file changed +0
-20
lines changed
1 file changed +0
-20
lines changed Original file line number Diff line number Diff line change @@ -68,16 +68,6 @@ void TaxiCabNumberStr::report_taxicab_number(const int rank) {
68
68
for (int j = 0 ; j < data.size (); j += 2 ) {
69
69
uint32_t a = std::stoul (data[j]);
70
70
uint32_t b = std::stoul ( data[j + 1 ]);
71
-
72
- #ifdef CHECK_TAXICAB_NUMBER
73
- if (ra.first != (a * a * a + b * b * b) {
74
- std::cerr << " \n *** ERROR: "
75
- << static_cast <int64_t >(ra.first ) << " != "
76
- << a << " ^3 + "
77
- << b << " ^3\n " ;
78
- }
79
- #endif
80
-
81
71
found.cube .push_back ({a, b});
82
72
}
83
73
@@ -200,16 +190,6 @@ void TaxiCabNumberInt::report_taxicab_number(const int rank) {
200
190
for (int j = 0 ; j < data.size (); j += 2 ) {
201
191
uint16_t a = data[j];
202
192
uint16_t b = data[j + 1 ];
203
-
204
- #ifdef CHECK_TAXICAB_NUMBER
205
- if (ra.first != (a * a * a + b * b * b) {
206
- std::cerr << " \n *** ERROR: "
207
- << static_cast <int64_t >(ra.first ) << " != "
208
- << a << " ^3 + "
209
- << b << " ^3\n " ;
210
- }
211
- #endif
212
-
213
193
found.cube .push_back ({a, b});
214
194
}
215
195
You can’t perform that action at this time.
0 commit comments