0

Why doesn't this bit of C++ code work

It keeps saying cout and cin don't describe types. https://code.sololearn.com/cxEX3rH9kGia/?ref=app

24th Jul 2022, 12:37 AM
Cooper
Cooper - avatar
2 Antworten
0
#include <iostream> using namespace std; int main(){ //debug 1 int y; cin >> y; cout << "your imput is \n"; cout << y; //debug 2 return 0; //debug 3 } //debug 4
24th Jul 2022, 12:53 AM
Solo
Solo - avatar
- 1
#include <iostream> using namespace std; int main (){ int y; cin >> y; cout << "your input is " << endl; cout << y; return 0; }
24th Jul 2022, 1:07 PM
Cojo Alex
Cojo Alex - avatar