Does anyone know why I'm not running?

1
#include <stdio.h>
main()
{
    float n1,n2;
    do {
        printf("Informe dois numeos:");
        scanf("%f %f", &n1, &n2);
        if (n1>n2){
          printf("DECRESCENTE"); }
        else {
          printf("CRESCENTE"); }
}
    while (n1!=n2);
     system("pause");

}

Can anyone tell me why it's not running? Give these errors

  

C: \ Program Files   (x86) \ Dev-Cpp \ MinGW64 \ x86_64-w64-mingw32 \ bin \ ld.exe can not open output   file C: \ Users \ Andressa Lilja \ Desktop \ IF \ PROGRAMMING \ 5.4.exe:   Permission denied   C: \ Users \ Andressa Lilja \ Desktop \ IF \ PROGRAMMING \ collect2.exe [Error] ld returned 1 exit status

    
asked by anonymous 02.04.2017 / 03:36

1 answer

0

To use the system ("pause") you need the stdlib.h library I do not know what error you found there, but from what I saw it is.

AH, I saw the error, usually you ran the code, and the window is still open, and you typed to compile again. You have to finish the program, to run it again, if you do not give that error there.

    
02.04.2017 / 19:25