Borderou de evaluare (job #2823125)

Utilizator MihaiBunBunget Mihai MihaiBun Data 27 decembrie 2021 08:38:59
Problema Binsearch 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:69:20: warning: comparison of integer expressions of different signedness: 'std::vector<int>::size_type' {aka 'long unsigned int'} and 'int' [-Wsign-compare] 69 | if(u.size()==n) | ~~~~~~~~^~~ main.cpp:70:37: error: 'cout' was not declared in this scope 70 | for(j = 1; j <= n; j++) cout << j << " "; | ^~~~ main.cpp:3:1: note: 'std::cout' is defined in header '<iostream>'; did you forget to '#include <iostream>'? 2 | #include <vector> +++ |+#include <iostream> 3 | using namespace std; main.cpp:72:20: warning: comparison of integer expressions of different signedness: 'std::vector<int>::size_type' {aka 'long unsigned int'} and 'int' [-Wsign-compare] 72 | if(z.size()==n) | ~~~~~~~~^~~ main.cpp:73:37: error: 'cout' was not declared in this scope 73 | for(j = 1; j <= n; j++) cout << n-j+1 << " "; | ^~~~ main.cpp:73:37: note: 'std::cout' is defined in header '<iostream>'; did you forget to '#include <iostream>'? main.cpp:109:17: error: 'cout' was not declared in this scope 109 | cout << a[j] << " "; | ^~~~ main.cpp:109:17: note: 'std::cout' is defined in header '<iostream>'; did you forget to '#include <iostream>'? Non zero exit status: 1

Ceva nu functioneaza?