Error starting application (0xc000007b).

#include <cstdlib> #include <iostream> using namespace std; using std::cout; using std::cin; using std::endl; int main(int argc, char** argv) { setlocale(LC_ALL, "utf-8"); string fin; int R; cout << "введите сумму " << endl; cin >> R; if(R%100 >= 11 && R%100 <= 19) { fin = "рублей"; } else { switch(R%10) { case 1: fin = "рубль"; break; case 2: case 3: case 4: fin = "рубля"; break; default: fin = "рублей"; } } cout << "У вас " << R << " " << fin << "!" << endl; return 0; } 

Thanks to everyone who responded! So the problem was in Cygwin64. After installing and configuring MinGv, everything started to run the configuration link: https://stackoverflow.com/questions/5224381/mingw-netbeans-6-9-1-problem

the only thing that infuriates MinGv does not want to be displayed in the output netbins

Closed due to the fact that off-topic participants Abyx , cheops , pavel , user207618, Grundy 12 Aug '16 at 10:51 .

It seems that this question does not correspond to the subject of the site. Those who voted to close it indicated the following reasons:

  • "The question is caused by a problem that is no longer reproduced or typed . Although similar questions may be relevant on this site, solving this question is unlikely to help future visitors. You can usually avoid similar questions by writing and researching a minimum program to reproduce the problem before publishing the question. " - pavel, Grundy
  • “Questions asking for help with debugging (“ why does this code not work? ”) Should include the desired behavior, a specific problem or error, and a minimum code for playing it right in the question . Questions without an explicit description of the problem are useless for other visitors. See How to create minimal, self-sufficient and reproducible example . " - Abyx, cheops, community spirit
If the question can be reformulated according to the rules set out in the certificate , edit it .

  • C: \ it \ C ++ \ Rub \ dist \ Release \ Cygwin-Windows if it matters - iyaki
  • one
    The program is all right. And why are you collecting it under Cygwin? Collect under MinGW. - gbg
  • Under the Administrator tried to run? - DimXenon
  • @gbg I collect it via f11 (hammer more precisely) or I don’t run the project as otherwise. Plugins hung to php assembly. - iyaki
  • one
    @DimXenon checked without changes. I tried the compatibility mode, too, did not give the result. - iyaki

2 answers 2

The source code of errors does not contain. Try to build a compiler in a less exotic for C ++ environment.

Qt creator

Microsoft Visual Studio

    There seems to be no errors, but this one:

     using namespace std; using std::cout; using std::cin; using std::endl; 

    obviously contains too much. Remove either the first line or the next three. Better the next three because

     using std::string; 

    You did not write (by the way, and did not include the header file string ; for example, VC ++ swears at this ...)