Search found 8 matches

by mattapayne
Fri Oct 01, 2004 3:06 am
Forum: Volume 4 (400-499)
Topic: 495 - Fibonacci Freeze
Replies: 222
Views: 59909

Got it, thanks.
by mattapayne
Fri Oct 01, 2004 1:15 am
Forum: Volume 4 (400-499)
Topic: 495 - Fibonacci Freeze
Replies: 222
Views: 59909

495 : implicit declaration of function `int itoa(...)'

I can't seem to get past this:

02919915_24.c: In function `class string addStrings(basic_string<char,string_char_traits<char>,__default_alloc_template<true,0> >, basic_string<char,string_char_traits<char>,__default_alloc_template<true,0> >)':
02919915_24.c:97: implicit declaration of function `int ...
by mattapayne
Thu Jun 24, 2004 1:55 am
Forum: Volume 100 (10000-10099)
Topic: 10038 - Jolly Jumpers
Replies: 445
Views: 152606

10038 - WA Need Help

I keep getting WA with the following (or variations of the same):

[c++]

#include <iostream>
using namespace std;

const int MAX = 3001;

struct RangeToTest
{
int range;
int array[MAX];

bool checkJolly()
{
int temp[MAX];

for(int i=0; i<range-1; ++i)
{
if(array < array[i+1])
{
temp ...
by mattapayne
Wed Jun 23, 2004 7:07 am
Forum: Volume 101 (10100-10199)
Topic: 10195 - The Knights Of The Round Table
Replies: 59
Views: 22726

You are right. Got AC. Thanks.

Matt
by mattapayne
Wed Jun 23, 2004 4:45 am
Forum: Volume 101 (10100-10199)
Topic: 10195 - The Knights Of The Round Table
Replies: 59
Views: 22726

10195 - Must be something really obvious

What am I missing here?:
[C++]

#include <iostream>
#include <math.h>
#include <iomanip>
using namespace std;

int main()
{
double a,b,c, radius, peri;
while(cin >> a >> b >> c)
{
if(a>0 && a<=1000000 && b >0 && b<=1000000 && c>0 &&c<=1000000)
{
peri = (a + b + c) / 2;
radius = sqrt((peri ...
by mattapayne
Fri Jun 18, 2004 8:52 pm
Forum: Volume 101 (10100-10199)
Topic: 10189 - Minesweeper
Replies: 418
Views: 124792

Thanks,

Got it accepted.

Matt
by mattapayne
Thu Jun 17, 2004 10:05 pm
Forum: Volume 101 (10100-10199)
Topic: 10189 - Minesweeper
Replies: 418
Views: 124792

OK, thanks for the suggestions.

Maybe I'm reading the problem incorrectly. As I understand it, I'm supposed to allow input of any number of "fields" and when 0 0 is entered for field n, m, terminate. Then print all entered "fields" with proper numeric conversion.

My solution is to create a 2d char ...
by mattapayne
Thu Jun 17, 2004 5:56 am
Forum: Volume 101 (10100-10199)
Topic: 10189 - Minesweeper
Replies: 418
Views: 124792

10189 - WA Can't Seem To Find What's Wrong ...

Would anyone like to have a quick look? I've exhausted all possibilities that I could think up.

[C++]
/*BEGIN CODE*/

#include <iostream>
#include <vector>
using namespace std;
//number of rows in the field array
const int ROW = 110;
//number of columns in the field array
const int COL = 110 ...

Go to advanced search