// Example program
#include <iostream>
#include <string>
#include <limits>
using namespace std;
int main()
{
cout<<"The sizeof(char) is: "<<numeric_limits<char>::min();
cout<<"\nThe sizeof(short) is: "<<sizeof(short);
cout<<"\nThe sizeof(int) is: "<<sizeof(int);
cout<<"\nThe sizeof(long) is: "<<sizeof(long);
cout<<"\nThe sizeof(long long) is: "<<sizeof(long long);
cout<<"\nThe sizeof(float) is: "<<sizeof(float);
cout<<"\nThe sizeof(double) is: "<<sizeof(double);
cout<<"\nThe sizeof(long double) is: "<<sizeof(long double);
cout<<"\nThe sizeof(bool) is: "<<sizeof(bool);
}
Ly8gRXhhbXBsZSBwcm9ncmFtCiNpbmNsdWRlIDxpb3N0cmVhbT4KI2luY2x1ZGUgPHN0cmluZz4KI2luY2x1ZGUgPGxpbWl0cz4KdXNpbmcgbmFtZXNwYWNlIHN0ZDsKCmludCBtYWluKCkKewpjb3V0PDwiVGhlIHNpemVvZihjaGFyKSBpczogIjw8bnVtZXJpY19saW1pdHM8Y2hhcj46Om1pbigpOwpjb3V0PDwiXG5UaGUgc2l6ZW9mKHNob3J0KSBpczogIjw8c2l6ZW9mKHNob3J0KTsKY291dDw8IlxuVGhlIHNpemVvZihpbnQpIGlzOiAiPDxzaXplb2YoaW50KTsKY291dDw8IlxuVGhlIHNpemVvZihsb25nKSBpczogIjw8c2l6ZW9mKGxvbmcpOwpjb3V0PDwiXG5UaGUgc2l6ZW9mKGxvbmcgbG9uZykgaXM6ICI8PHNpemVvZihsb25nIGxvbmcpOwpjb3V0PDwiXG5UaGUgc2l6ZW9mKGZsb2F0KSBpczogIjw8c2l6ZW9mKGZsb2F0KTsKY291dDw8IlxuVGhlIHNpemVvZihkb3VibGUpIGlzOiAiPDxzaXplb2YoZG91YmxlKTsKY291dDw8IlxuVGhlIHNpemVvZihsb25nIGRvdWJsZSkgaXM6ICI8PHNpemVvZihsb25nIGRvdWJsZSk7CmNvdXQ8PCJcblRoZSBzaXplb2YoYm9vbCkgaXM6ICI8PHNpemVvZihib29sKTsKfQo=
Main.java:2: error: illegal character: '#'
#include <iostream>
^
Main.java:2: error: class, interface, or enum expected
#include <iostream>
^
Main.java:3: error: illegal character: '#'
#include <string>
^
Main.java:4: error: illegal character: '#'
#include <limits>
^
Main.java:7: error: class, interface, or enum expected
int main()
^
Main.java:10: error: class, interface, or enum expected
cout<<"\nThe sizeof(short) is: "<<sizeof(short);
^
Main.java:11: error: class, interface, or enum expected
cout<<"\nThe sizeof(int) is: "<<sizeof(int);
^
Main.java:12: error: class, interface, or enum expected
cout<<"\nThe sizeof(long) is: "<<sizeof(long);
^
Main.java:13: error: class, interface, or enum expected
cout<<"\nThe sizeof(long long) is: "<<sizeof(long long);
^
Main.java:14: error: class, interface, or enum expected
cout<<"\nThe sizeof(float) is: "<<sizeof(float);
^
Main.java:15: error: class, interface, or enum expected
cout<<"\nThe sizeof(double) is: "<<sizeof(double);
^
Main.java:16: error: class, interface, or enum expected
cout<<"\nThe sizeof(long double) is: "<<sizeof(long double);
^
Main.java:17: error: class, interface, or enum expected
cout<<"\nThe sizeof(bool) is: "<<sizeof(bool);
^
Main.java:18: error: class, interface, or enum expected
}
^
14 errors