Caso # | Resultado | Tiempo | Memoria |
---|---|---|---|
#1 |
Error de compilación
main.cpp:18:1: error: no template named 'vector' vector<int> countingsort_by_digit_non_negatives(vector<int> &cards, int& power_of_ten){ ^ main.cpp:18:49: error: use of undeclared identifier 'vector' vector<int> countingsort_by_digit_non_negatives(vector<int> &cards, int& power_of_ten){ ^ main.cpp:18:59: error: expected '(' for function-style cast or type construction vector<int> countingsort_by_digit_non_negatives(vector<int> &cards, int& power_of_ten){ ~~~^ main.cpp:18:62: error: use of undeclared identifier 'cards' vector<int> countingsort_by_digit_non_negatives(vector<int> &cards, int& power_of_ten){ ^ main.cpp:18:72: error: expected '(' for function-style cast or type construction vector<int> countingsort_by_digit_non_negatives(vector<int> &cards, int& power_of_ten){ ~~~^ main.cpp:18:74: error: use of undeclared identifier 'power_of_ten' vector<int> countingsort_by_digit_non_negatives(vector<int> &cards, int& power_of_ten){ ^ main.cpp:18:87: error: expected ';' after top level declarator vector<int> countingsort_by_digit_non_negatives(vector<int> &cards, int& power_of_ten){ ^ ; 7 errors generated. |
||
#2 |
Error de compilación
main.cpp:18:1: error: no template named 'vector' vector<int> countingsort_by_digit_non_negatives(vector<int> &cards, int& power_of_ten){ ^ main.cpp:18:49: error: use of undeclared identifier 'vector' vector<int> countingsort_by_digit_non_negatives(vector<int> &cards, int& power_of_ten){ ^ main.cpp:18:59: error: expected '(' for function-style cast or type construction vector<int> countingsort_by_digit_non_negatives(vector<int> &cards, int& power_of_ten){ ~~~^ main.cpp:18:62: error: use of undeclared identifier 'cards' vector<int> countingsort_by_digit_non_negatives(vector<int> &cards, int& power_of_ten){ ^ main.cpp:18:72: error: expected '(' for function-style cast or type construction vector<int> countingsort_by_digit_non_negatives(vector<int> &cards, int& power_of_ten){ ~~~^ main.cpp:18:74: error: use of undeclared identifier 'power_of_ten' vector<int> countingsort_by_digit_non_negatives(vector<int> &cards, int& power_of_ten){ ^ main.cpp:18:87: error: expected ';' after top level declarator vector<int> countingsort_by_digit_non_negatives(vector<int> &cards, int& power_of_ten){ ^ ; 7 errors generated. |
||
#3 |
Error de compilación
main.cpp:18:1: error: no template named 'vector' vector<int> countingsort_by_digit_non_negatives(vector<int> &cards, int& power_of_ten){ ^ main.cpp:18:49: error: use of undeclared identifier 'vector' vector<int> countingsort_by_digit_non_negatives(vector<int> &cards, int& power_of_ten){ ^ main.cpp:18:59: error: expected '(' for function-style cast or type construction vector<int> countingsort_by_digit_non_negatives(vector<int> &cards, int& power_of_ten){ ~~~^ main.cpp:18:62: error: use of undeclared identifier 'cards' vector<int> countingsort_by_digit_non_negatives(vector<int> &cards, int& power_of_ten){ ^ main.cpp:18:72: error: expected '(' for function-style cast or type construction vector<int> countingsort_by_digit_non_negatives(vector<int> &cards, int& power_of_ten){ ~~~^ main.cpp:18:74: error: use of undeclared identifier 'power_of_ten' vector<int> countingsort_by_digit_non_negatives(vector<int> &cards, int& power_of_ten){ ^ main.cpp:18:87: error: expected ';' after top level declarator vector<int> countingsort_by_digit_non_negatives(vector<int> &cards, int& power_of_ten){ ^ ; 7 errors generated. |
||
#4 |
Error de compilación
main.cpp:18:1: error: no template named 'vector' vector<int> countingsort_by_digit_non_negatives(vector<int> &cards, int& power_of_ten){ ^ main.cpp:18:49: error: use of undeclared identifier 'vector' vector<int> countingsort_by_digit_non_negatives(vector<int> &cards, int& power_of_ten){ ^ main.cpp:18:59: error: expected '(' for function-style cast or type construction vector<int> countingsort_by_digit_non_negatives(vector<int> &cards, int& power_of_ten){ ~~~^ main.cpp:18:62: error: use of undeclared identifier 'cards' vector<int> countingsort_by_digit_non_negatives(vector<int> &cards, int& power_of_ten){ ^ main.cpp:18:72: error: expected '(' for function-style cast or type construction vector<int> countingsort_by_digit_non_negatives(vector<int> &cards, int& power_of_ten){ ~~~^ main.cpp:18:74: error: use of undeclared identifier 'power_of_ten' vector<int> countingsort_by_digit_non_negatives(vector<int> &cards, int& power_of_ten){ ^ main.cpp:18:87: error: expected ';' after top level declarator vector<int> countingsort_by_digit_non_negatives(vector<int> &cards, int& power_of_ten){ ^ ; 7 errors generated. |
||
#5 |
Error de compilación
main.cpp:18:1: error: no template named 'vector' vector<int> countingsort_by_digit_non_negatives(vector<int> &cards, int& power_of_ten){ ^ main.cpp:18:49: error: use of undeclared identifier 'vector' vector<int> countingsort_by_digit_non_negatives(vector<int> &cards, int& power_of_ten){ ^ main.cpp:18:59: error: expected '(' for function-style cast or type construction vector<int> countingsort_by_digit_non_negatives(vector<int> &cards, int& power_of_ten){ ~~~^ main.cpp:18:62: error: use of undeclared identifier 'cards' vector<int> countingsort_by_digit_non_negatives(vector<int> &cards, int& power_of_ten){ ^ main.cpp:18:72: error: expected '(' for function-style cast or type construction vector<int> countingsort_by_digit_non_negatives(vector<int> &cards, int& power_of_ten){ ~~~^ main.cpp:18:74: error: use of undeclared identifier 'power_of_ten' vector<int> countingsort_by_digit_non_negatives(vector<int> &cards, int& power_of_ten){ ^ main.cpp:18:87: error: expected ';' after top level declarator vector<int> countingsort_by_digit_non_negatives(vector<int> &cards, int& power_of_ten){ ^ ; 7 errors generated. |
||
#6 |
Error de compilación
main.cpp:18:1: error: no template named 'vector' vector<int> countingsort_by_digit_non_negatives(vector<int> &cards, int& power_of_ten){ ^ main.cpp:18:49: error: use of undeclared identifier 'vector' vector<int> countingsort_by_digit_non_negatives(vector<int> &cards, int& power_of_ten){ ^ main.cpp:18:59: error: expected '(' for function-style cast or type construction vector<int> countingsort_by_digit_non_negatives(vector<int> &cards, int& power_of_ten){ ~~~^ main.cpp:18:62: error: use of undeclared identifier 'cards' vector<int> countingsort_by_digit_non_negatives(vector<int> &cards, int& power_of_ten){ ^ main.cpp:18:72: error: expected '(' for function-style cast or type construction vector<int> countingsort_by_digit_non_negatives(vector<int> &cards, int& power_of_ten){ ~~~^ main.cpp:18:74: error: use of undeclared identifier 'power_of_ten' vector<int> countingsort_by_digit_non_negatives(vector<int> &cards, int& power_of_ten){ ^ main.cpp:18:87: error: expected ';' after top level declarator vector<int> countingsort_by_digit_non_negatives(vector<int> &cards, int& power_of_ten){ ^ ; 7 errors generated. |
||
#7 |
Error de compilación
main.cpp:18:1: error: no template named 'vector' vector<int> countingsort_by_digit_non_negatives(vector<int> &cards, int& power_of_ten){ ^ main.cpp:18:49: error: use of undeclared identifier 'vector' vector<int> countingsort_by_digit_non_negatives(vector<int> &cards, int& power_of_ten){ ^ main.cpp:18:59: error: expected '(' for function-style cast or type construction vector<int> countingsort_by_digit_non_negatives(vector<int> &cards, int& power_of_ten){ ~~~^ main.cpp:18:62: error: use of undeclared identifier 'cards' vector<int> countingsort_by_digit_non_negatives(vector<int> &cards, int& power_of_ten){ ^ main.cpp:18:72: error: expected '(' for function-style cast or type construction vector<int> countingsort_by_digit_non_negatives(vector<int> &cards, int& power_of_ten){ ~~~^ main.cpp:18:74: error: use of undeclared identifier 'power_of_ten' vector<int> countingsort_by_digit_non_negatives(vector<int> &cards, int& power_of_ten){ ^ main.cpp:18:87: error: expected ';' after top level declarator vector<int> countingsort_by_digit_non_negatives(vector<int> &cards, int& power_of_ten){ ^ ; 7 errors generated. |
||
#8 |
Error de compilación
main.cpp:18:1: error: no template named 'vector' vector<int> countingsort_by_digit_non_negatives(vector<int> &cards, int& power_of_ten){ ^ main.cpp:18:49: error: use of undeclared identifier 'vector' vector<int> countingsort_by_digit_non_negatives(vector<int> &cards, int& power_of_ten){ ^ main.cpp:18:59: error: expected '(' for function-style cast or type construction vector<int> countingsort_by_digit_non_negatives(vector<int> &cards, int& power_of_ten){ ~~~^ main.cpp:18:62: error: use of undeclared identifier 'cards' vector<int> countingsort_by_digit_non_negatives(vector<int> &cards, int& power_of_ten){ ^ main.cpp:18:72: error: expected '(' for function-style cast or type construction vector<int> countingsort_by_digit_non_negatives(vector<int> &cards, int& power_of_ten){ ~~~^ main.cpp:18:74: error: use of undeclared identifier 'power_of_ten' vector<int> countingsort_by_digit_non_negatives(vector<int> &cards, int& power_of_ten){ ^ main.cpp:18:87: error: expected ';' after top level declarator vector<int> countingsort_by_digit_non_negatives(vector<int> &cards, int& power_of_ten){ ^ ; 7 errors generated. |
||
#9 |
Error de compilación
main.cpp:18:1: error: no template named 'vector' vector<int> countingsort_by_digit_non_negatives(vector<int> &cards, int& power_of_ten){ ^ main.cpp:18:49: error: use of undeclared identifier 'vector' vector<int> countingsort_by_digit_non_negatives(vector<int> &cards, int& power_of_ten){ ^ main.cpp:18:59: error: expected '(' for function-style cast or type construction vector<int> countingsort_by_digit_non_negatives(vector<int> &cards, int& power_of_ten){ ~~~^ main.cpp:18:62: error: use of undeclared identifier 'cards' vector<int> countingsort_by_digit_non_negatives(vector<int> &cards, int& power_of_ten){ ^ main.cpp:18:72: error: expected '(' for function-style cast or type construction vector<int> countingsort_by_digit_non_negatives(vector<int> &cards, int& power_of_ten){ ~~~^ main.cpp:18:74: error: use of undeclared identifier 'power_of_ten' vector<int> countingsort_by_digit_non_negatives(vector<int> &cards, int& power_of_ten){ ^ main.cpp:18:87: error: expected ';' after top level declarator vector<int> countingsort_by_digit_non_negatives(vector<int> &cards, int& power_of_ten){ ^ ; 7 errors generated. |
||
#10 |
Error de compilación
main.cpp:18:1: error: no template named 'vector' vector<int> countingsort_by_digit_non_negatives(vector<int> &cards, int& power_of_ten){ ^ main.cpp:18:49: error: use of undeclared identifier 'vector' vector<int> countingsort_by_digit_non_negatives(vector<int> &cards, int& power_of_ten){ ^ main.cpp:18:59: error: expected '(' for function-style cast or type construction vector<int> countingsort_by_digit_non_negatives(vector<int> &cards, int& power_of_ten){ ~~~^ main.cpp:18:62: error: use of undeclared identifier 'cards' vector<int> countingsort_by_digit_non_negatives(vector<int> &cards, int& power_of_ten){ ^ main.cpp:18:72: error: expected '(' for function-style cast or type construction vector<int> countingsort_by_digit_non_negatives(vector<int> &cards, int& power_of_ten){ ~~~^ main.cpp:18:74: error: use of undeclared identifier 'power_of_ten' vector<int> countingsort_by_digit_non_negatives(vector<int> &cards, int& power_of_ten){ ^ main.cpp:18:87: error: expected ';' after top level declarator vector<int> countingsort_by_digit_non_negatives(vector<int> &cards, int& power_of_ten){ ^ ; 7 errors generated. |
||
#11 |
Error de compilación
main.cpp:18:1: error: no template named 'vector' vector<int> countingsort_by_digit_non_negatives(vector<int> &cards, int& power_of_ten){ ^ main.cpp:18:49: error: use of undeclared identifier 'vector' vector<int> countingsort_by_digit_non_negatives(vector<int> &cards, int& power_of_ten){ ^ main.cpp:18:59: error: expected '(' for function-style cast or type construction vector<int> countingsort_by_digit_non_negatives(vector<int> &cards, int& power_of_ten){ ~~~^ main.cpp:18:62: error: use of undeclared identifier 'cards' vector<int> countingsort_by_digit_non_negatives(vector<int> &cards, int& power_of_ten){ ^ main.cpp:18:72: error: expected '(' for function-style cast or type construction vector<int> countingsort_by_digit_non_negatives(vector<int> &cards, int& power_of_ten){ ~~~^ main.cpp:18:74: error: use of undeclared identifier 'power_of_ten' vector<int> countingsort_by_digit_non_negatives(vector<int> &cards, int& power_of_ten){ ^ main.cpp:18:87: error: expected ';' after top level declarator vector<int> countingsort_by_digit_non_negatives(vector<int> &cards, int& power_of_ten){ ^ ; 7 errors generated. |
||
#12 |
Error de compilación
main.cpp:18:1: error: no template named 'vector' vector<int> countingsort_by_digit_non_negatives(vector<int> &cards, int& power_of_ten){ ^ main.cpp:18:49: error: use of undeclared identifier 'vector' vector<int> countingsort_by_digit_non_negatives(vector<int> &cards, int& power_of_ten){ ^ main.cpp:18:59: error: expected '(' for function-style cast or type construction vector<int> countingsort_by_digit_non_negatives(vector<int> &cards, int& power_of_ten){ ~~~^ main.cpp:18:62: error: use of undeclared identifier 'cards' vector<int> countingsort_by_digit_non_negatives(vector<int> &cards, int& power_of_ten){ ^ main.cpp:18:72: error: expected '(' for function-style cast or type construction vector<int> countingsort_by_digit_non_negatives(vector<int> &cards, int& power_of_ten){ ~~~^ main.cpp:18:74: error: use of undeclared identifier 'power_of_ten' vector<int> countingsort_by_digit_non_negatives(vector<int> &cards, int& power_of_ten){ ^ main.cpp:18:87: error: expected ';' after top level declarator vector<int> countingsort_by_digit_non_negatives(vector<int> &cards, int& power_of_ten){ ^ ; 7 errors generated. |
||
#13 |
Error de compilación
main.cpp:18:1: error: no template named 'vector' vector<int> countingsort_by_digit_non_negatives(vector<int> &cards, int& power_of_ten){ ^ main.cpp:18:49: error: use of undeclared identifier 'vector' vector<int> countingsort_by_digit_non_negatives(vector<int> &cards, int& power_of_ten){ ^ main.cpp:18:59: error: expected '(' for function-style cast or type construction vector<int> countingsort_by_digit_non_negatives(vector<int> &cards, int& power_of_ten){ ~~~^ main.cpp:18:62: error: use of undeclared identifier 'cards' vector<int> countingsort_by_digit_non_negatives(vector<int> &cards, int& power_of_ten){ ^ main.cpp:18:72: error: expected '(' for function-style cast or type construction vector<int> countingsort_by_digit_non_negatives(vector<int> &cards, int& power_of_ten){ ~~~^ main.cpp:18:74: error: use of undeclared identifier 'power_of_ten' vector<int> countingsort_by_digit_non_negatives(vector<int> &cards, int& power_of_ten){ ^ main.cpp:18:87: error: expected ';' after top level declarator vector<int> countingsort_by_digit_non_negatives(vector<int> &cards, int& power_of_ten){ ^ ; 7 errors generated. |
||
#14 |
Error de compilación
main.cpp:18:1: error: no template named 'vector' vector<int> countingsort_by_digit_non_negatives(vector<int> &cards, int& power_of_ten){ ^ main.cpp:18:49: error: use of undeclared identifier 'vector' vector<int> countingsort_by_digit_non_negatives(vector<int> &cards, int& power_of_ten){ ^ main.cpp:18:59: error: expected '(' for function-style cast or type construction vector<int> countingsort_by_digit_non_negatives(vector<int> &cards, int& power_of_ten){ ~~~^ main.cpp:18:62: error: use of undeclared identifier 'cards' vector<int> countingsort_by_digit_non_negatives(vector<int> &cards, int& power_of_ten){ ^ main.cpp:18:72: error: expected '(' for function-style cast or type construction vector<int> countingsort_by_digit_non_negatives(vector<int> &cards, int& power_of_ten){ ~~~^ main.cpp:18:74: error: use of undeclared identifier 'power_of_ten' vector<int> countingsort_by_digit_non_negatives(vector<int> &cards, int& power_of_ten){ ^ main.cpp:18:87: error: expected ';' after top level declarator vector<int> countingsort_by_digit_non_negatives(vector<int> &cards, int& power_of_ten){ ^ ; 7 errors generated. |
||
#15 |
Error de compilación
main.cpp:18:1: error: no template named 'vector' vector<int> countingsort_by_digit_non_negatives(vector<int> &cards, int& power_of_ten){ ^ main.cpp:18:49: error: use of undeclared identifier 'vector' vector<int> countingsort_by_digit_non_negatives(vector<int> &cards, int& power_of_ten){ ^ main.cpp:18:59: error: expected '(' for function-style cast or type construction vector<int> countingsort_by_digit_non_negatives(vector<int> &cards, int& power_of_ten){ ~~~^ main.cpp:18:62: error: use of undeclared identifier 'cards' vector<int> countingsort_by_digit_non_negatives(vector<int> &cards, int& power_of_ten){ ^ main.cpp:18:72: error: expected '(' for function-style cast or type construction vector<int> countingsort_by_digit_non_negatives(vector<int> &cards, int& power_of_ten){ ~~~^ main.cpp:18:74: error: use of undeclared identifier 'power_of_ten' vector<int> countingsort_by_digit_non_negatives(vector<int> &cards, int& power_of_ten){ ^ main.cpp:18:87: error: expected ';' after top level declarator vector<int> countingsort_by_digit_non_negatives(vector<int> &cards, int& power_of_ten){ ^ ; 7 errors generated. |
||
#16 |
Error de compilación
main.cpp:18:1: error: no template named 'vector' vector<int> countingsort_by_digit_non_negatives(vector<int> &cards, int& power_of_ten){ ^ main.cpp:18:49: error: use of undeclared identifier 'vector' vector<int> countingsort_by_digit_non_negatives(vector<int> &cards, int& power_of_ten){ ^ main.cpp:18:59: error: expected '(' for function-style cast or type construction vector<int> countingsort_by_digit_non_negatives(vector<int> &cards, int& power_of_ten){ ~~~^ main.cpp:18:62: error: use of undeclared identifier 'cards' vector<int> countingsort_by_digit_non_negatives(vector<int> &cards, int& power_of_ten){ ^ main.cpp:18:72: error: expected '(' for function-style cast or type construction vector<int> countingsort_by_digit_non_negatives(vector<int> &cards, int& power_of_ten){ ~~~^ main.cpp:18:74: error: use of undeclared identifier 'power_of_ten' vector<int> countingsort_by_digit_non_negatives(vector<int> &cards, int& power_of_ten){ ^ main.cpp:18:87: error: expected ';' after top level declarator vector<int> countingsort_by_digit_non_negatives(vector<int> &cards, int& power_of_ten){ ^ ; 7 errors generated. |
||
#17 |
Error de compilación
main.cpp:18:1: error: no template named 'vector' vector<int> countingsort_by_digit_non_negatives(vector<int> &cards, int& power_of_ten){ ^ main.cpp:18:49: error: use of undeclared identifier 'vector' vector<int> countingsort_by_digit_non_negatives(vector<int> &cards, int& power_of_ten){ ^ main.cpp:18:59: error: expected '(' for function-style cast or type construction vector<int> countingsort_by_digit_non_negatives(vector<int> &cards, int& power_of_ten){ ~~~^ main.cpp:18:62: error: use of undeclared identifier 'cards' vector<int> countingsort_by_digit_non_negatives(vector<int> &cards, int& power_of_ten){ ^ main.cpp:18:72: error: expected '(' for function-style cast or type construction vector<int> countingsort_by_digit_non_negatives(vector<int> &cards, int& power_of_ten){ ~~~^ main.cpp:18:74: error: use of undeclared identifier 'power_of_ten' vector<int> countingsort_by_digit_non_negatives(vector<int> &cards, int& power_of_ten){ ^ main.cpp:18:87: error: expected ';' after top level declarator vector<int> countingsort_by_digit_non_negatives(vector<int> &cards, int& power_of_ten){ ^ ; 7 errors generated. |
||
#18 |
Error de compilación
main.cpp:18:1: error: no template named 'vector' vector<int> countingsort_by_digit_non_negatives(vector<int> &cards, int& power_of_ten){ ^ main.cpp:18:49: error: use of undeclared identifier 'vector' vector<int> countingsort_by_digit_non_negatives(vector<int> &cards, int& power_of_ten){ ^ main.cpp:18:59: error: expected '(' for function-style cast or type construction vector<int> countingsort_by_digit_non_negatives(vector<int> &cards, int& power_of_ten){ ~~~^ main.cpp:18:62: error: use of undeclared identifier 'cards' vector<int> countingsort_by_digit_non_negatives(vector<int> &cards, int& power_of_ten){ ^ main.cpp:18:72: error: expected '(' for function-style cast or type construction vector<int> countingsort_by_digit_non_negatives(vector<int> &cards, int& power_of_ten){ ~~~^ main.cpp:18:74: error: use of undeclared identifier 'power_of_ten' vector<int> countingsort_by_digit_non_negatives(vector<int> &cards, int& power_of_ten){ ^ main.cpp:18:87: error: expected ';' after top level declarator vector<int> countingsort_by_digit_non_negatives(vector<int> &cards, int& power_of_ten){ ^ ; 7 errors generated. |
||
#19 |
Error de compilación
main.cpp:18:1: error: no template named 'vector' vector<int> countingsort_by_digit_non_negatives(vector<int> &cards, int& power_of_ten){ ^ main.cpp:18:49: error: use of undeclared identifier 'vector' vector<int> countingsort_by_digit_non_negatives(vector<int> &cards, int& power_of_ten){ ^ main.cpp:18:59: error: expected '(' for function-style cast or type construction vector<int> countingsort_by_digit_non_negatives(vector<int> &cards, int& power_of_ten){ ~~~^ main.cpp:18:62: error: use of undeclared identifier 'cards' vector<int> countingsort_by_digit_non_negatives(vector<int> &cards, int& power_of_ten){ ^ main.cpp:18:72: error: expected '(' for function-style cast or type construction vector<int> countingsort_by_digit_non_negatives(vector<int> &cards, int& power_of_ten){ ~~~^ main.cpp:18:74: error: use of undeclared identifier 'power_of_ten' vector<int> countingsort_by_digit_non_negatives(vector<int> &cards, int& power_of_ten){ ^ main.cpp:18:87: error: expected ';' after top level declarator vector<int> countingsort_by_digit_non_negatives(vector<int> &cards, int& power_of_ten){ ^ ; 7 errors generated. |
||
#20 |
Error de compilación
main.cpp:18:1: error: no template named 'vector' vector<int> countingsort_by_digit_non_negatives(vector<int> &cards, int& power_of_ten){ ^ main.cpp:18:49: error: use of undeclared identifier 'vector' vector<int> countingsort_by_digit_non_negatives(vector<int> &cards, int& power_of_ten){ ^ main.cpp:18:59: error: expected '(' for function-style cast or type construction vector<int> countingsort_by_digit_non_negatives(vector<int> &cards, int& power_of_ten){ ~~~^ main.cpp:18:62: error: use of undeclared identifier 'cards' vector<int> countingsort_by_digit_non_negatives(vector<int> &cards, int& power_of_ten){ ^ main.cpp:18:72: error: expected '(' for function-style cast or type construction vector<int> countingsort_by_digit_non_negatives(vector<int> &cards, int& power_of_ten){ ~~~^ main.cpp:18:74: error: use of undeclared identifier 'power_of_ten' vector<int> countingsort_by_digit_non_negatives(vector<int> &cards, int& power_of_ten){ ^ main.cpp:18:87: error: expected ';' after top level declarator vector<int> countingsort_by_digit_non_negatives(vector<int> &cards, int& power_of_ten){ ^ ; 7 errors generated. |
||
#21 |
Error de compilación
main.cpp:18:1: error: no template named 'vector' vector<int> countingsort_by_digit_non_negatives(vector<int> &cards, int& power_of_ten){ ^ main.cpp:18:49: error: use of undeclared identifier 'vector' vector<int> countingsort_by_digit_non_negatives(vector<int> &cards, int& power_of_ten){ ^ main.cpp:18:59: error: expected '(' for function-style cast or type construction vector<int> countingsort_by_digit_non_negatives(vector<int> &cards, int& power_of_ten){ ~~~^ main.cpp:18:62: error: use of undeclared identifier 'cards' vector<int> countingsort_by_digit_non_negatives(vector<int> &cards, int& power_of_ten){ ^ main.cpp:18:72: error: expected '(' for function-style cast or type construction vector<int> countingsort_by_digit_non_negatives(vector<int> &cards, int& power_of_ten){ ~~~^ main.cpp:18:74: error: use of undeclared identifier 'power_of_ten' vector<int> countingsort_by_digit_non_negatives(vector<int> &cards, int& power_of_ten){ ^ main.cpp:18:87: error: expected ';' after top level declarator vector<int> countingsort_by_digit_non_negatives(vector<int> &cards, int& power_of_ten){ ^ ; 7 errors generated. |
||
#22 |
Error de compilación
main.cpp:18:1: error: no template named 'vector' vector<int> countingsort_by_digit_non_negatives(vector<int> &cards, int& power_of_ten){ ^ main.cpp:18:49: error: use of undeclared identifier 'vector' vector<int> countingsort_by_digit_non_negatives(vector<int> &cards, int& power_of_ten){ ^ main.cpp:18:59: error: expected '(' for function-style cast or type construction vector<int> countingsort_by_digit_non_negatives(vector<int> &cards, int& power_of_ten){ ~~~^ main.cpp:18:62: error: use of undeclared identifier 'cards' vector<int> countingsort_by_digit_non_negatives(vector<int> &cards, int& power_of_ten){ ^ main.cpp:18:72: error: expected '(' for function-style cast or type construction vector<int> countingsort_by_digit_non_negatives(vector<int> &cards, int& power_of_ten){ ~~~^ main.cpp:18:74: error: use of undeclared identifier 'power_of_ten' vector<int> countingsort_by_digit_non_negatives(vector<int> &cards, int& power_of_ten){ ^ main.cpp:18:87: error: expected ';' after top level declarator vector<int> countingsort_by_digit_non_negatives(vector<int> &cards, int& power_of_ten){ ^ ; 7 errors generated. |
||
#23 |
Error de compilación
main.cpp:18:1: error: no template named 'vector' vector<int> countingsort_by_digit_non_negatives(vector<int> &cards, int& power_of_ten){ ^ main.cpp:18:49: error: use of undeclared identifier 'vector' vector<int> countingsort_by_digit_non_negatives(vector<int> &cards, int& power_of_ten){ ^ main.cpp:18:59: error: expected '(' for function-style cast or type construction vector<int> countingsort_by_digit_non_negatives(vector<int> &cards, int& power_of_ten){ ~~~^ main.cpp:18:62: error: use of undeclared identifier 'cards' vector<int> countingsort_by_digit_non_negatives(vector<int> &cards, int& power_of_ten){ ^ main.cpp:18:72: error: expected '(' for function-style cast or type construction vector<int> countingsort_by_digit_non_negatives(vector<int> &cards, int& power_of_ten){ ~~~^ main.cpp:18:74: error: use of undeclared identifier 'power_of_ten' vector<int> countingsort_by_digit_non_negatives(vector<int> &cards, int& power_of_ten){ ^ main.cpp:18:87: error: expected ';' after top level declarator vector<int> countingsort_by_digit_non_negatives(vector<int> &cards, int& power_of_ten){ ^ ; 7 errors generated. |
||
#24 |
Error de compilación
main.cpp:18:1: error: no template named 'vector' vector<int> countingsort_by_digit_non_negatives(vector<int> &cards, int& power_of_ten){ ^ main.cpp:18:49: error: use of undeclared identifier 'vector' vector<int> countingsort_by_digit_non_negatives(vector<int> &cards, int& power_of_ten){ ^ main.cpp:18:59: error: expected '(' for function-style cast or type construction vector<int> countingsort_by_digit_non_negatives(vector<int> &cards, int& power_of_ten){ ~~~^ main.cpp:18:62: error: use of undeclared identifier 'cards' vector<int> countingsort_by_digit_non_negatives(vector<int> &cards, int& power_of_ten){ ^ main.cpp:18:72: error: expected '(' for function-style cast or type construction vector<int> countingsort_by_digit_non_negatives(vector<int> &cards, int& power_of_ten){ ~~~^ main.cpp:18:74: error: use of undeclared identifier 'power_of_ten' vector<int> countingsort_by_digit_non_negatives(vector<int> &cards, int& power_of_ten){ ^ main.cpp:18:87: error: expected ';' after top level declarator vector<int> countingsort_by_digit_non_negatives(vector<int> &cards, int& power_of_ten){ ^ ; 7 errors generated. |
||
#25 |
Error de compilación
main.cpp:18:1: error: no template named 'vector' vector<int> countingsort_by_digit_non_negatives(vector<int> &cards, int& power_of_ten){ ^ main.cpp:18:49: error: use of undeclared identifier 'vector' vector<int> countingsort_by_digit_non_negatives(vector<int> &cards, int& power_of_ten){ ^ main.cpp:18:59: error: expected '(' for function-style cast or type construction vector<int> countingsort_by_digit_non_negatives(vector<int> &cards, int& power_of_ten){ ~~~^ main.cpp:18:62: error: use of undeclared identifier 'cards' vector<int> countingsort_by_digit_non_negatives(vector<int> &cards, int& power_of_ten){ ^ main.cpp:18:72: error: expected '(' for function-style cast or type construction vector<int> countingsort_by_digit_non_negatives(vector<int> &cards, int& power_of_ten){ ~~~^ main.cpp:18:74: error: use of undeclared identifier 'power_of_ten' vector<int> countingsort_by_digit_non_negatives(vector<int> &cards, int& power_of_ten){ ^ main.cpp:18:87: error: expected ';' after top level declarator vector<int> countingsort_by_digit_non_negatives(vector<int> &cards, int& power_of_ten){ ^ ; 7 errors generated. |
||
#26 |
Error de compilación
main.cpp:18:1: error: no template named 'vector' vector<int> countingsort_by_digit_non_negatives(vector<int> &cards, int& power_of_ten){ ^ main.cpp:18:49: error: use of undeclared identifier 'vector' vector<int> countingsort_by_digit_non_negatives(vector<int> &cards, int& power_of_ten){ ^ main.cpp:18:59: error: expected '(' for function-style cast or type construction vector<int> countingsort_by_digit_non_negatives(vector<int> &cards, int& power_of_ten){ ~~~^ main.cpp:18:62: error: use of undeclared identifier 'cards' vector<int> countingsort_by_digit_non_negatives(vector<int> &cards, int& power_of_ten){ ^ main.cpp:18:72: error: expected '(' for function-style cast or type construction vector<int> countingsort_by_digit_non_negatives(vector<int> &cards, int& power_of_ten){ ~~~^ main.cpp:18:74: error: use of undeclared identifier 'power_of_ten' vector<int> countingsort_by_digit_non_negatives(vector<int> &cards, int& power_of_ten){ ^ main.cpp:18:87: error: expected ';' after top level declarator vector<int> countingsort_by_digit_non_negatives(vector<int> &cards, int& power_of_ten){ ^ ; 7 errors generated. |
||
#27 |
Error de compilación
main.cpp:18:1: error: no template named 'vector' vector<int> countingsort_by_digit_non_negatives(vector<int> &cards, int& power_of_ten){ ^ main.cpp:18:49: error: use of undeclared identifier 'vector' vector<int> countingsort_by_digit_non_negatives(vector<int> &cards, int& power_of_ten){ ^ main.cpp:18:59: error: expected '(' for function-style cast or type construction vector<int> countingsort_by_digit_non_negatives(vector<int> &cards, int& power_of_ten){ ~~~^ main.cpp:18:62: error: use of undeclared identifier 'cards' vector<int> countingsort_by_digit_non_negatives(vector<int> &cards, int& power_of_ten){ ^ main.cpp:18:72: error: expected '(' for function-style cast or type construction vector<int> countingsort_by_digit_non_negatives(vector<int> &cards, int& power_of_ten){ ~~~^ main.cpp:18:74: error: use of undeclared identifier 'power_of_ten' vector<int> countingsort_by_digit_non_negatives(vector<int> &cards, int& power_of_ten){ ^ main.cpp:18:87: error: expected ';' after top level declarator vector<int> countingsort_by_digit_non_negatives(vector<int> &cards, int& power_of_ten){ ^ ; 7 errors generated. |
// // Created by danie on 12/13/2021. // #include<iostream> #include "algorithm" #define fast_io ios_base::sync_with_stdio(false); cin.tie(NULL); using namespace std; int get_ith_digit(int num,int i){ for (int j = 0; j < i; j++){ num/=10; } return num % 10; } vector<int> countingsort_by_digit_non_negatives(vector<int> &cards, int& power_of_ten){ vector<int> sorted_array(cards.size()), staging_array(10); for(int num: cards){ staging_array[(num/power_of_ten) % 10] ++; } for(int i = 1; i <= 9; i++){ staging_array[i] += staging_array[i-1]; } for(int i = cards.size() - 1; i >= 0; i--){ sorted_array[staging_array[((cards[i] / power_of_ten) % 10)] - 1] = cards[i]; staging_array[(cards[i] / power_of_ten) % 10] --; } return sorted_array; } void radix_sort_non_negatives(vector<int> &cards){ int max = 0; for(int num: cards){ if(num < 0){ if (max < -num) max = -num; } else{ if (max < num) max = num; } } int power_ten = 1; for(int d = 0; max > 0; max/=10){ cards = countingsort_by_digit_non_negatives(cards,power_ten); power_ten *= 10; } } int main(){ fast_io // vector<int> cards = {0,1,43653,7437,3473,23,5,352,235}; // radix_sort_non_negatives(cards); vector<int> cards; int n, in; cin>>n; for (int i = 0; i < n; i++){ cin>>in; cards.push_back(in); } radix_sort_non_negatives(cards); for(int num: cards) cout<<num<<' '; }