Problem prime
User joshua2152
Submission Time 2023-05-05 08:48:21
Score 0
Max Time N/A
Max Memory N/A

Compile Error

prime.cpp: In function ‘int check()’:
prime.cpp:14:9: error: ‘c’ was not declared in this scope
14 | return c;
| ^
prime.cpp:16:11: error: a function-definition is not allowed here before ‘{’ token
16 | int main(){
| ^
prime.cpp:20:1: error: expected ‘}’ at end of input
20 | }
| ^
prime.cpp:5:12: note: to match this ‘{’
5 | int check(){
| ^