Private Proxies – Buy Cheap Private Elite USA Proxy + 50% Discount!Private Proxies – Buy Cheap Private Elite USA Proxy + 50% Discount!Private Proxies – Buy Cheap Private Elite USA Proxy + 50% Discount!Private Proxies – Buy Cheap Private Elite USA Proxy + 50% Discount!
    0
  •   was successfully added to your cart.
  • Home
  • Buy proxies
  • Extra features
  • Help
  • Contact
  • Login
  • 50% OFF
    BUY NOW!
    50
    PROXIES
    $19
    --------------------
    BUY NOW!
    BUY NOW!
    BUY NOW!
    BUY NOW!
    BUY NOW!
    $29
    $49
    $109
    $179
    $299
    --------------------
    --------------------
    --------------------
    --------------------
    --------------------
    PROXIES
    PROXIES
    PROXIES
    PROXIES
    PROXIES
    100
    200
    500
    1,000
    2,000
    TOP SELLER
    BEST VALUE
    For All Private Proxies!

Tengo el siguiente código:

#include <stdio.h>  #define WLEN      32    /* word length */ #define LOGWLEN   50016 /* log word length -- round(LOG2(WLEN) */ #define SMAX      50016 /* maximum string length -- multiple of WLEN */ #define BITMAX    128   /* maximum bit string length -- round(SMAX/WLEN) */ #define ALPHASIZE 26    /* alphabet size */  typedef unsigned int WORD; typedef short unsigned int INDEX;   /* i: alpha[i] == char */  int nwords;             /* no. of words for bits */ WORD bit1[BITMAX]; WORD bit2[BITMAX]; WORD a_strings[ALPHASIZE][BITMAX]; WORD *pb1, *pb2, *t1;  WORD bitmask[LOGWLEN] =         {0x55555555, 0x33333333, 0x0f0f0f0f, 0x00ff00ff, 0x0000ffff};  void bitops(last, cur, index) WORD *last, *cur; INDEX index; {     register WORD x, y;     register int j;     register WORD *a_s;     register WORD top_borrow, bottombit;      a_s = &a_strings[index][0];     bottombit = 1;     for (j = 0; j < nwords; j++) {         y = *(last++);         x =  y | *(a_s++);         top_borrow = (y >> (WLEN - 1)) & 0x1;         y = ((y << 1) | bottombit);         if (x < y)             top_borrow = 1;         *(cur++) = x & ((x - y) ^ x);         bottombit = top_borrow;     }     return; }  void alphastrings(s, len) INDEX *s; int len; {     register INDEX *p;     register int i, j;      for (i = 0; i < ALPHASIZE; i++)         for (j = 0; j < nwords; j++)             a_strings[i][j] = 0;     p =  s;     j = len;     for (i = 0; i < j; i++)         a_strings[*(p++)][i/WLEN] |=  1 << (i % WLEN);      return; }  int bitcount(wp) WORD *wp; {     register WORD w, count;     register int j, rshift, i;      count = 0;     for (i = 0; i < nwords; i++) {         w = *(wp++);         rshift = 1;         for (j = 0; j < LOGWLEN; j++) {             w = (w & bitmask[j]) + ((w & ~bitmask[j]) >> rshift);             rshift <<= 1;         }         count += w;     }     return (count); }   int bitlcs(a, lena, b, lenb) INDEX *a; int lena; INDEX *b; int lenb; {     register int i;     register INDEX *pbstring;     register int j, k;      nwords = (lena + WLEN - 1) / WLEN;      alphastrings(a, lena);      pb1 = &bit1[0];     for (i = 0; i < nwords; i++)         *pb1++ = 0;     /*** bit1[i] = 0; ***/     pb1 = &bit1[0]; pb2 = &bit2[0];     pbstring = b;      for (i = 1; i <= lenb; i++) {         bitops(pb1, pb2, *(pbstring++));         t1 = pb1; pb1 = pb2; pb2 = t1;     }     return (bitcount(pb1)); }  int leer(INDEX * s) {     int c, index, i = 0;     while((c = getchar()) != EOF && c != '\n') {         s[i++] = (int) c - 97;      }     return i; }  int main(int argc, char const *argv[]) {        INDEX stringa[SMAX];// = {1, 1, 1};     INDEX stringb[SMAX];// = {1, 2, 1};     int lenA, lenB;     lenA = leer(stringa);     lenB = leer(stringb);     printf("%d\n", bitlcs(stringa, lenA, stringb, lenB));     return 0; } 

