gli errori restituiti dal compilatore non ti sono d'aiuto?
con gcc versione:
i686-apple-darwin8-gcc-4.0.1 (GCC) 4.0.1 (Apple Computer, Inc. build 5367)
si ottiene:
che sono autoesplicanti non trovi?codice:$ g++ -Wall -ansi -pedantic main.cpp main.cpp:5: error: 'x' was not declared in this scope main.cpp:5: error: 'x' was not declared in this scope main.cpp: In function 'int main()': main.cpp:10: error: ISO C++ forbids variable-size array 'square' main.cpp:10: error: ISO C++ forbids variable-size array 'square' main.cpp:15: error: 'printSquare' was not declared in this scope main.cpp:10: warning: unused variable 'square' main.cpp: At global scope: main.cpp:21: error: 'x' was not declared in this scope main.cpp:21: error: 'x' was not declared in this scope main.cpp: In function 'void printTable(int)': main.cpp:25: error: 'table' was not declared in this scope
il tuo compilatore che errori ti restituisce?

