Record Detail

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 3ms 380.0 KiB
#2 Wrong Answer Detail 2ms 476.0 KiB
#3 Wrong Answer Detail 3ms 384.0 KiB
#4 Wrong Answer Detail 2ms 416.0 KiB
#5 Wrong Answer Detail 1ms 404.0 KiB
#6 Wrong Answer Detail 2ms 388.0 KiB
#7 Wrong Answer Detail 2ms 384.0 KiB
#8 Wrong Answer Detail 2ms 400.0 KiB
#9 Accepted Detail 1ms 404.0 KiB
#10 Wrong Answer Detail 2ms 384.0 KiB
#11 Wrong Answer Detail 6ms 512.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 21:34:46
Judged By
Score
10
Total Time
31ms
Peak Memory
512.0 KiB