Borderou de evaluare (job #3148461)

Utilizator Andreir667Radulescu Andrei-Catalin Andreir667 Data 1 septembrie 2023 16:09:11
Problema Zmeu2 Status done
Runda Arhiva de probleme Compilator cpp-64 | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: main.cpp:14:15: error: 'SHRT_MAX' was not declared in this scope 14 | int costMin = SHRT_MAX; | ^~~~~~~~ main.cpp:3:1: note: 'SHRT_MAX' is defined in header '<climits>'; did you forget to '#include <climits>'? 2 | #include <queue> +++ |+#include <climits> 3 | main.cpp: In function 'int main()': main.cpp:25:25: error: 'INT_MAX' was not declared in this scope 25 | mat[i][j] = INT_MAX; | ^~~~~~~ main.cpp:25:25: note: 'INT_MAX' is defined in header '<climits>'; did you forget to '#include <climits>'? main.cpp:49:17: warning: this 'if' clause does not guard... [-Wmisleading-indentation] 49 | if (costNou < costMin and capetePierduteNou <= n - 1) | ^~ main.cpp:56:21: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' 56 | if (i == p) | ^~ Non zero exit status: 1

Ceva nu functioneaza?