← All problemsSign in

Code Stats

Josiah is just beginning to program in C++. He wants to know some statistics about his code: the number of times certain keywords or identifiers appear. Given a piece of text acting like a program, how many different types of tokens appear? You must count the occurrences of the following: * int * bool * void * long * string * return * ident: An valid identifier. It must start with an underscore

HINT LADDERno hints yet
L1 Observation
L2 Technique
L3 Approach
L4 Pseudo-code
🔒
L5 Full solution
L5 unlocks only if you insist twice
solution.cppC++17

CodeSearch Tutor

Hints, not spoilers — it won’t hand over the full solution unless you insist.

voice by Sarvam AI

Sign in to chat with the tutor and save your progress.

Sign in to start