prog.cpp:8:8: error: 'N' was not declared in this scope
int T[ N ];
^
prog.cpp:4:11: error: expected ',' or '...' before numeric constant
#define n 10
^
prog.cpp:9:15: note: in expansion of macro 'n'
int suma( int n )
^
prog.cpp: In function 'int suma(int)':
prog.cpp:13:16: error: 'T' was not declared in this scope
return T[ 0 ];
^
prog.cpp:17:32: error: 'T' was not declared in this scope
return suma( n - 1 ) + T[ n ];
^
prog.cpp: In function 'int main()':
prog.cpp:25:25: error: 'N' was not declared in this scope
for( int i = 0; i < N; i++ )
^
prog.cpp:35:9: error: 'T' was not declared in this scope
T[ i ] = znak * rand() % 100;
^
prog.cpp:40:5: error: expected ';' before 'return'
return 0;
^