Borderou de evaluare (job #3122414)

Utilizator xDemonstyMatei Haba Ionut xDemonsty Data 18 aprilie 2023 22:24:46
Problema Range minimum query Status done
Runda Arhiva educationala Compilator cpp-64 | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: main.cpp: In function 'int main()': main.cpp:26:5: error: 'cin' was not declared in this scope 26 | cin >> n >> q ; | ^~~ main.cpp:2:1: note: 'std::cin' is defined in header '<iostream>'; did you forget to '#include <iostream>'? 1 | #include <fstream> +++ |+#include <iostream> 2 | main.cpp:58:9: error: 'cout' was not declared in this scope 58 | cout << min ( rmq [ a ] [ y ] , rmq [ b - (1<<y) + 1 ] [ y ]) << '\n'; | ^~~~ main.cpp:58:9: note: 'std::cout' is defined in header '<iostream>'; did you forget to '#include <iostream>'? main.cpp:25:19: warning: unused variable 'm' [-Wunused-variable] 25 | long long n , m ; | ^ main.cpp:39:15: warning: unused variable 'x' [-Wunused-variable] 39 | long long x = log2(n); | ^ Non zero exit status: 1

Ceva nu functioneaza?