You are not logged in. Please login at www.codechef.com to post your questions!

×

Why do I get a SIGABRT?

Why is my program causing SIGABRT error?

asked 20 Mar '13, 17:11

tojochacko's gravatar image

2★tojochacko ♦
560101924
accept rate: 42%


https://www.codechef.com/viewsolution/12914859 Why SIGABRT error here? It works fine on GeeksforGeeks IDE.

link

answered 22 Feb '17, 23:34

msinojia's gravatar image

4★msinojia
121
accept rate: 0%

@msinojia

int* ans = new int[t]; should be written after cin>>t;

https://www.codechef.com/submit/complete/12915409

link

answered 23 Feb '17, 00:53

prakhariitd's gravatar image

6★prakhariitd
1.1k211
accept rate: 10%

edited 23 Feb '17, 00:56

SIGABRT errors are caused by your program aborting due to a fatal error. In C++, this is normally due to an assert statement in C++ not returning true, but some STL elements can generate this if they try to store too much memory.

link

answered 20 Mar '13, 17:11

admin's gravatar image

0★admin ♦♦
19.6k349497539
accept rate: 35%

http://www.codechef.com/viewsolution/5896387

Why do i get SIGABART here?

link

answered 14 Jan '15, 15:49

prianka's gravatar image

0★prianka
2
accept rate: 0%

scanf( "%d", &*( hill + i ) ); This line is wrong in your source code. You are deferencing then asking for address, you should write either (hill+i) or &hill[i]. No need for * operator.

link

answered 25 Mar '16, 17:40

samgrv's gravatar image

4★samgrv
261
accept rate: 20%

link

answered 03 Aug '16, 22:42

mgxns24's gravatar image

0★mgxns24
1
accept rate: 0%

https://www.codechef.com/viewsolution/11160529

why do i get SIGABART here ? the code works really fine when executed on other C IDEs.

link

answered 14 Aug '16, 01:35

alventera1296's gravatar image

0★alventera1296
1
accept rate: 0%

link

answered 10 Sep '16, 07:11

aarif96's gravatar image

2★aarif96
1
accept rate: 0%

toggle preview
Preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported
  • mathemetical formulas in Latex between $ symbol

Question tags:

×206
×59
×55

question asked: 20 Mar '13, 17:11

question was seen: 44,277 times

last updated: 23 Feb '17, 00:56