Pagini recente » Borderou de evaluare (job #1823698) | Borderou de evaluare (job #2748642) | Borderou de evaluare (job #2611786) | Borderou de evaluare (job #954026) | Borderou de evaluare (job #3223689)
Borderou de evaluare (job #3223689)
Raport evaluator
Compilare:
main.cpp: In function 'int main()':
main.cpp:20:21: warning: unused variable 'bpang' [-Wunused-variable]
20 | int n, ang = 0, bpang;
| ^~~~~
In file included from /usr/include/c++/12.2.1/iostream:39,
from main.cpp:1:
In member function 'std::basic_ostream<_CharT, _Traits>::__ostream_type& std::basic_ostream<_CharT, _Traits>::operator<<(double) [with _CharT = char; _Traits = std::char_traits<char>]',
inlined from 'int main()' at main.cpp:91:13:
/usr/include/c++/12.2.1/ostream:221:25: warning: 'res' may be used uninitialized [-Wmaybe-uninitialized]
221 | { return _M_insert(__f); }
| ~~~~~~~~~^~~~~
main.cpp: In function 'int main()':
main.cpp:71:12: note: 'res' was declared here
71 | double res;
| ^~~
main.cpp:72:5: warning: 'bpcmd' may be used uninitialized [-Wmaybe-uninitialized]
72 | switch(bpcmd){
| ^~~~~~
main.cpp:19:10: note: 'bpcmd' was declared here
19 | char bpcmd;
| ^~~~~
main.cpp:81:44: warning: 'bpposy' may be used uninitialized [-Wmaybe-uninitialized]
81 | double dx = bpposx - posx, dy = bpposy - posy;
| ^~
main.cpp:18:40: note: 'bpposy' was declared here
18 | double posx = 0, posy = 0, bpposx, bpposy, coefy = 0, coefx = 1;
| ^~~~~~
main.cpp:81:24: warning: 'bpposx' may be used uninitialized [-Wmaybe-uninitialized]
81 | double dx = bpposx - posx, dy = bpposy - posy;
| ^~
main.cpp:18:32: note: 'bpposx' was declared here
18 | double posx = 0, posy = 0, bpposx, bpposy, coefy = 0, coefx = 1;
| ^~~~~~
Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
1 | 1ms | 303kb | Incorect | 0 |
Punctaj total | 0 |