Search found 9 matches

by 40019JR
Wed Dec 24, 2003 11:55 am
Forum: C++
Topic: Regarding compiler
Replies: 2
Views: 1539

Regarding compiler

Hi, guys.
I'm using VC all the time.
However I'm looking for a compiler more close to Unix embedded compiler that runs on Windows.
If you know any, let me know. Thanks.
by 40019JR
Wed Dec 24, 2003 12:51 am
Forum: Volume 1 (100-199)
Topic: 102 - Ecological Bin Packing
Replies: 485
Views: 53283

I encountered another problem

Thanks for the correction. By the way, if you can tell me how to write the code using array more in detail I'd appreciate it. Now, I get following compiler error from the following code. 02167125_24.c: In function `int main ()': 02167125_24.c:47: parse error at end of input [cpp] #include <stdio.h> ...
by 40019JR
Mon Dec 22, 2003 1:11 am
Forum: Volume 1 (100-199)
Topic: 102 - Ecological Bin Packing
Replies: 485
Views: 53283

Why WA? 102

Hi, I just got WA from the following program. However, I can not figure out what is wrong with it. Can anyone help me out? Thanks. [cpp] #include <stdio.h> #include <iostream> using namespace std; int main() { int c1, c2, c3, b1, b2, b3, g1, g2, g3; int minimum; int minimum_number; int r1, r2, r3, r...
by 40019JR
Sun Dec 14, 2003 5:10 pm
Forum: Volume 1 (100-199)
Topic: 113 - Power of Cryptography
Replies: 163
Views: 17417

Thanks.

Thanks everyone. It worked.
But like how did you know that their compiler interpret it down to 6 decimal points and stuff like that?
Just out of curiosity.
by 40019JR
Sun Dec 14, 2003 6:38 am
Forum: C++
Topic: regarding getchar()
Replies: 4
Views: 2180

Thanks it worked.

Yes, after including stdio.h I got it accepted. :D
Thank you.
by 40019JR
Sun Dec 14, 2003 6:31 am
Forum: Volume 1 (100-199)
Topic: 113 - Power of Cryptography
Replies: 163
Views: 17417

I got compiler errors

Thanks for your reply. I corrected the line and sent it. However, I got following compiler errors. Also, when I run it on VC, I get no error but the output is funny. I mean, this doesn't solve the problem. So if you have any thought on that, I appreciate it. 02143378_24.c: In function `int main ()':...
by 40019JR
Sun Dec 14, 2003 6:01 am
Forum: C++
Topic: regarding getchar()
Replies: 4
Views: 2180

about get char and question 272

[cpp] I still get compiler errors as follows from the program below. I use VC and it works fine. Can anybody have suggestions please? 02143358_24.c: In function `int main ()': 02143358_24.c:8: `getchar' undeclared (first use this function) 02143358_24.c:8: (Each undeclared identifier is reported onl...
by 40019JR
Sat Dec 13, 2003 8:40 pm
Forum: Volume 1 (100-199)
Topic: 113 - Power of Cryptography
Replies: 163
Views: 17417

Why Wrong Answer? 113

[cpp] This is my C++ answer for 113. I got WA. However, I don't understand why. I thought it perfectly solves the problem. Can anyone help me? #include <iostream> #include <cmath> using namespace std; int main() { double n, k, p; while (cin >> n >> p) { k = pow(p,(1/n)); cout << k << endl; } return ...
by 40019JR
Fri Dec 12, 2003 11:49 pm
Forum: C++
Topic: regarding getchar()
Replies: 4
Views: 2180

regarding getchar()

Hi,
I got compiler error for using getchar()
since I wanna read whitespace and new lines, what can I use?
Thanks.

Go to advanced search