Borderou de evaluare (job #3299480)
Raport evaluator
Compilare:
main.cpp: In function 'int main()':
main.cpp:12:22: warning: suggest parentheses around comparison in operand of '&' [-Wparentheses]
12 | if (a!=0 && b==0 &c == 0)
| ~^~~
main.cpp:14:21: warning: suggest parentheses around comparison in operand of '&' [-Wparentheses]
14 | if (a==0 &&b==0 & c==0)
| ~^~~
main.cpp:19:21: warning: suggest parentheses around comparison in operand of '&' [-Wparentheses]
19 | if (a==0 &&b!=0 & c!=0)
| ~^~~
main.cpp:21:29: warning: suggest parentheses around comparison in operand of '&' [-Wparentheses]
21 | if (a!=0 &&b!=0 & c!=0)
| ~^~~
In file included from /usr/include/c++/12.2.1/istream:39,
from /usr/include/c++/12.2.1/sstream:38,
from /usr/include/c++/12.2.1/complex:45,
from /usr/include/c++/12.2.1/ccomplex:39,
from /usr/include/c++/12.2.1/x86_64-pc-linux-gnu/bits/stdc++.h:54,
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:24:14:
/usr/include/c++/12.2.1/ostream:202:25: warning: 'p' may be used uninitialized [-Wmaybe-uninitialized]
202 | { return _M_insert(__n); }
| ~~~~~~~~~^~~~~
main.cpp: In function 'int main()':
main.cpp:7:19: note: 'p' was declared here
7 | long long n,i,p,a,b,c;
| ^
Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
1 | 0ms | 303kb | Incorect | 0 |
Punctaj total | 0 |