foo.cpp:1:1: error: 'include' does not name a type
include <iostream> include<string>
^
foo.cpp:3:1: error: 'string' does not name a type
string a, s;
^
foo.cpp: In function 'int main()':
foo.cpp:8:8: error: 'cin' was not declared in this scope
while (cin >> a)
^
foo.cpp:8:15: error: 'a' was not declared in this scope
while (cin >> a)
^
foo.cpp:20:13: error: expected ';' before numeric constant
p[t] = p[t] 10 + (int)(a[k] - '0');
^
foo.cpp:37:14: error: expected ';' before 'x'
x = y + p[k] x;
^
foo.cpp:51:1: error: 'cout' was not declared in this scope
cout << i << endl;
^
foo.cpp:51:14: error: 'endl' was not declared in this scope
cout << i << endl;
^
foo.cpp:53:1: error: 'cout' was not declared in this scope
cout << i << '/' << j << endl;
^
foo.cpp:53:26: error: 'endl' was not declared in this scope
cout << i << '/' << j << endl;
^
foo.cpp:68:1: error: 'cout' was not declared in this scope
cout << '[' << p[0] << ']'<<endl;
^
foo.cpp:68:29: error: 'endl' was not declared in this scope
cout << '[' << p[0] << ']'<<endl;
^
foo.cpp:84:1: error: 'cout' was not declared in this scope
cout << '[';
^
foo.cpp:107:16: error: 'endl' was not declared in this scope
cout << ']' << endl;
^