Borderou de evaluare (job #824238)

Utilizator avatar popescu_george Popescu George popescu_george IP ascuns
Problemă Reconstituire1(clasele 5-6) Compilator cpp-32
Rundă Arhiva de probleme Status evaluat
Dată 17 mai 2025 08:13:17 Scor 0

Raport evaluator

Eroare de compilare: main.cpp: In function 'int main()': main.cpp:11:5: error: 'cin' was not declared in this scope 11 | cin>>s>>i>>r,s<<=1; | ^~~ main.cpp:3:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>' 2 | #include<vector> +++ |+#include <iostream> 3 | using namespace std; main.cpp:24:25: error: 'cout' was not declared in this scope 24 | for(int i=0;i<n;o=0,cout<<b[i].first<<' '<<b[i].second<<'\n',++i); | ^~~~ main.cpp:24:25: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>' main.cpp:25:34: error: 'cout' was not declared in this scope 25 | for(int n=a.size();n;o=0,--n,cout<<a[n].first<<' '<<a[n].second<<'\n'); | ^~~~ main.cpp:25:34: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>' main.cpp:27:9: error: 'cout' was not declared in this scope 27 | cout<<-1; | ^~~~ main.cpp:27:9: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'