Dalikliai
- [1] 2022-02-28 12:56 (0)
- [2] 2022-02-28 13:26 (0)
- [3] 2022-02-28 13:34 (80)
- [4] 2022-02-28 13:34 (80)
- [5] 2022-02-28 13:38 (70)
- [6] 2022-02-28 13:40 (70)
- [7] 2022-03-07 12:46 (0)
- [8] 2022-03-07 12:46 (0)
- [9] 2022-03-07 12:47 (0)
- [10] 2022-03-07 12:47 (0)
- [11] 2022-03-07 12:48 (0)
- [12] 2022-03-07 12:52 (0)
- [13] 2022-03-07 13:07 (0)
- [14] 2022-03-07 13:08 (0)
- [15] 2022-03-18 22:20 (0)
- [16] 2022-03-18 22:21 (70)
- [17] 2022-03-18 22:23 (70)
- [18] 2022-03-18 22:25 (0)
- [19] 2022-03-18 22:25 (0)
- [20] 2022-03-18 22:25 (0)
- [21] 2022-03-18 22:26 (0)
- [22] 2022-03-18 22:27 (0)
- [23] 2022-03-18 22:27 (0)
- [24] 2022-03-18 22:27 (0)
- [25] 2022-03-18 22:28 (0)
- [26] 2022-03-18 22:29 (70)
- [27] 2022-03-18 22:30 (90)
- [28] 2022-04-11 12:19 (100)
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. | result | time | message |
---|