i've got compile error. but i cannot detect what the error is can anybody help me with this? thanx in advance.
// codes removed
compile error
Moderator: Board moderators
-
- New poster
- Posts: 9
- Joined: Thu Sep 15, 2005 11:35 pm
- Location: dhaka
compile error
Last edited by opportunity on Sun Feb 26, 2006 10:46 pm, edited 1 time in total.
-
- Guru
- Posts: 584
- Joined: Thu Jun 19, 2003 3:48 am
- Location: Sanok, Poland
- Contact:
You should include <cstdio> if you're using scanf and fgets. Anyway, it's bad style to mix those with iostreams. You should also use code tag instead of pasting code directly.
For millions of years, mankind lived just like the animals. Then something happened which unleashed the power of our imagination. We learned to talk and we learned to listen...
-
- New poster
- Posts: 9
- Joined: Thu Sep 15, 2005 11:35 pm
- Location: dhaka
thanks
hi,
thank u once again. this was really a silly mistake. i also tried not to use fgets but i could not input string with whitespaces. how can i do that if i want to use cin>> to read string from keyboard?
thank u once again. this was really a silly mistake. i also tried not to use fgets but i could not input string with whitespaces. how can i do that if i want to use cin>> to read string from keyboard?
-
- Guru
- Posts: 584
- Joined: Thu Jun 19, 2003 3:48 am
- Location: Sanok, Poland
- Contact:
You can use getline(cin, aString). Unfortunately, cin/cout are really slow in older versions of g++ and you can exceed time limit on many problems just by using them.
For millions of years, mankind lived just like the animals. Then something happened which unleashed the power of our imagination. We learned to talk and we learned to listen...
-
- Learning poster
- Posts: 98
- Joined: Sat Jan 21, 2006 12:45 pm
- Location: Busan,Corea(Republic of)
1













Bye logic

Archaan
CAN YOU BEAT ME?
http://acm.uva.es/problemset/usersjudge.php?user=19788
AND,
http://acm.uva.es/problemset/submit.php
http://online-judge.uva.es/problemset/submit.php
SUBMIT AND GET AC!!!
CAN YOU BEAT ME?
http://acm.uva.es/problemset/usersjudge.php?user=19788
AND,
http://acm.uva.es/problemset/submit.php
http://online-judge.uva.es/problemset/submit.php
SUBMIT AND GET AC!!!
-
- Learning poster
- Posts: 98
- Joined: Sat Jan 21, 2006 12:45 pm
- Location: Busan,Corea(Republic of)
3124112345223564575376467453gsdfhjykliyncvbsfdgwreyw
Hi logic
Bye logic
Bye logic
Archaan
CAN YOU BEAT ME?
http://acm.uva.es/problemset/usersjudge.php?user=19788
AND,
http://acm.uva.es/problemset/submit.php
http://online-judge.uva.es/problemset/submit.php
SUBMIT AND GET AC!!!
CAN YOU BEAT ME?
http://acm.uva.es/problemset/usersjudge.php?user=19788
AND,
http://acm.uva.es/problemset/submit.php
http://online-judge.uva.es/problemset/submit.php
SUBMIT AND GET AC!!!
kind Krzysztof Duleba
kind Krzysztof Duleba