Код: Выделить всё
#include
#include
int c[2];
void f(__int128 p) {
c[p + 1] = 1;
c[p + 1] = std::max(c[p + 1], c[p] + 1);
return;
}
int main() {
f(0);
std::cout
Подробнее здесь: [url]https://stackoverflow.com/questions/79731138/does-gcc-optimize-array-access-with-int128-indexes-incorrectly[/url]
Мобильная версия