foo.cpp:1:1: error: 'include' does not name a type
include <iostream> include <cstdio> include <algorithm> include <functional> include <string.h>
^
foo.cpp: In function 'int main()':
foo.cpp:10:1: error: 'cin' was not declared in this scope
cin >> n;
^
foo.cpp:16:1: error: 'cout' was not declared in this scope
cout << 0 << endl;
^
foo.cpp:16:14: error: 'endl' was not declared in this scope
cout << 0 << endl;
^
foo.cpp:24:32: error: expected ';' before 'i'
len += ((c - 1) - (c / 10 - 1))i;
^
foo.cpp:42:1: error: 'cout' was not declared in this scope
cout << d % 10 << endl;
^
foo.cpp:42:19: error: 'endl' was not declared in this scope
cout << d % 10 << endl;
^