why do I always get WA?
Who can help me find out the problem?
Here are my code:
#include<stdio.h>
#include<iostream>
using namespace std;
struct node{
int llen;
int lvalue;
int rlen;
int rvalue;
int value;
node* lchild;
node* rchild;
};
int in[4];
int ok;
node* build()
{
for(int i=0;i<4;i ...
Search found 4 matches
- Sat Mar 30, 2013 3:46 pm
- Forum: Volume 8 (800-899)
- Topic: 839 - Not so Mobile
- Replies: 21
- Views: 11238
- Tue Feb 19, 2013 9:41 pm
- Forum: Volume 7 (700-799)
- Topic: 748 - Exponentiation
- Replies: 26
- Views: 10774
Re: 748 - Exponentiation
but on my windows machine my code is printing the sample output using visual c++ .
I'm using g++ on a linux machine, and your program shows crazy output when compiled without any special flags, but seems correct (by chance) when compiled with basic optimizations (-O2). This is usually a sign of ...
- Sat Feb 16, 2013 8:40 pm
- Forum: Volume 7 (700-799)
- Topic: 748 - Exponentiation
- Replies: 26
- Views: 10774
Re: 748 - Exponentiation
On my Linux machine your code is printing this for the sample input: 242563650000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000548815620517731830194541 ...
- Sat Feb 09, 2013 12:42 am
- Forum: Volume 7 (700-799)
- Topic: 748 - Exponentiation
- Replies: 26
- Views: 10774
748 - Exponentiation
I have been doing problem 748 for several days, but I still couldn't get a AC and I always get a WA.It really drove me crazy since I had submitted it for 12 times.And I had tried hard to find out what the problem is.But there is no clue I can begin with because my sample input and out are exactly ...