Problem brick
User AltheaZ
Submission Time 2023-06-22 10:51:38
Score 0
Max Time N/A
Max Memory N/A

Compile Error

brick.cpp:14:6: error: stray ‘\357’ in program
14 | if (a.back()<=x){
| ^
brick.cpp:14:7: error: stray ‘\274’ in program
14 | if (a.back()<=x){
| ^
brick.cpp:14:8: error: stray ‘\210’ in program
14 | if (a.back()<=x){
| ^
brick.cpp: In function ‘int main()’:
brick.cpp:14:9: error: expected ‘(’ before ‘a’
14 | if (a.back()<=x){
| ^
| (
brick.cpp:17:27: error: invalid operands of types ‘<unresolved overloaded function type>’ and ‘int’ to binary ‘operator+’
17 | rotate(a.begin(),a.begin+1,a.end());
| ~~~~~~~^~
| | |
| | int
| <unresolved overloaded function type>
brick.cpp:19:29: error: expected ‘;’ before ‘)’ token
19 | for (int j=0;j<a.size(),j++){
| ^