Borderou de evaluare (job #3235632)

Utilizator iulia_morariuIulia Morariu iulia_morariu Data 19 iunie 2024 13:43:20
Problema Secv2m 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:29:16: error: 'INT_MAX' was not declared in this scope 29 | int mini = INT_MAX, x1, x2; | ^~~~~~~ main.cpp:5:1: note: 'INT_MAX' is defined in header '<climits>'; did you forget to '#include <climits>'? 4 | #include <queue> +++ |+#include <climits> 5 | //#include <bits/stdc++.h> main.cpp:47:26: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare] 47 | for(int i = 0; i < p.size(); i++){ | ~~^~~~~~~~~~ main.cpp:70:13: error: 'x1' was not declared in this scope; did you mean 'p1'? 70 | x1 = x + sol + 1; | ^~ | p1 main.cpp:71:13: error: 'x2' was not declared in this scope; did you mean 'p2'? 71 | x2 = sol + y + 1; | ^~ | p2 main.cpp:81:12: error: 'x1' was not declared in this scope; did you mean 'x'? 81 | out << x1 << " " << x2 << '\n'; | ^~ | x main.cpp:81:25: error: 'x2' was not declared in this scope; did you mean 'x'? 81 | out << x1 << " " << x2 << '\n'; | ^~ | x Non zero exit status: 1

Ceva nu functioneaza?