Main.cc: In function ‘int main()’:
Main.cc:5:48: error: a function-definition is not allowed here before ‘{’ token
void readInputData(int &N, std::string &s) {
^
Main.cc:9:44: error: a function-definition is not allowed here before ‘{’ token
int calculateSum( int N, std::string s){
^
Main.cc:40:16: error: a function-definition is not allowed here before ‘{’ token
int main() {
^
Main.cc:51:1: error: expected ‘}’ at end of input
}
^