0

What's wrong with this code?

#include <iostream> #include <cstdlid> using namespace std; int main () { for (int x=1; x <=11; x++) { cout << rand() << endl; } }

10th Oct 2016, 4:39 PM
Indie Geek
Indie Geek - avatar
3 Answers
0
#include <cstdlid> should be #include <cstdlib> the last letter should be a b
10th Oct 2016, 7:04 PM
Ryne
Ryne - avatar
0
Thanks!
11th Oct 2016, 10:27 AM
Indie Geek
Indie Geek - avatar
- 1
in 2nd header file, the last letter should be 'b'.... and you should also write return function....because you used Int type in main function.
11th Oct 2016, 8:18 AM
priya
priya - avatar