+ 1

Whats wrong. Error shows no such file or directory

Building a program to check whether a number is Newton number or not https://code.sololearn.com/cI7WQ0CNMTAo/?ref=app

28th Jun 2019, 7:24 PM
Somit Khakse
Somit Khakse - avatar
3 Antworten
+ 2
Program's logic is not correct, but besides that you have 4 errors: 1. Should be <iostream> 2. add std:: before all "cin"s and "cout"s or add a line "using namespace std;" 3. forgot a ";" after "getch" 4. int main(), not void main()
28th Jun 2019, 7:30 PM
Luk
Luk - avatar
+ 1
current standard only using iostream, not iostream.h
28th Jun 2019, 7:26 PM
Taste
Taste - avatar
+ 1
Luk thank-you, it worked, and I corrected the formula too..!
28th Jun 2019, 8:55 PM
Somit Khakse
Somit Khakse - avatar