Can anyone help me??
I don't know why i got "Runtime Error (SIGSEGV)".
#include <iostream>
#include <queue>
#include <stdlib.h>
#include <string>
#define maxV 25148
using namespace std;
struct node
{
int v;
struct node *next;
};
int V;
struct node *adj[maxV], *z;
char dic[maxV][20];
int val ...
Search found 10 matches
- Sun Feb 20, 2005 3:44 pm
- Forum: Volume 101 (10100-10199)
- Topic: 10150 - Doublets
- Replies: 46
- Views: 45913
- Fri Jan 28, 2005 3:34 am
- Forum: C++
- Topic: Why Compile Error?? C++
- Replies: 2
- Views: 2229
- Thu Jan 27, 2005 3:58 pm
- Forum: C++
- Topic: Why Compile Error?? C++
- Replies: 2
- Views: 2229
Why Compile Error?? C++
I run the following code on the Dev-C++ and VC++, and it was corrected.
But the judge give me "Compile Error".
Can anyone help me?
#include <stack>
#include <vector>
#include <iostream>
using namespace std;
stack<int> o;
stack<int> d;
vector<int> com;
int x[11]={0};
int y[11]={0};
int t ...
But the judge give me "Compile Error".
Can anyone help me?
#include <stack>
#include <vector>
#include <iostream>
using namespace std;
stack<int> o;
stack<int> d;
vector<int> com;
int x[11]={0};
int y[11]={0};
int t ...
- Wed Jan 26, 2005 6:49 pm
- Forum: Volume 6 (600-699)
- Topic: 656 - Optimal Programs
- Replies: 1
- Views: 2056
656 - Optimal Programs
Can anyone explain the problem to me?
I don't know why the first test data is like that...
Thanks for your help
_____________________
I don't know why the first test data is like that...

Code: Select all
4
1 2 3 4
0 -2 -6 -12
Program 1
DUP DUP MUL SUB

_____________________
- Sun Feb 08, 2004 10:16 am
- Forum: Volume 100 (10000-10099)
- Topic: 10041 - Vito's Family
- Replies: 90
- Views: 44497
- Sat Feb 07, 2004 11:24 am
- Forum: Volume 100 (10000-10099)
- Topic: 10041 - Vito's Family
- Replies: 90
- Views: 44497
10041
i think it want us to ouput the N/2's in the sorted data (0~N).
i use the partition function to find it.
but i got WA much time .
Can anyone help me ?
or provided some test data....thanks.~~
i use the partition function to find it.
but i got WA much time .
Can anyone help me ?
or provided some test data....thanks.~~
- Sat Jan 03, 2004 4:27 pm
- Forum: Volume 1 (100-199)
- Topic: 113 - Power of Cryptography
- Replies: 163
- Views: 50266
- Sat Jan 03, 2004 10:19 am
- Forum: Volume 1 (100-199)
- Topic: 113 - Power of Cryptography
- Replies: 163
- Views: 50266
- Fri Jan 02, 2004 6:46 pm
- Forum: Volume 1 (100-199)
- Topic: 113 - Power of Cryptography
- Replies: 163
- Views: 50266
where is the bug?? can you help me 113~~~
help me~~ plz~~
[cpp]
#include <iostream.h>
#include <math.h>
int main(void)
{
double p,n;
while(cin>>n>>p) {
cout<<pow(p,(double)1/n)<<endl;
}
return 0;
}[/cpp]
[cpp]
#include <iostream.h>
#include <math.h>
int main(void)
{
double p,n;
while(cin>>n>>p) {
cout<<pow(p,(double)1/n)<<endl;
}
return 0;
}[/cpp]
- Wed Nov 19, 2003 2:21 pm
- Forum: Volume 7 (700-799)
- Topic: 706 - LCD Display
- Replies: 221
- Views: 65109
the output form??
this is my output form :
3 1234567
*******aaa***aaa*********aaa***aaa***aaa
****b*****b*****b*b***b*b*****b*********b
****b*****b*****b*b***b*b*****b*********b
****b*****b*****b*b***b*b*****b*********b
*******aaa***aaa***aaa***aaa***aaa
****b*b*********b*****b*****b*b***b*****b
****b*b*********b ...
3 1234567
*******aaa***aaa*********aaa***aaa***aaa
****b*****b*****b*b***b*b*****b*********b
****b*****b*****b*b***b*b*****b*********b
****b*****b*****b*b***b*b*****b*********b
*******aaa***aaa***aaa***aaa***aaa
****b*b*********b*****b*****b*b***b*****b
****b*b*********b ...