Problem nprime2
User Informatics271
Submission Time 2026-08-19 15:33:57
Score 0
Max Time N/A
Max Memory N/A

Compile Error

nprime2.cpp: In function ‘int main()’:
nprime2.cpp:8:5: error: expected ‘(’ before ‘N’
8 | if N==1:cout<<2<<'\n';
| ^
| (
nprime2.cpp:9:2: error: ‘else’ without a previous ‘if’
9 | else if N==2:cout<<3<<'\n';
| ^~~~
nprime2.cpp:9:10: error: expected ‘(’ before ‘N’
9 | else if N==2:cout<<3<<'\n';
| ^
| (