Wrong Answer
In file included from /in/main/main.cpp:2:0: /in/cashingmachine.h:11:34: warning: extra ';' [-Wpedantic] int cas[6]={100,50,20,10,5,1};; ^ /in/cashingmachine.h: In member function 'void CashingMachine::change(std::vector<int>, int)': /in/cashingmachine.h:89:4: warning: this 'while' clause does not guard... [-Wmisleading-indentation] while (give+have[scan]*cas[scan]>ch && have[scan]>=0) ^~~~~ /in/cashingmachine.h:91:5: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'while' give+=have[scan]*cas[scan]; ^~~~
# | Status | Time Cost | Memory Cost |
---|---|---|---|
#1 | Wrong Answer Detail | 2ms | 452.0 KiB |
#2 | Wrong Answer Detail | 2ms | 384.0 KiB |
#3 | Wrong Answer Detail | 2ms | 512.0 KiB |
#4 | Wrong Answer Detail | 2ms | 352.0 KiB |
#5 | Wrong Answer Detail | 2ms | 384.0 KiB |
#6 | Wrong Answer Detail | 2ms | 340.0 KiB |
#7 | Wrong Answer Detail | 2ms | 448.0 KiB |
#8 | Accepted Detail | 2ms | 388.0 KiB |
#9 | Wrong Answer Detail | 2ms | 408.0 KiB |
#10 | Wrong Answer Detail | 7ms | 384.0 KiB |
Information
- Submit By
- Type
- Submission
- Homework
- Final Exam
- Language
- C++
- Submit At
- 2020-08-07 17:55:49
- Judged At
- 2020-08-09 18:18:20
- Judged By
- Score
- 10
- Total Time
- 28ms
- Peak Memory
- 512.0 KiB