Borderou de evaluare (job #2949495)

Utilizator SurtexXGheorghe Robert-Mihai SurtexX Data 30 noiembrie 2022 19:35:56
Problema Retea2 Status done
Runda Arhiva de probleme Compilator cpp-64 | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: main.cpp:6:11: error: variable 'std::ifstream f' has initializer but incomplete type 6 | ifstream f("retea2.in"); | ^ main.cpp:7:11: error: variable 'std::ofstream g' has initializer but incomplete type 7 | ofstream g("retea2.out"); | ^ main.cpp: In function 'double dist(std::pair<int, int>, std::pair<int, int>)': main.cpp:17:18: error: 'pow' was not declared in this scope 17 | return sqrt((pow(p1.first - p2.first, 2)) + pow((p1.second - p2.second), 2)); | ^~~ main.cpp:17:12: error: 'sqrt' was not declared in this scope 17 | return sqrt((pow(p1.first - p2.first, 2)) + pow((p1.second - p2.second), 2)); | ^~~~ main.cpp: In function 'int main()': main.cpp:23:32: error: 'INT_MAX' was not declared in this scope 23 | distCentrala.resize(m + 1, INT_MAX); | ^~~~~~~ main.cpp:3:1: note: 'INT_MAX' is defined in header '<climits>'; did you forget to '#include <climits>'? 2 | #include <vector> +++ |+#include <climits> 3 | main.cpp:55:19: error: 'setprecision' was not declared in this scope 55 | g << fixed << setprecision(6) << distantaTotala; | ^~~~~~~~~~~~ Non zero exit status: 1

Ceva nu functioneaza?