Borderou de evaluare (job #2858227)

Utilizator Fantastic_Mantudor voicu Fantastic_Man Data 27 februarie 2022 11:49:01
Problema Numinum Status done
Runda Arhiva de probleme Compilator cpp-64 | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: main.cpp: In function 'void solve()': main.cpp:39:15: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<std::pair<int, int> >::size_type' {aka 'long unsigned int'} [-Wsign-compare] 39 | while ( i < d1.size() && i < d2.size() && d1[i] == d2[i] ) | ~~^~~~~~~~~~~ main.cpp:39:32: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<std::pair<int, int> >::size_type' {aka 'long unsigned int'} [-Wsign-compare] 39 | while ( i < d1.size() && i < d2.size() && d1[i] == d2[i] ) | ~~^~~~~~~~~~~ main.cpp:41:12: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<std::pair<int, int> >::size_type' {aka 'long unsigned int'} [-Wsign-compare] 41 | if ( i < d1.size() && i < d2.size() && d1[i].first == d2[i].first ) | ~~^~~~~~~~~~~ main.cpp:41:29: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<std::pair<int, int> >::size_type' {aka 'long unsigned int'} [-Wsign-compare] 41 | if ( i < d1.size() && i < d2.size() && d1[i].first == d2[i].first ) | ~~^~~~~~~~~~~ main.cpp: In function 'int main()': main.cpp:48:5: error: 'cin' was not declared in this scope 48 | cin >> a >> b; | ^~~ main.cpp:4:1: note: 'std::cin' is defined in header '<iostream>'; did you forget to '#include <iostream>'? 3 | #include <algorithm> +++ |+#include <iostream> 4 | using namespace std; main.cpp:49:5: error: 'cout' was not declared in this scope 49 | cout << a + b; | ^~~~ main.cpp:49:5: note: 'std::cout' is defined in header '<iostream>'; did you forget to '#include <iostream>'? Non zero exit status: 1

Ceva nu functioneaza?