Borderou de evaluare (job #789466)
Utilizator |
|
IP | ascuns |
---|---|---|---|
Problemă | Bravo, ai şir! (Clasa a 6-a) | Compilator | cpp-32 |
Rundă | Arhiva de probleme | Status | evaluat |
Dată | 10 oct. 2024 22:03:33 | Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp:5:32: warning: integer overflow in expression of type 'int' results in '-2147483648' [-Woverflow]
5 | vector<int> smallest_prime(MAX + 1);
| ~~~~^~~
main.cpp: In function 'int min_ops(const std::vector<int>&, int)':
main.cpp:33:20: warning: structured bindings only available with '-std=c++17' or '-std=gnu++17' [-Wc++17-extensions]
33 | for (auto& [prime, count] : x_factors) {
| ^
main.cpp: In function 'int main()':
main.cpp:65:17: error: 'gcd' was not declared in this scope
65 | g = gcd(g, v[i]);
| ^~~