Borderou de evaluare (job #2827688)

Utilizator BAlexandruBorgovan Alexandru BAlexandru Data 6 ianuarie 2022 09:47:33
Problema Tigri Status done
Runda Arhiva de probleme Compilator cpp-64 | Vezi sursa
Scor 10

Raport evaluator

Compilare: main.cpp: In member function 'nrMare nrMare::operator*(const nrMare&) const': main.cpp:23:24: warning: iteration 99 invokes undefined behavior [-Waggressive-loop-optimizations] 23 | cif[i] = 0; main.cpp:21:31: note: within this loop 21 | for (int i = 1; i <= nrMaxCif; i++) | ~~^~~~~~~~~~~ main.cpp: In member function 'nrMare nrMare::operator-(const nrMare&) const': main.cpp:23:24: warning: iteration 99 invokes undefined behavior [-Waggressive-loop-optimizations] 23 | cif[i] = 0; main.cpp:21:31: note: within this loop 21 | for (int i = 1; i <= nrMaxCif; i++) | ~~^~~~~~~~~~~ main.cpp: In member function 'nrMare nrMare::operator+(const nrMare&) const': main.cpp:23:24: warning: iteration 99 invokes undefined behavior [-Waggressive-loop-optimizations] 23 | cif[i] = 0; main.cpp:21:31: note: within this loop 21 | for (int i = 1; i <= nrMaxCif; i++) | ~~^~~~~~~~~~~ main.cpp: In function 'void __static_initialization_and_destruction_0(int, int)': main.cpp:23:24: warning: iteration 99 invokes undefined behavior [-Waggressive-loop-optimizations] 23 | cif[i] = 0; main.cpp:21:31: note: within this loop 21 | for (int i = 1; i <= nrMaxCif; i++) | ~~^~~~~~~~~~~ main.cpp:23:24: warning: iteration 99 invokes undefined behavior [-Waggressive-loop-optimizations] 23 | cif[i] = 0; main.cpp:21:31: note: within this loop 21 | for (int i = 1; i <= nrMaxCif; i++) | ~~^~~~~~~~~~~ In constructor 'nrMare::nrMare()', inlined from 'nrMare nrMare::operator+(const nrMare&) const' at main.cpp:54:20, inlined from 'void depositum()' at main.cpp:198:26: main.cpp:23:24: warning: 'void* __builtin_memset(void*, int, long unsigned int)' forming offset [400, 403] is out of the bounds [0, 400] of object 'aux' with type 'nrMare' [-Warray-bounds] 23 | cif[i] = 0; main.cpp: In function 'void depositum()': main.cpp:193:6: note: 'aux' declared here 193 | void depositum() | ^~~~~~~~~ In constructor 'nrMare::nrMare()', inlined from 'void emptum()' at main.cpp:87:20: main.cpp:23:24: warning: 'void* __builtin_memset(void*, int, long unsigned int)' forming offset [400, 403] is out of the bounds [0, 400] of object 'prod' with type 'nrMare' [-Warray-bounds] 23 | cif[i] = 0; main.cpp: In function 'void emptum()': main.cpp:208:12: note: 'prod' declared here 208 | nrMare prod = X * Y; | ^~~~ In constructor 'nrMare::nrMare()', inlined from 'nrMare nrMare::operator+(const nrMare&) const' at main.cpp:54:20, inlined from 'void emptum()' at main.cpp:212:25: main.cpp:23:24: warning: 'void* __builtin_memset(void*, int, long unsigned int)' forming offset [400, 403] is out of the bounds [0, 400] of object 'aux' with type 'nrMare' [-Warray-bounds]
Test Timp executie Memorie folosita Mesaj Punctaj/test
12ms184kbOK10
22ms184kbIncorect0
32ms184kbIncorect0
41ms184kbIncorect0
52ms184kbIncorect0
62ms184kbIncorect0
72ms184kbIncorect0
816ms294kbIncorect0
916ms294kbIncorect0
10134ms471kbIncorect0
Punctaj total10

Ceva nu functioneaza?