[ create a new paste ] login | about

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

C, pasted on Dec 27:
1
2
3
4
5
6
7
8
9
#include <iostream>
int main()
{
cout << "ievadi divus skaitļus:" << endl;;
int s1, s2;
cin >> s1 >> s2;
cout << "Skaitļu " << s1 << " un " << s2<< " summa ir " << s1 + s2 << endl;;
return 0;
}


Output:
1
2
3
4
5
6
7
Line 19: error: iostream: No such file or directory
In function 'main':
Line 4: error: 'cout' undeclared (first use in this function)
Line 4: error: (Each undeclared identifier is reported only once
Line 4: error: for each function it appears in.)
Line 4: error: 'endl' undeclared (first use in this function)
Line 6: error: 'cin' undeclared (first use in this function)


Create a new paste based on this one


Comments: