Borderou de evaluare (job #2597583)

Utilizator LightningShockMarcu Andrei LightningShock Data 11 aprilie 2020 10:56:59
Problema Blat Status done
Runda Fmi No Stress 9 Compilator cpp-64 | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: main.cpp: In function 'int main()': main.cpp:15:27: error: 'INT_MAX' was not declared in this scope int n, m, k, worststud = INT_MAX, beststud = INT_MIN, minstud, maxstud; ^~~~~~~ main.cpp:17:23: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for (size_t i = 0; i < k; i++) ~~^~~ main.cpp:19:24: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for (size_t j = 0; j < m; j++) ~~^~~ main.cpp:25:23: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for (size_t i = 0; i < k; i++) ~~^~~ main.cpp:29:3: error: 'minstud' was not declared in this scope minstud = 0; ^~~~~~~ main.cpp:30:3: error: 'maxstud' was not declared in this scope maxstud = 0; ^~~~~~~ main.cpp:31:24: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for (size_t j = 0; j < n; j++) ~~^~~ main.cpp:35:28: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for (size_t j = m - n; j < m; j++) ~~^~~ main.cpp:40:17: error: 'beststud' was not declared in this scope if (maxstud > beststud) beststud = maxstud; ^~~~~~~~ main.cpp:43:23: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for (size_t j = 0; j < n; j++) ~~^~~ main.cpp:47:27: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for (size_t j = m - n; j < m; j++) ~~^~~ main.cpp:51:41: error: 'beststud' was not declared in this scope fout << best << ' ' << worst << ' ' << beststud << ' ' << worststud; ^~~~~~~~ Non zero exit status: 1

Ceva nu functioneaza?