Problem primepie
User JerryCodebreaker
Submission Time 2024-12-30 09:48:57
Score 0
Max Time N/A
Max Memory N/A

Compile Error

primepie.cpp: In function ‘long long int amountEaten(int)’:
primepie.cpp:18:11: error: ‘i’ was not declared in this scope
18 | if(prime[i]){
| ^
primepie.cpp: At global scope:
primepie.cpp:23:2: error: expected unqualified-id before ‘return’
23 | return s;
| ^~~~~~
primepie.cpp:24:1: error: expected declaration before ‘}’ token
24 | }
| ^