저와 같이 Expresson:result_pointer !=nullptr

에러가 나는 경우는 scanf("%d", a); 입력받을 변수에 &를 붙이지않아서 생기는 오류였습니다.

scanf("%d", a); 를

scanf("%d", &a);

해주시면 해결됩니다

 

저처럼 바보 같은 실수하시지 않기를 바랍니다 ㅎㅎ 

Debug Assertion Failed!

Expresson:result_pointer !=nullptr
For information on how your program can cause an assertion failure, see the Visual C++ documentation on asserts.
(Press Retry to debug the application)

+ Recent posts