Borderou de evaluare (job #785818)
Utilizator |
|
IP | ascuns |
---|---|---|---|
Problemă | Țopăilă (clasa a 5-a) | Compilator | cpp-32 |
Rundă | Arhiva de probleme | Status | evaluat |
Dată | 11 sept. 2024 10:38:01 | Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp: In function 'int main()':
main.cpp:12:5: error: 'cin' was not declared in this scope
12 | cin >> t;
| ^~~
main.cpp:3:1: note: 'std::cin' is defined in header '<iostream>'; did you forget to '#include <iostream>'?
2 | #include <cmath>
+++ |+#include <iostream>
3 |
main.cpp:16:18: warning: suggest parentheses around comparison in operand of '&' [-Wparentheses]
16 | if(x & 2 == abs(A-B) % 2)
| ~~^~~~~~~~~~~~~~~