I found the reason!!
isdigit was the problem....i removed it and i got PE now!! So, how to remove the PE??
Search found 33 matches
- Thu Jan 12, 2006 10:13 am
- Forum: Volume 107 (10700-10799)
- Topic: 10719 - Quotient Polynomial
- Replies: 51
- Views: 25066
- Thu Jan 12, 2006 10:00 am
- Forum: Volume 107 (10700-10799)
- Topic: 10719 - Quotient Polynomial
- Replies: 51
- Views: 25066
10719 Compiler Error!
How can I get a compile error from the OJ for this code??!!
It's working fine in my comp!! Could someone lend me a hand?
#include<iostream>
#include<vector>
#include<algorithm>
using namespace std;
long int valdec(vector<char> no)
{
long int res;
int n=no.size();
if(no[0]=='-')
{
res=0;
long ...
It's working fine in my comp!! Could someone lend me a hand?
#include<iostream>
#include<vector>
#include<algorithm>
using namespace std;
long int valdec(vector<char> no)
{
long int res;
int n=no.size();
if(no[0]=='-')
{
res=0;
long ...
- Mon Jan 02, 2006 6:32 pm
- Forum: Volume 108 (10800-10899)
- Topic: 10823 - Of Circles and Squares
- Replies: 50
- Views: 17757
10823 Run Time error
Could someone point out why?
#include<iostream>
#include<algorithm>
#include<vector>
#include<string>
using namespace std;
struct square
{
int blx,bly,side;
int red,green,blue;
};
struct circle
{
int centerx,centery,radius;
int red,green,blue;
};
struct possibs
{
int red,green,blue;
};
main ...
#include<iostream>
#include<algorithm>
#include<vector>
#include<string>
using namespace std;
struct square
{
int blx,bly,side;
int red,green,blue;
};
struct circle
{
int centerx,centery,radius;
int red,green,blue;
};
struct possibs
{
int red,green,blue;
};
main ...
- Sun Jan 01, 2006 7:20 am
- Forum: Volume 1 (100-199)
- Topic: 142 - Mouse Clicks
- Replies: 58
- Views: 11647
Code: Select all
I 0 0
I 0 100
I 100 0
R 80 80 120 120
I 100 100
M 50 50
#
Code: Select all
1 2 3
Code: Select all
1 2 4
and i got my code accepted....very silly error....
- Thu Dec 29, 2005 8:47 am
- Forum: Volume 1 (100-199)
- Topic: 142 - Mouse Clicks
- Replies: 58
- Views: 11647
- Thu Dec 29, 2005 8:31 am
- Forum: Volume 6 (600-699)
- Topic: 616 - Coconuts, Revisited
- Replies: 37
- Views: 18072
- Sun Dec 25, 2005 1:20 pm
- Forum: Volume 1 (100-199)
- Topic: 142 - Mouse Clicks
- Replies: 58
- Views: 11647
142 WA!!:-((
I am getting WA for this code....
This is how i proceed...
I store the icon coordinates and the region coordinates in two arrays separately...whenever a mouse click happens, I store the icon(/icons if there are many at the same distance) that is closest to the mouse click in iconposs array....then i ...
This is how i proceed...
I store the icon coordinates and the region coordinates in two arrays separately...whenever a mouse click happens, I store the icon(/icons if there are many at the same distance) that is closest to the mouse click in iconposs array....then i ...
- Sun Dec 25, 2005 10:05 am
- Forum: Volume 100 (10000-10099)
- Topic: 10036 - Divisibility
- Replies: 37
- Views: 18434
- Sat Dec 24, 2005 11:14 am
- Forum: Volume 6 (600-699)
- Topic: 616 - Coconuts, Revisited
- Replies: 37
- Views: 18072
616 WA
Someone help me please....Dunno why i get WA for this code
Code: Select all
removed after getting ac
- Wed Dec 21, 2005 10:40 am
- Forum: Volume 2 (200-299)
- Topic: 264 - Count on Cantor
- Replies: 47
- Views: 22422
oh ya!
such a silly mistake i made!!:-((
- Wed Jun 01, 2005 4:08 pm
- Forum: Volume 6 (600-699)
- Topic: 661 - Blowing Fuses
- Replies: 67
- Views: 30957
- Wed Jun 01, 2005 11:35 am
- Forum: Volume 6 (600-699)
- Topic: 661 - Blowing Fuses
- Replies: 67
- Views: 30957
661 - PE
Here's my code....I got PE from OJ!!!! Where's the problem?
Code: Select all
spoiler
- Mon May 30, 2005 8:47 am
- Forum: Volume 3 (300-399)
- Topic: 348 - Optimal Array Multiplication Sequence
- Replies: 22
- Views: 6652
- Sat May 28, 2005 7:01 am
- Forum: Volume 3 (300-399)
- Topic: 355 - The Bases Are Loaded
- Replies: 74
- Views: 30595
- Fri May 27, 2005 6:28 pm
- Forum: Volume 3 (300-399)
- Topic: 355 - The Bases Are Loaded
- Replies: 74
- Views: 30595
355 - The Bases Are Loaded
This was the case that i didn't consider initially....and the only sp. case because of which i got WAs frm OJ!!!!
I printed
But, make sure that you print
......
Hope it helps!!!!
I printed
Code: Select all
0 base 2 = base 10
Code: Select all
0 base 2 = 0 base 10
Hope it helps!!!!
