Borderou de evaluare (job #3005349)

Utilizator Razvan48Capatina Razvan Nicolae Razvan48 Data 16 martie 2023 21:44:10
Problema Disconnect Status done
Runda Arhiva de probleme Compilator cpp-64 | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: main.cpp: In function 'void dfs(int, int)': main.cpp:71:23: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare] 71 | for (int i = 0; i < graf[nod].size(); i++) | ~~^~~~~~~~~~~~~~~~~~ main.cpp:81:28: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare] 81 | if (primaAparitie[nod] == liniarizare.size() - 1) | ~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ main.cpp: In function 'void preCalcRMQ()': main.cpp:88:23: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare] 88 | for (int i = 1; i <= liniarizare.size() - 1; i++) | ~~^~~~~~~~~~~~~~~~~~~~~~~~~ main.cpp:94:30: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare] 94 | for (int l = 1; (1 << l) <= liniarizare.size() - 1; l++) | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ main.cpp:96:27: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare] 96 | for (int i = 1; i <= liniarizare.size() - 1 - (1 << l) + 1; i++) | ~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ main.cpp:114:23: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare] 114 | for (int i = 1; i <= liniarizare.size() - 1; i++) | ~~^~~~~~~~~~~~~~~~~~~~~~~~~ main.cpp: In function 'int main()': main.cpp:183:17: error: 'cout' was not declared in this scope 183 | cout << "YES" << '\n'; | ^~~~ main.cpp:3:1: note: 'std::cout' is defined in header '<iostream>'; did you forget to '#include <iostream>'? 2 | #include <vector> +++ |+#include <iostream> 3 | main.cpp:188:17: error: 'cout' was not declared in this scope 188 | cout << "NO" << '\n'; | ^~~~ main.cpp:188:17: note: 'std::cout' is defined in header '<iostream>'; did you forget to '#include <iostream>'? Non zero exit status: 1

Ceva nu functioneaza?