Hi, I've this problem. The builder say me "'dati' does not name a type". Why? Ok, it doesn't name a type, but I don't want 'dati' as a type name. dati is variable and its type is a vector. If i do this thing in the main() the compiler build it and the program work perfectly. What's the problem?
You can't write statements like dati.resize(C); outside of a function. If you want to resize the vector when the campione object is created you should put it in the constructor.