Borderou de evaluare (job #806975)

Utilizator avatar vlad_marinperianu Marin-Perianu Vlad vlad_marinperianu IP ascuns
Problemă Lăcusta (clasa a 10-a) Compilator cpp-32
Rundă Arhiva de probleme Status evaluat
Dată 28 ian. 2025 20:44:35 Scor 0

Raport evaluator

Eroare de compilare: main.cpp:10:41: error: 'SHRT_MAX' was not declared in this scope 10 | int32_t m, n, i, j, s, pd[MAX][2], nr = SHRT_MAX; | ^~~~~~~~ main.cpp:3:1: note: 'SHRT_MAX' is defined in header '<climits>'; this is probably fixable by adding '#include <climits>' 2 | #include <algorithm> +++ |+#include <climits> 3 | #define MAX 102 main.cpp:11:1: error: 'uint16_t' does not name a type 11 | uint16_t v[MAX][2]; | ^~~~~~~~ main.cpp:3:1: note: 'uint16_t' is defined in header '<cstdint>'; this is probably fixable by adding '#include <cstdint>' 2 | #include <algorithm> +++ |+#include <cstdint> 3 | #define MAX 102 main.cpp: In function 'int main()': main.cpp:20:5: error: 'v' was not declared in this scope 20 | v[1][0] = pd[0][0] = pd[MAX-1][0] = pd[0][1] = pd[MAX-1][1] = SHRT_MAX; | ^ main.cpp:20:67: error: 'SHRT_MAX' was not declared in this scope 20 | v[1][0] = pd[0][0] = pd[MAX-1][0] = pd[0][1] = pd[MAX-1][1] = SHRT_MAX; | ^~~~~~~~ main.cpp:20:67: note: 'SHRT_MAX' is defined in header '<climits>'; this is probably fixable by adding '#include <climits>'