Borderou de evaluare (job #793381)
Utilizator |
|
IP | ascuns |
---|---|---|---|
Problemă | Bravo, ai şir! (Clasa a 6-a) | Compilator | cpp-32 |
Rundă | Arhiva de probleme | Status | evaluat |
Dată | 7 nov. 2024 10:24:22 | Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp: In function 'int minOperationsToGCD(int, int)':
main.cpp:58:46: error: 'INT_MAX' was not declared in this scope
58 | return (gcd(num, X) == X) ? operations : INT_MAX;
| ^~~~~~~
main.cpp:7:1: note: 'INT_MAX' is defined in header '<climits>'; did you forget to '#include <climits>'?
6 | #include <algorithm>
+++ |+#include <climits>
7 | using namespace std;
main.cpp: In function 'int main()':
main.cpp:73:30: error: expected '}' at end of input
73 | infile >> queries[i];
| ^
main.cpp:72:33: note: to match this '{'
72 | for (int i = 0; i < M; ++i) {
| ^
main.cpp:73:30: error: expected '}' at end of input
73 | infile >> queries[i];
| ^
main.cpp:61:12: note: to match this '{'
61 | int main() {
| ^