Borderou de evaluare (job #3246922)

Utilizator FlaviuuuFlaviu Flaviuuu Data 4 octombrie 2024 19:57:13
Problema Difprim 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:45:5: error: 'cerr' was not declared in this scope 45 | cerr<<primes[st]<<" "; | ^~~~ main.cpp:8:1: note: 'std::cerr' is defined in header '<iostream>'; did you forget to '#include <iostream>'? 7 | #include <set> +++ |+#include <iostream> 8 | using namespace std; main.cpp:50:33: warning: comparison of integer expressions of different signedness: 'long long int' and 'std::vector<long long int>::size_type' {aka 'long unsigned int'} [-Wsign-compare] 50 | while(primes[st] <= b && st < primes.size()) | ~~~^~~~~~~~~~~~~~~ Non zero exit status: 1

Ceva nu functioneaza?