ENG  RUSTimus Online Judge
Online Judge
Problems
Authors
Online contests
About Online Judge
Frequently asked questions
Site news
Webboard
Links
Problem set
Submit solution
Judge status
Guide
Register
Update your info
Authors ranklist
Current contest
Scheduled contests
Past contests
Rules
back to board

Common Board

COMPILATION ERRORS ?
Posted by Georgy Kerensky 2 Feb 2007 16:01
[code deleted]

Edited by author 02.02.2007 16:03

Edited by moderator 13.02.2007 20:58
Re: COMPILATION ERRORS ?
Posted by Fyodor Menshikov 2 Feb 2007 20:06
Because C/C++ does not allow lists in "{", "}" everywhere in the program. They are allowed only in constant definition where the compiler can check type of every list member.

I'd suggest you to use classes instead of structures. Then you'll will be able to create constructor with 3 parameters and write q.push(ln(0,0,NULL));

Edited by author 02.02.2007 20:07