Problem | nprime |
---|---|
User | limmingyao21 |
Submission Time | 2023-07-22 13:47:15 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
nprime.cpp:1:73: error: stray ‘#’ in program
1 | PRIMELVMGECKOHOUSINGRANK4SUMProblemAlgorithmProgram in C++Program in C++#include<iostream . h>intmain (){intn , i , j ,MAX = 100; c i n>>n ;intprime [MAX] ;for( i =0; i<MAX; i++) prime [ i ] = 1;for( i =2; i<MAX; i++)i f( prime [ i ] )i f(n−−==0)break;else for( j = 2∗i ; j<MAX; j+=i )prime [ j ] = 0;cout<<i<<endl ;}
| ^
nprime.cpp:1:244: error: stray ‘\342’ in program
1 | PRIMELVMGECKOHOUSINGRANK4SUMProblemAlgorithmProgram in C++Program in C++#include<iostream . h>intmain (){intn , i , j ,MAX = 100; c i n>>n ;intprime [MAX] ;for( i =0; i<MAX; i++) prime [ i ] = 1;for( i =2; i<MAX; i++)i f( prime [ i ] )i f(n−−==0)break;else for( j = 2∗i ; j<MAX; j+=i )prime [ j ] = 0;cout<<i<<endl ;}
|