Problem nextprime
User blob
Submission Time 2023-12-06 10:29:58
Score 0
Max Time N/A
Max Memory N/A

Compile Error

nextprime.cpp:12:15: error: invalid digit "9" in octal constant
12 | }12/5/23, 7:09 PM C - Next Prime
| ^~
nextprime.cpp: In function ‘int main()’:
nextprime.cpp:5:16: error: ‘x’ was not declared in this scope
5 | for (int i = x/2; i < X*X; i++){
| ^
nextprime.cpp:12:14: error: expected ‘;’ before ‘:’ token
12 | }12/5/23, 7:09 PM C - Next Prime
| ^
| ;
nextprime.cpp:29:58: error: expected ‘}’ at end of input
29 | Print the minimum prime number greater than or equal to X.
| ^
nextprime.cpp:3:11: note: to match this ‘{’
3 | int main(){
| ^