Borderou de evaluare (job #2808671)
Utilizator | Data | 25 noiembrie 2021 13:40:50 | |
---|---|---|---|
Problema | Magic4 | Status | done |
Runda | Arhiva de probleme | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp: In function 'void shift(int, int)':
main.cpp:9:32: warning: suggest parentheses around '+' inside '<<' [-Wparentheses]
9 | return (x&((1<<y)-1))<<(16-y)+(x>>y);
| ~~~~~~^~~~~~~
main.cpp:9:24: error: return-statement with a value, in function returning 'void' [-fpermissive]
9 | return (x&((1<<y)-1))<<(16-y)+(x>>y);
| ~~~~~~~~~~~~~~^~~~~~~~~~~~~~~
main.cpp: In function 'int main()':
main.cpp:16:24: error: invalid operands of types 'int' and 'void' to binary 'operator^'
16 | cout << (temp=(mask^shift(i,accum))) << '\n';
| ~~~~^~~~~~~~~~~~~~~
| | |
| int void
main.cpp:19:15: error: void value not ignored as it ought to be
19 | mask=shift(mask,temp);
| ~~~~~^~~~~~~~~~~
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !