Void Functions

I can’t seem to call any void functions, can anyone figure out why?

Quick Example:

#include <iostream>
using namespace std;

void ras();

int main(){
cout << ras() << endl;
cout << “hi2” << endl;
return 0;

void ras(){
cout << “hi” << endl;

The compilers throws me about 20 errors for the basically the same thing. Anyone familiar with this?