USACO Preface Numbering 的一个错误,(不是程序问题)

[复制链接]
查看11 | 回复1 | 2013-12-20 21:40:58 | 显示全部楼层 |阅读模式
我的程序:
/*
ID:tbbd4261
PROG:preface
LANG:C++
*/
#include
using namespace std;
ifstreamfin("preface.in");
ofstreamfout("preface.out");
/*

{"","I","II","III","IV","V","VI","VII","VIII","IX"},

{"","X","XX","XXX","XL","L","LX","LXX","LXXX","XC"},

{"","C","CC","CCC","CD","D","DC","DCC","DCCC","CM"},

{"","M","MM","MMM"}
*/
int cg[7][10]= {{0,1,2,3,1,0,1,2,3,1},//I

{0,0,0,0,1,1,1,1,1,0},//V

{0,0,0,0,0,0,0,0,0,1},//X

{0,0,0,0,0,0,0,0,0,0},//L

{0,0,0,0,0,0,0,0,0,0},//C

{0,0,0,0,0,0,0,0,0,0},//D

{0,0,0,0,0,0,0,0,0,0}//M

};
int cs[7][10]= {

{0,0,0,0,0,0,0,0,0,0},//I

{0,0,0,0,0,0,0,0,0,0},//V

{0,1,2,3,1,0,1,2,3,1},//X

{0,0,0,0,1,1,1,1,1,0},//L

{0,0,0,0,0,0,0,0,0,1},//C

{0,0,0,0,0,0,0,0,0,0},//D

{0,0,0,0,0,0,0,0,0,0}//M

};
int cb[7][10]={

{0,0,0,0,0,0,0,0,0,0},//I

{0,0,0,0,0,0,0,0,0,0},//V

{0,0,0,0,0,0,0,0,0,0},//X

{0,0,0,0,0,0,0,0,0,0},//L

{0,1,2,3,1,0,1,2,3,1},//C

{0,0,0,0,1,1,1,1,1,0},//D

{0,0,0,0,0,0,0,0,0,1}//M

};
int cq[7][4]={

{0,0,0,0},//I

{0,0,0,0},//V

{0,0,0,0},//X

{0,0,0,0},//L

{0,0,0,0},//C

{0,0,0,0},//D

{0,1,2,3},//M

};
int main()
{

int n,cnt0=0,cnt1=0,cnt2=0,cnt3=0,cnt4=0,cnt5=0,cnt6=0;

fin>>n;


for(int i=1; i Run 1: Execution error: Your program had this runtime error: Bad

syscall #174 (rt_sigaction) [email kolstad if you think this is

wrong]. The program ran for 0.000 CPU seconds before the error. It

used 3012 KB of memory.

------ Data for Run 1 ------

1

----------------------------
只要这出错误即可,谢谢

回复

使用道具 举报

千问 | 2013-12-20 21:40:58 | 显示全部楼层
提示说的是 Bad syscall。你把其中的system("pause");一行去掉
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

主题

0

回帖

4882万

积分

论坛元老

Rank: 8Rank: 8

积分
48824836
热门排行