Borderou de evaluare (job #630974)
Utilizator |
|
IP | ascuns |
---|---|---|---|
Problemă | Pets (clasa a 5-a) | Compilator | cpp-32 |
Rundă | Arhiva de probleme | Status | evaluat |
Dată | 6 feb. 2022 16:00:30 | Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp: In function 'int main()':
main.cpp:7:5: error: 'cin' was not declared in this scope
7 | cin>>p>>n>>t;
| ^~~
main.cpp:2:1: note: 'std::cin' is defined in header '<iostream>'; did you forget to '#include <iostream>'?
1 | #include <fstream>
+++ |+#include <iostream>
2 | using namespace std;
main.cpp:17:18: error: lvalue required as left operand of assignment
17 | if (i!=1 && p=1){
| ~~~~~^~~~
main.cpp: At global scope:
main.cpp:47:1: error: expected declaration before '}' token
47 | }
| ^