static size_t COUNTER = 0; size_t Counter() { return ++COUNTER; } void ResetCounter() { COUNTER = 0; } size_t CounterValue() { return COUNTER; }
Standard input is empty
prog.cpp:2:8: error: ‘size_t’ does not name a type static size_t COUNTER = 0; ^ prog.cpp:4:1: error: ‘size_t’ does not name a type size_t Counter() ^ prog.cpp: In function ‘void ResetCounter()’: prog.cpp:11:2: error: ‘COUNTER’ was not declared in this scope COUNTER = 0; ^ prog.cpp: At global scope: prog.cpp:14:1: error: ‘size_t’ does not name a type size_t CounterValue() ^
Standard output is empty