#include #include /** * A program that has 3 runtime problems * **/ /** * Stack smasher * **/ void smashing() { int aa[10]; for (int i = 0; i < 20; i++) { aa[i] = i; } } int main(int argc, char const *argv[]) { int strt = atoi(argv[1]); int aa[strt]; smashing(); for (int i = 0; i < 1000; i++) { printf("%d %d\n", i, aa[i]); } return 0; }