Home > Enterprise >  I wrote the exact same code that has in my c textbook but it doesn't work
I wrote the exact same code that has in my c textbook but it doesn't work

Time:11-22

These are the errors I get

image

#include<iostream>
#include<string>
#include<vector>
#include<algorithm>
#include<cmath>
using namespace std;
inline void keep_window_open() { char ch; cin >> ch; }

After I wrote that code, I am getting both the 2019, and the 1120 errors, and I cannot understand what is going on.

CodePudding user response:

Where's your main function? maybe the problem is that you forgot to put the main func in your code.

  • Related