Borderou de evaluare (job #832985)
| Utilizator |
|
IP | ascuns |
|---|---|---|---|
| Problemă | 9div | Compilator | cpp |
| Rundă | Arhiva de probleme | Status | evaluat |
| Dată | 22 aug. 2025 17:29:58 | Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp:12:1: error: expected initializer before 'void'
12 | void CalculatePrimes(int ciurLen)
| ^~~~
main.cpp: In function 'int main()':
main.cpp:34:5: error: 'CalculatePrimes' was not declared in this scope
34 | CalculatePrimes(sqrt(n/2)+1);
| ^~~~~~~~~~~~~~~
main.cpp:38:18: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
38 | for(int i=0;i<primes.size();i++)
| ~^~~~~~~~~~~~~~
main.cpp:41:15: error: 'upper_bound' was not declared in this scope
41 | place=upper_bound(primes.begin(),primes.end(),largest);
| ^~~~~~~~~~~