online compiler and debugger for c/c++

code. compile. run. debug. share.
Source Code    Language
#include <iostream> using namespace std; int main() { int Math; int English; int Science; int SocialScience; int ComputerScience; // ^ Add more or remove some classes if need: cout<<"Math grade: "; cin>>Math; cout<<"English grade: "; cin>>English; cout<<"Science grade: "; cin>>Science; cout<<"Social-Science grade: "; cin>>SocialScience; cout<<"Computer-Science grade: "; cin>>ComputerScience; int GPA=(Math+English+Science+SocialScience+ComputerScience)/5; // 5 is the amount of classes you have cout<<"Your GPA is "<<GPA<<endl; return 0; }

Compiling Program...

Command line arguments:
Standard Input: Interactive Console Text

                

                

Program is not being debugged. Click "Debug" button to start program in debug mode.

#FunctionFile:Line
VariableValue
RegisterValue
ExpressionValue