Borderou de evaluare (job #2864730)
Utilizator | Data | 8 martie 2022 10:22:27 | |
---|---|---|---|
Problema | Castel3 | Status | done |
Runda | Arhiva de probleme | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp: In function 'int main()':
main.cpp:31:5: error: 'cin' was not declared in this scope
31 | cin >> c >> n;
| ^~~
main.cpp:2:1: note: 'std::cin' is defined in header '<iostream>'; did you forget to '#include <iostream>'?
1 | #include <fstream>
+++ |+#include <iostream>
2 | //#include <iostream>
main.cpp:55:9: error: 'cout' was not declared in this scope
55 | cout << cnt;
| ^~~~
main.cpp:55:9: note: 'std::cout' is defined in header '<iostream>'; did you forget to '#include <iostream>'?
main.cpp:57:9: error: 'cout' was not declared in this scope
57 | cout << maxarea;
| ^~~~
main.cpp:57:9: note: 'std::cout' is defined in header '<iostream>'; did you forget to '#include <iostream>'?
main.cpp:59:9: error: 'cout' was not declared in this scope
59 | cout << copi1 << " " << copj1 << " " << copi2 << " " << copj2 << " ";
| ^~~~
main.cpp:59:9: note: 'std::cout' is defined in header '<iostream>'; did you forget to '#include <iostream>'?
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !