Using data struct and I got an error in struct function

This is a discussion on Using data struct and I got an error in struct function within the C++ Programming forums, part of the General Programming Boards category; Code:
#include <iostream>
#include <string>
using namespace std;
struct student
{
string name;
int grade;
}
int main()
{
student ...

C:\Users\gameffect\Documents\c++ examples\stringsex.cpp\structex.cpp|6|error: new types may not be defined in a return type|
C:\Users\gameffect\Documents\c++ examples\stringsex.cpp\structex.cpp|6|note: (perhaps a semicolon is missing after the definition of 'student')|
C:\Users\gameffect\Documents\c++ examples\stringsex.cpp\structex.cpp|14|error: two or more data types in declaration of 'main'|
||=== Build finished: 2 errors, 0 warnings ===|