Dalikliai

Taškai: 0

Compile: FAIL

dalikliai.cpp:5:7: error: ‘ll’ does not name a type const ll maxN = 3.2e4+10; ^ dalikliai.cpp:7:1: error: ‘ll’ does not name a type ll t; ^ dalikliai.cpp:8:1: error: ‘ll’ does not name a type ll isPrimes[maxN]; ^ dalikliai.cpp:9:8: error: ‘ll’ was not declared in this scope vector<ll> allPrimes; ^ dalikliai.cpp:9:10: error: template argument 1 is invalid vector<ll> allPrimes; ^ dalikliai.cpp:9:10: error: template argument 2 is invalid dalikliai.cpp: In function ‘void sieve()’: dalikliai.cpp:12:5: error: ‘isPrimes’ was not declared in this scope isPrimes[1]=0; ^ dalikliai.cpp:13:9: error: ‘ll’ was not declared in this scope for(ll i = 2; i < maxN; i++)isPrimes[i]=1; ^ dalikliai.cpp:13:19: error: ‘i’ was not declared in this scope for(ll i = 2; i < maxN; i++)isPrimes[i]=1; ^ dalikliai.cpp:13:23: error: ‘maxN’ was not declared in this scope for(ll i = 2; i < maxN; i++)isPrimes[i]=1; ^ dalikliai.cpp:15:9: error: ‘ll’ was not declared in this scope for(ll i = 2; i*i < maxN; i++) ^ dalikliai.cpp:15:19: error: ‘i’ was not declared in this scope for(ll i = 2; i*i < maxN; i++) ^ dalikliai.cpp:15:25: error: ‘maxN’ was not declared in this scope for(ll i = 2; i*i < maxN; i++) ^ dalikliai.cpp:17:20: error: expected ‘;’ before ‘x’ for(ll x = i+i; x <= maxN; x+=i) ^ dalikliai.cpp:17:29: error: ‘x’ was not declared in this scope for(ll x = i+i; x <= maxN; x+=i) ^ dalikliai.cpp:20:9: error: ‘ll’ was not declared in this scope for(ll i = 2; i < maxN ; i++){ ^ dalikliai.cpp:20:19: error: ‘i’ was not declared in this scope for(ll i = 2; i < maxN ; i++){ ^ dalikliai.cpp:20:23: error: ‘maxN’ was not declared in this scope for(ll i = 2; i < maxN ; i++){ ^ dalikliai.cpp:21:34: error: request for member ‘push_back’ in ‘allPrimes’, which is of non-class type ‘int’ if(isPrimes[i])allPrimes.push_back(i); ^ dalikliai.cpp: At global scope: dalikliai.cpp:26:1: error: ‘ll’ does not name a type ll getPrimes(ll a){ ^ dalikliai.cpp: In function ‘int main()’: dalikliai.cpp:47:10: error: ‘t’ was not declared in this scope cin>>t; ^ dalikliai.cpp:53:9: error: expected ‘(’ before ‘ll’ ll aa, bb; ^ dalikliai.cpp:54:14: error: ‘aa’ was not declared in this scope cin>>aa>>bb; ^ dalikliai.cpp:54:18: error: ‘bb’ was not declared in this scope cin>>aa>>bb; ^ dalikliai.cpp:55:9: error: ‘ll’ was not declared in this scope ll bestV=0, best=0; ^ dalikliai.cpp:56:16: error: expected ‘;’ before ‘i’ for(ll i = aa; i <= bb; i++){ ^ dalikliai.cpp:56:24: error: ‘i’ was not declared in this scope for(ll i = aa; i <= bb; i++){ ^ dalikliai.cpp:57:16: error: expected ‘;’ before ‘primes’ ll primes=getPrimes(i); ^ dalikliai.cpp:58:16: error: ‘primes’ was not declared in this scope if(primes>bestV){ ^ dalikliai.cpp:58:23: error: ‘bestV’ was not declared in this scope if(primes>bestV){ ^ dalikliai.cpp:60:17: error: ‘best’ was not declared in this scope best=i; ^ dalikliai.cpp:63:15: error: ‘best’ was not declared in this scope cout<<best<<" "<<bestV; ^ dalikliai.cpp:63:26: error: ‘bestV’ was not declared in this scope cout<<best<<" "<<bestV; ^

nr.resulttimemessage