You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to olympichubt
Hình như cái auto tự chấm bài của spoj nó ko hiểu được 1 số hàm trong
string.h vs stdlib.h đúng k nhỉ *_* mình khai báo thư viện đủ mà vẫn
báo lỗi :
//////////////////////////////////////
prog.cpp: In function 'int main()':
prog.cpp:20: error: 'itoa' was not declared in this scope
prog.cpp:21: error: 'strrev' was not declared in this scope
/////////////////////////////////////
Chắc phải ngồi viết lại hàm quá *_*
Luc Bui Van
unread,
Oct 14, 2011, 1:30:02 AM10/14/11
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to olymp...@googlegroups.com
Đúng rồi đấy Linh ah. spoj không cho sử dụng hàm strrev với itoa đâu, còn mấy hàm khác như strcmp(), atoi(), strcat()... thì ok :D ________________ Người gửi Bùi Văn Lực Email: luc...@gmail.com
Sđt: 01.255.255.266
Cho nên việc một số hàm có ở trình biên dịch này nhưng không có ở trình biên dịch kia.
Theo mình biết thì hàm strrev và hàm itoa không sử dụng được :D. Mình tự code lại 2 hàm này, strrev thì đơn giản, chỉ việc viết chuỗi lại từ cuối, hàm itoa (số thành chuỗi) thì thay bằng hàm sprintf
WinnerNeverQuits
unread,
Oct 14, 2011, 1:55:31 AM10/14/11
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to olymp...@googlegroups.com
Nguy hiểm... :-s
Vào 12:33 Ngày 14 tháng 10 năm 2011, Nguyễn Hữu Hùng <unregis...@gmail.com> đã viết:
--
...>>WNQs<<...
Lotus Koder
unread,
Oct 14, 2011, 4:45:21 AM10/14/11
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to olymp...@googlegroups.com
Thanks Hùng vs Lực đã góp ý .
Lotus Koder
unread,
Oct 14, 2011, 4:46:04 AM10/14/11
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to olymp...@googlegroups.com
đề nghị Thắng ko ném gạch =)
duc duc
unread,
Oct 14, 2011, 1:14:27 PM10/14/11
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to olymp...@googlegroups.com
đề nghị linh ko xì bạn thắng ném gạch, ko ai nói thì ko ai biết \:d/