Borderou de evaluare (job #689842)

Utilizator avatar Trusca-Marian-Daniel Trusca Marian-Daniel Trusca-Marian-Daniel IP ascuns
Problemă Paznici (clasele 11-12) Compilator cpp-32
Rundă cex_11_12_ian_2023 Status evaluat
Dată 23 ian. 2023 16:28:16 Scor 0

Raport evaluator

Eroare de compilare: main.cpp:7:4: error: expected constructor, destructor, or type conversion before '(' token 7 | cin("paznici.in"); | ^ main.cpp: In function 'void citire()': main.cpp:15:9: error: 'cin' was not declared in this scope 15 | cin >> a >> b >> n; | ^~~ main.cpp:5:1: note: 'std::cin' is defined in header '<iostream>'; did you forget to '#include <iostream>'? 4 | #include <stack> +++ |+#include <iostream> 5 | using namespace std; main.cpp: In function 'int main()': main.cpp:34:43: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<std::pair<int, int> >::size_type' {aka 'unsigned int'} [-Wsign-compare] 34 | for (int j = 1; j < intervale[i].size(); j++) | ~~^~~~~~~~~~~~~~~~~~~~~