foo.cpp:1:1: error: 'include' does not name a type
include<iostream> include<cstring> include<stdlib.h> include<cmath>
^
foo.cpp: In function 'int main()':
foo.cpp:13:2: error: 'cin' was not declared in this scope
cin >> s;
^
foo.cpp:14:14: error: 'strlen' was not declared in this scope
if (strlen(s) > 10)
^
foo.cpp:15:2: error: 'cout' was not declared in this scope
cout << "0" << endl;
^
foo.cpp:15:17: error: 'endl' was not declared in this scope
cout << "0" << endl;
^
foo.cpp:18:12: error: 'atoi' was not declared in this scope
i = atoi(s);
^
foo.cpp:19:11: error: 'abs' was not declared in this scope
j = abs(i);
^
foo.cpp:22:2: error: 'cout' was not declared in this scope
cout << "0" << endl;
^
foo.cpp:22:17: error: 'endl' was not declared in this scope
cout << "0" << endl;
^
foo.cpp:31:2: error: 'cout' was not declared in this scope
cout << a << endl;
^
foo.cpp:31:15: error: 'endl' was not declared in this scope
cout << a << endl;
^