我的程序:
/*
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
----------------------------
只要这出错误即可,谢谢
|