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

Discussion of Problem 1000. A+B Problem

how to correct this error
Posted by ANIKET VISHAL 6 Jun 2017 12:48
8m3edk-w4h74s:1:9: fatal error: 'iostream.h' file not found
#include<iostream.h>
        ^
1 error generated.
Re: how to correct this error
Posted by Mahilewets 7 Jun 2017 00:54
#include <iostream>

Also better use not iostream,  but rather STDIO.
Re: how to correct this error
Posted by ToadMonster 7 Jun 2017 14:37
Just because?

My opinion:
C++ streams and C printf/scanf are equal.
For GCC compiler, "std::ios::sync_with_stdio(false);" method call is required at main() very beginning.

Significant input speed-up can be reached by using "getchar()" and/or "read()" functions and manual string->int conversion. This way is tricky, dangerous, I haven't seen task requires it.

Edited by author 07.06.2017 14:49