Borderou de evaluare (job #780369)

Utilizator avatar NataliaJantea Jantea Natalia NataliaJantea IP ascuns
Problemă Piramide (clasa a 5-a) Compilator cpp-32
Rundă Arhiva de probleme Status evaluat
Dată 20 iun. 2024 17:51:05 Scor 58

Raport evaluator

Compilare: main.cpp: In function 'int main()': main.cpp:21:19: warning: 'j' may be used uninitialized [-Wmaybe-uninitialized] 21 | while (v[j] <= tot) | ~~~^ main.cpp:8:106: note: 'j' was declared here 8 | long long n, x, k, a = 0, gasit = 0, p = 0, cp, nefol, tot = 0, baza = 2, albe = 0, max = 0, pir, c, j; | ^ In file included from /usr/lib/gcc/i686-pc-linux-gnu/13/include/g++-v13/istream:41, from /usr/lib/gcc/i686-pc-linux-gnu/13/include/g++-v13/fstream:40, from main.cpp:1: In member function 'std::basic_ostream<_CharT, _Traits>::__ostream_type& std::basic_ostream<_CharT, _Traits>::operator<<(long long int) [with _CharT = char; _Traits = std::char_traits<char>]', inlined from 'int main()' at main.cpp:48:11: /usr/lib/gcc/i686-pc-linux-gnu/13/include/g++-v13/ostream:204:25: warning: 'pir' may be used uninitialized [-Wmaybe-uninitialized] 204 | { return _M_insert(__n); } | ~~~~~~~~~^~~~~ main.cpp: In function 'int main()': main.cpp:8:98: note: 'pir' was declared here 8 | long long n, x, k, a = 0, gasit = 0, p = 0, cp, nefol, tot = 0, baza = 2, albe = 0, max = 0, pir, c, j; | ^~~
Test Timp execuție Memorie folosită Mesaj Punctaj/test
1 1 ms 507 kb a) OK; b) OK; c) OK d) linie incorecta 6
2 1 ms 507 kb a) OK; b) OK; c) OK d) linie incorecta 6
3 1 ms 245 kb a) OK; b) OK; c) OK d) linie incorecta 6
4 1 ms 266 kb OK 10
5 1 ms 249 kb a) OK; b) OK; c) OK d) linie incorecta 6
6 8 ms 245 kb a) OK; b) OK; c) OK d) linie incorecta 6
7 1 ms 249 kb a) OK; b) OK; c) OK d) linie incorecta 6
8 2 ms 118 kb a) OK; b) OK; c) OK d) linie incorecta 6
9 52 ms 643 kb Killed by Signal 11 0
10 1 ms 245 kb a) OK; b) OK; c) OK d) linie incorecta 6
Punctaj total 58