&是什么QUOT;权限被拒绝" "标识返回1退出状态"意思? [英] What does "Permission denied" "Id returned 1 exit status" mean?

查看:404
本文介绍了&是什么QUOT;权限被拒绝" "标识返回1退出状态"意思?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我以第C类,我不是很在行,所以我想问问你,我该如何解决这个问题:标识返回1退出状态,我一直在努力与它相当长一段时间,所以我真的AP preciate你的帮助。

 的#include<&stdio.h中GT;
#包括LT&;&CONIO.H GT;
#包括LT&;&WINDOWS.H GT;
诠释的main()
{
  INT P,N,NP = 0;
  的printf(Introduzca EN农布雷德尔PRODUCTO:\\ n);
    scanf函数(%F,&安培; N);
  的printf(Introduzca连接preCIO德尔PRODUCTO:\\ n);
    scanf函数(%F,&安培; P);
  如果(P LT = 1500)
        NP = P * 1.11;
  其他
        NP = P * 1.08;
   的printf(厄尔尼诺PRODUCTO%d个奎斯塔%D,NP,N);
   getche();
   返回0;
}

错误的完整列表是:

 权限被拒绝ID返回1退出状态


解决方案

它没有任何与code。您的操作系统根本不允许修改一个文件,而它在使用,因此编译(实际上,链接, LD 是链接)失败,因为编译器不能删除旧的可执行文件,并重新下单。为了解决这个问题,只需关闭运行程序中的所有现有流程。

如果这是行不通的,请检查您的权限目录中的可执行文件,或者寻找那些正在使用的任何程序(一些系统允许程序放在一个文件的锁,所以没有其他程序可以修改它)。

I am taking a class on C, and I'm not very good at it , so I would like to ask you, how do I solve the problem: "Id returned 1 exit status", I have been struggling with it for quite a while, so I would really appreciate your help.

#include <stdio.h>
#include<conio.h>
#include<windows.h>
int main()
{
  int P, N, NP=0;
  printf("Introduzca en nombre del producto:\n");
    scanf("%f", &N);
  printf("Introduzca en precio del producto:\n");
    scanf("%f", &P);
  if (P <= 1500)
        NP=P*1.11;
  else 
        NP=P*1.08;
   printf("El producto %d cuesta %d", NP, N);
   getche();
   return 0;
}

The full list of errors is:

Permission denied

Id returned 1 exit status

解决方案

It does not have anything to do with code. Your operating system simply does not allow to modify a file while it is in use, so the compilation (actually, linking, ld is the linker) fails, because compiler can't remove the old executable and place a new one. To solve this, simply close all existing processes running that program.

If that won't work, check your permissions for directory the executable is in, or look for any programs that are currently using it (some systems allow programs to place a lock on a file, so no other program can modify it).

这篇关于&是什么QUOT;权限被拒绝&QUOT; &QUOT;标识返回1退出状态&QUOT;意思?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