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

Int64 types in C++: Compilation Error
Posted by Intelligent_Design 19 Oct 2006 23:45
Hello.
I've got a question about a C++ code compilation issue I recently encountered.
I tried to send a solution in C++ using "__int64" types as I've written it. However,I never managed to make the judge compile it.
What's the problem?How can I use int64 types with your judge system?(in MSVC,I use __int64,but it doesn't work here either...)

REPLY:
No,it's all Ok with the stuff.The only problem is that cin and cout aren't defined for __int64 datatype,so a typecast is needed.

Edited by author 20.10.2006 00:05
Re: Int64 types in C++: Compilation Error
Posted by Vladimir Yakovlev (USU) 21 Oct 2006 16:40
"cin >> __int64" will not work with <iostream.h>.
Use <iostream> and "using namespace std" instead.