Here is the error screenshot: <http://prntscr.com/9n6ybt>

Here is the code:

```
#include <iostream>

using namespace std;

int main()
{
    int a, b;
    cin>>a>>b;
    for(int i=a;i<=b;i++)
    {
        if (b%i==0)
        {
            cout << i << " ";
        }
    }   

    return 0;
}

```