Can anyone see how this returns a runtime error?
I have tried everything it seems, other inputs people have, etc. (and I have looked at other posts too), but my code is accessing memory somewhere it shouldn't be.
Thanks for anything!
Sorry, ended up being a vector which wasn't popped!!
Don ...
Search found 18 matches
- Tue Jan 01, 2008 11:31 am
- Forum: Volume 1 (100-199)
- Topic: 101 - The Blocks Problem
- Replies: 635
- Views: 108745
- Thu Oct 07, 2004 1:10 am
- Forum: Volume 102 (10200-10299)
- Topic: 10267 - Graphical Editor
- Replies: 190
- Views: 77238
- Sat Aug 21, 2004 7:29 pm
- Forum: Volume 101 (10100-10199)
- Topic: 10191 - Longest Nap
- Replies: 75
- Views: 43750
itoa()
Why does ANSI C recognize atoi() but not itoa()?
- Fri Aug 20, 2004 2:38 pm
- Forum: Volume 101 (10100-10199)
- Topic: 10191 - Longest Nap
- Replies: 75
- Views: 43750
In C++, now WA
I have good output, I believe, having rewritten this in C++, here is the output: Day #1: the longest nap starts at 15:00 and will last for 30 minutes.
Day #2: the longest nap starts at 15:00 and will last for 1 hours and 45 minutes.
Day #3: the longest nap starts at 17:15 and will last for 45 ...
Day #2: the longest nap starts at 15:00 and will last for 1 hours and 45 minutes.
Day #3: the longest nap starts at 17:15 and will last for 45 ...
- Thu Aug 19, 2004 12:32 pm
- Forum: Volume 101 (10100-10199)
- Topic: 10191 - Longest Nap
- Replies: 75
- Views: 43750
OK....sorting yet still TLE
I am sorting my times using shell sort and I can get my simple test cases to work, can anyone send or post or tell me of cases which would send my algorithm into a tizzy? Any input is greatly appreciated, thanks
- Thu Aug 19, 2004 12:57 am
- Forum: Volume 101 (10100-10199)
- Topic: 10191 - Longest Nap
- Replies: 75
- Views: 43750
10191 - Time Limit Exceeded
What does this mean? You CAN'T assume, however, that the input will be in any specific order. I assume it means that possibly the times are not necessarily sequential, but, I have the following output: Day #1: the longest nap starts at 15:00 and will last for 30 minutes.
Day #2: the longest nap ...
Day #2: the longest nap ...
- Fri Jul 02, 2004 9:29 pm
- Forum: Volume 102 (10200-10299)
- Topic: 10252 - Common Permutation
- Replies: 150
- Views: 73353
- Fri Jul 02, 2004 8:40 pm
- Forum: Volume 102 (10200-10299)
- Topic: 10252 - Common Permutation
- Replies: 150
- Views: 73353
10252
Can't seem to figure out why I get a wrong answer to this problem, I find the common letters to the words, and output the multiples of each letter occuring in both words, I output blank lines for neither word having common letters and for a blank input of the second word, IS IT POSSIBLE TO HAVE AN ...
- Sat Apr 10, 2004 8:54 am
- Forum: Volume 100 (10000-10099)
- Topic: 10044 - Erdos Numbers
- Replies: 102
- Views: 55249
Time Exceeded too
I can't see how I might optimize this, can anyone help?
Thanks
[cpp]
#include <iostream>
#include <iterator>
#include <cstring>
#include <list>
using namespace std;
const char * FIRST = "P.", * LAST = "Erdos";
typedef struct
{
char *Name, *Init;
int Num;
} Erdi;
list < list <Erdi> > values ...
Thanks
[cpp]
#include <iostream>
#include <iterator>
#include <cstring>
#include <list>
using namespace std;
const char * FIRST = "P.", * LAST = "Erdos";
typedef struct
{
char *Name, *Init;
int Num;
} Erdi;
list < list <Erdi> > values ...
- Fri Dec 05, 2003 4:01 am
- Forum: Volume 101 (10100-10199)
- Topic: 10197 - Learning Portuguese
- Replies: 45
- Views: 22837
10197 - Runtime Error
I compile and run this fine off my computer, using g++, why does UVA give me a runtime error for this? /*Learning Portuguese #10197*/
#include <iostream>
#include <cstring>
#include <cassert>
#include <string>
using namespace std;
#define PORT_O 243
class CPort
{
public:
CPort();
CPort ...
#include <iostream>
#include <cstring>
#include <cassert>
#include <string>
using namespace std;
#define PORT_O 243
class CPort
{
public:
CPort();
CPort ...
- Thu Dec 04, 2003 12:18 am
- Forum: Volume 101 (10100-10199)
- Topic: 10189 - Minesweeper
- Replies: 418
- Views: 124813
- Wed Dec 03, 2003 10:44 am
- Forum: Volume 101 (10100-10199)
- Topic: 10189 - Minesweeper
- Replies: 418
- Views: 124813
10189 Comile errer?
I keep getting a compile error, but I can compile and run my program with no error, can anyone explain why (I use g++)?
Thank you,
med
PS - I can send the code if anyone wants me to
- Mon Dec 01, 2003 4:22 am
- Forum: Volume 100 (10000-10099)
- Topic: 10001 - Garden of Eden
- Replies: 39
- Views: 20359
10001 Garden OF Eden
Look, can anyone just tell me if a discrete state is bound by the binary size of the identity or not?
Thanks
Thanks
- Sun Nov 30, 2003 10:53 pm
- Forum: Volume 100 (10000-10099)
- Topic: 10001 - Garden of Eden
- Replies: 39
- Views: 20359
10001 Garden of Eden - Bad Apple?
I want to know why or how, discrete states are displayed that are larger than one byte, like the example given of 2 bytes, if I may ask how the XOR results extend?
Does each byte reflect results identical to the first byte?
Say state one has automaton value identity 9, and number of cells 5, the ...
Does each byte reflect results identical to the first byte?
Say state one has automaton value identity 9, and number of cells 5, the ...