Estoy testeándolo con 50000 letras “a” y 50000 letras “e” como entrada, para eso armé un archivo con dichas letras. El problema se dá en que cuando compilo con:

gcc -O2 miPrograma.c -o miPrograma.exe 

Y lo ejecuto con ./miPrograma.exe < strings.txt

Arroja Segmentation Fault, aunque si lo ejecuto simplemente ./miPrograma.exe y copio y pego ambos strings funciona correctamente.

Probé, además, que al debuguearlo con

gcc -O2 miPrograma.exe -g gdb ./a.out run < strings.txt 

También funciona perfectamente, por lo que no puedo ver donde se encuentra el problema. No se qué hacer, si alguien pudiera darme una mano se lo agradecería.

✓ Extra quality

ExtraProxies brings the best proxy quality for you with our private and reliable proxies

✓ Extra anonymity

Top level of anonymity and 100% safe proxies – this is what you get with every proxy package

✓ Extra speed

1,ooo mb/s proxy servers speed – we are way better than others – just enjoy our proxies!

50 proxies

$19/month

50% DISCOUNT!
$0.38 per proxy
✓ Private
✓ Elite
✓ Anonymous
Buy now

100 proxies

$29/month

50% DISCOUNT!
$0.29 per proxy
✓ Private
✓ Elite
✓ Anonymous
Buy now

200 proxies

$49/month

50% DISCOUNT!
$0.25 per proxy
✓ Private
✓ Elite
✓ Anonymous
Buy now

500 proxies

$109/month

50% DISCOUNT!
$0.22 per proxy
✓ Private
✓ Elite
✓ Anonymous
Buy now

1,000 proxies

$179/month

50% DISCOUNT!
$0.18 per proxy
✓ Private
✓ Elite
✓ Anonymous
Buy now

2,000 proxies

$299/month

50% DISCOUNT!
$0.15 per proxy
✓ Private
✓ Elite
✓ Anonymous
Buy now

USA proxy location

We offer premium quality USA private proxies – the most essential proxies you can ever want from USA

100% anonymous

Our proxies have TOP level of anonymity + Elite quality, so you are always safe and secure with your proxies

Unlimited bandwidth

Use your proxies as much as you want – we have no limits for data transfer and bandwidth, unlimited usage!

Superfast speed

Superb fast proxy servers with 1,000 mb/s speed – sit back and enjoy your lightning fast private proxies!

99,9% servers uptime

Alive and working proxies all the time – we are taking care of our servers so you can use them without any problems

No usage restrictions

You have freedom to use your proxies with every software, browser or website you want without restrictions

Perfect for SEO

We are 100% friendly with all SEO tasks as well as internet marketing – feel the power with our proxies

Big discounts

Buy more proxies and get better price – we offer various proxy packages with great deals and discounts

Premium support

We are working 24/7 to bring the best proxy experience for you – we are glad to help and assist you!

Satisfaction guarantee

24/7 premium support, free proxy activation and 100% safe payments! Best reliability private proxies for your needs!

Best Proxy Packs

  • 2,000 Private Proxies $600.00 $299.00 / month
  • 1,000 Private Proxies $360.00 $179.00 / month

Quick Links

  • More information
  • Contact us
  • Privacy Policy
  • Terms and Conditions

Like And Follow Us


Copyright ExtraProxies.com | All Rights Reserved.
  • Checkout
  • Contact
  • Help
  • Home
  • My Account
  • My Cart
  • News
  • Privacy Policy
  • Proxy features
  • Proxy packs
  • Terms and Conditions
Private Proxies – Buy Cheap Private Elite USA Proxy + 50% Discount!
    0 items