Accepted
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 | Accepted Detail | 4ms | 424.0 KiB |
#2 | Accepted Detail | 4ms | 444.0 KiB |
#3 | Accepted Detail | 5ms | 352.0 KiB |
#4 | Accepted Detail | 6ms | 388.0 KiB |
#5 | Accepted Detail | 8ms | 424.0 KiB |
#6 | Accepted Detail | 4ms | 384.0 KiB |
#7 | Accepted Detail | 2ms | 404.0 KiB |
#8 | Accepted Detail | 2ms | 424.0 KiB |
#9 | Accepted Detail | 3ms | 384.0 KiB |
#10 | Accepted Detail | 9ms | 464.0 KiB |
Information
- Submit By
- Type
- Submission
- Homework
- Final Exam for VG101_BackUpTeset
- Language
- C++
- Submit At
- 2020-08-10 12:07:31
- Judged At
- 2020-08-10 15:26:48
- Judged By
- Score
- 100
- Total Time
- 51ms
- Peak Memory
- 464.0 KiB