stone.cpp:21:2: error: expected initializer before 'int'
stone.cpp:23:7: error: expected constructor, destructor, or type conversion before '(' token
stone.cpp:24:2: error: expected unqualified-id before 'for'
stone.cpp:24:10: error: 'i' does not name a type
stone.cpp:24:17: error: 'i' does not name a type
stone.cpp:29:2: error: 'n' does not name a type
stone.cpp:30:2: error: expected unqualified-id before 'for'
stone.cpp:30:10: error: 'i' does not name a type
stone.cpp:30:15: error: 'i' does not name a type
stone.cpp:31:12: error: 'n' was not declared in this scope
stone.cpp:32:2: error: 'f' does not name a type
stone.cpp:33:2: error: expected unqualified-id before 'for'
stone.cpp:33:10: error: 'i' does not name a type
stone.cpp:33:15: error: 'i' does not name a type
stone.cpp:41:2: error: expected unqualified-id before 'for'
stone.cpp:41:10: error: 'i' does not name a type
stone.cpp:41:15: error: 'i' does not name a type
stone.cpp:45:2: error: expected unqualified-id before 'if'
stone.cpp:46:2: error: expected unqualified-id before 'else'
stone.cpp:47:2: error: expected unqualified-id before 'return'
stone.cpp:48:1: error: expected declaration before '}' token