Borderou de evaluare (job #2947113)

Utilizator dimi999Dimitriu Andrei dimi999 Data 25 noiembrie 2022 18:39:59
Problema Apm2 Status done
Runda Arhiva Monthly Compilator cpp-64 | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: main.cpp: In function 'void apm()': main.cpp:53:22: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<std::pair<int, std::pair<int, int> > >::size_type' {aka 'long unsigned int'} [-Wsign-compare] 53 | for(int i = 0; i < v.size(); i++) { | ~~^~~~~~~~~~ main.cpp: In function 'int dfs(int, int, int)': main.cpp:72:22: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<std::pair<int, int> >::size_type' {aka 'long unsigned int'} [-Wsign-compare] 72 | for(int i = 0; i < graph[node].size(); i++) { | ~~^~~~~~~~~~~~~~~~~~~~ main.cpp: In function 'int main()': main.cpp:81:15: error: 'cin' was not declared in this scope 81 | int N, M; cin >> N >> M; | ^~~ main.cpp:7:1: note: 'std::cin' is defined in header '<iostream>'; did you forget to '#include <iostream>'? 6 | #include <algorithm> +++ |+#include <iostream> 7 | main.cpp:95:9: error: 'cout' was not declared in this scope 95 | cout << maxi - 1 << '\n'; | ^~~~ main.cpp:95:9: note: 'std::cout' is defined in header '<iostream>'; did you forget to '#include <iostream>'? Non zero exit status: 1

Ceva nu functioneaza?