M
M
MaksOnChek2021-11-14 17:59:42
C++ / C#
MaksOnChek, 2021-11-14 17:59:42

C++ compilation error, what to do?

When compiling the code, I get the error [Build Error] [main.o] Error -1073741819.

#include <cstdlib>
#include <iostream>

using namespace std;

int main(int argc, char *argv[])
{
    system("PAUSE");
    return EXIT_SUCCESS;
}

What could be the problem?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
M
MaksOnChek, 2021-11-14
@MaksOnChek

Problem solved. I needed to install MinGW.

R
Ronald McDonald, 2021-11-14
@Zoominger

#include
#include

What do we include?
return EXIT_SUCCESS;
And here you need "0" place "EXIT_SUCCESS".

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question