[ create a new paste ] login | about

Link: http://codepad.org/9ccPWfYF    [ raw code | output | fork ]

anupam97 - C++, pasted on Nov 11:
1
2
3
4
5
6
7
8
9
10
#include<iostream.h>
using namespace std;
int main(){
int x,y,z;
x=10;
y=0;
z=x/Y;
cout<<z<<endl;
return 0;
}


Output:
1
2
3
In function 'int main()':
Line 7: error: 'Y' was not declared in this scope
compilation terminated due to -Wfatal-errors.


Create a new paste based on this one


Comments: