Borderou de evaluare (job #790926)
Utilizator |
|
IP | ascuns |
---|---|---|---|
Problemă | Paranteze 1 (clasa a 6-a) | Compilator | cpp-32 |
Rundă | Arhiva de probleme | Status | evaluat |
Dată | 23 oct. 2024 11:59:43 | Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp:6:14: error: expected initializer before '<<' token
6 | ofstream cout<<("paranteze1.out");
| ^~
main.cpp: In function 'int main()':
main.cpp:12:20: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'unsigned int'} [-Wsign-compare]
12 | for (int i=0; i<s.size(); i++) {
| ~^~~~~~~~~
main.cpp:19:17: error: 'cout' was not declared in this scope
19 | cout<< -1;
| ^~~~
main.cpp:3:1: note: 'std::cout' is defined in header '<iostream>'; did you forget to '#include <iostream>'?
2 | #include <stack>
+++ |+#include <iostream>
3 | using namespace std;
main.cpp:23:17: error: 'cout' was not declared in this scope
23 | cout<< -1;
| ^~~~
main.cpp:23:17: note: 'std::cout' is defined in header '<iostream>'; did you forget to '#include <iostream>'?
main.cpp:31:20: error: 'cout' was not declared in this scope
31 | if(st.empty()) cout<< max;
| ^~~~
main.cpp:31:20: note: 'std::cout' is defined in header '<iostream>'; did you forget to '#include <iostream>'?
main.cpp:32:10: error: 'cout' was not declared in this scope
32 | else cout<< -1;
| ^~~~
main.cpp:32:10: note: 'std::cout' is defined in header '<iostream>'; did you forget to '#include <iostream>'?