Search found 3 matches

by ccpz
Mon Nov 01, 2004 2:30 am
Forum: Volume 100 (10000-10099)
Topic: 10018 - Reverse and Add
Replies: 169
Views: 43870

10018 compile error?

this program in my computer compile file
but the judge system alwas says compile error
i am using
gcc version 3.3.4 20040623 (Gentoo Linux 3.3.4-r1, ssp-3.3.2-2, pie-8.7.6)


03035072_24.c: In function `int main()':
03035072_24.c:35: implicit declaration of function `int atoll(...)'



#include ...
by ccpz
Sun Feb 29, 2004 2:40 pm
Forum: Volume 4 (400-499)
Topic: 497 - Strategic Defense Initiative
Replies: 144
Views: 44344

497 runtime error?

[cpp]
#include <iostream>
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
using namespace std;

int data[50];
int temp[50]={-1};
int length[50]={1};

void show(int i)
{
if(temp !=-1)
show(temp );
cout<<data <<endl;
}

void reset()
{
for(int i=0;i<50;i++)
{
data =0;
temp =-1 ...
by ccpz
Fri May 09, 2003 6:46 am
Forum: Volume 4 (400-499)
Topic: 412 - Pi
Replies: 104
Views: 30292

problem 412 get WA

[cpp]
#include <iostream.h>
#include <math.h>
#include <iomanip.h>

int main()
{
int dn=0;
int data[50]={0};
int a=0,b=0,temp=0;
int total=0,ncf=0;
while(1)
{
total=0;
ncf=0;
cin>>n;
if(n==0) break;
for(int i=0;i<n;i++)
{
cin>>data ;
for(int j=0;j<i;j++)
{
total++;
a=data >=data[j ...

Go to advanced search