Codeforces Round 1133 (Div. 1, Div. 2) is coming soon! Register here. ×

sorbhs's blog

By sorbhs, 13 years ago, In English

can anyone help me how to remove error like runtime error(SIGSEGV).. ?

  • Vote: I like it
  • -6
  • Vote: I do not like it

»
13 years ago, hide # |
 
Vote: I like it +5 Vote: I do not like it

Be careful for any [access violation] like in arrays and pointers

e.g.int a[10];cout << a[11];this is actually undefined behavior

e.g.int*x;cout << x[1] << *x << x[0];this will cause SIGSEGV