Borderou de evaluare (job #2658462)

Utilizator adimiclaus15Miclaus Adrian Stefan adimiclaus15 Data 14 octombrie 2020 00:32:14
Problema Mobs Status done
Runda Arhiva ICPC Compilator cpp-64 | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: main.cpp: In function 'int main()': main.cpp:15:40: error: no type named 'value_type' in 'struct std::greater<int>' priority_queue<int, greater<int>> ma, mb, mc; ^~ main.cpp:15:40: error: template argument 3 is invalid main.cpp:20:20: error: request for member 'push' in 'ma', which is of non-class type 'int' ma.push(x); ^~~~ main.cpp:23:24: error: request for member 'push' in 'mb', which is of non-class type 'int' mb.push(x); ^~~~ main.cpp:25:24: error: request for member 'push' in 'mc', which is of non-class type 'int' mc.push(x); ^~~~ main.cpp:29:19: error: request for member 'empty' in 'ma', which is of non-class type 'int' while(!ma.empty() && !mb.empty()) { ^~~~~ main.cpp:29:34: error: request for member 'empty' in 'mb', which is of non-class type 'int' while(!ma.empty() && !mb.empty()) { ^~~~~ main.cpp:31:16: error: request for member 'pop' in 'ma', which is of non-class type 'int' ma.pop(); ^~~ main.cpp:32:16: error: request for member 'pop' in 'mb', which is of non-class type 'int' mb.pop(); ^~~ main.cpp:34:15: error: request for member 'empty' in 'mb', which is of non-class type 'int' if(mb.empty()) { ^~~~~ main.cpp:35:23: error: request for member 'empty' in 'ma', which is of non-class type 'int' while(!ma.empty()) { ^~~~~ main.cpp:37:20: error: request for member 'pop' in 'ma', which is of non-class type 'int' ma.pop(); ^~~ main.cpp:38:24: error: request for member 'empty' in 'ma', which is of non-class type 'int' if(!ma.empty()) { ^~~~~ main.cpp:39:24: error: request for member 'pop' in 'ma', which is of non-class type 'int' ma.pop(); ^~~ main.cpp:42:23: error: request for member 'size' in 'mc', which is of non-class type 'int' sol += mc.size(); ^~~~ main.cpp:44:23: error: request for member 'empty' in 'mb', which is of non-class type 'int' while(!mb.empty()) { ^~~~~ main.cpp:46:20: error: request for member 'pop' in 'mb', which is of non-class type 'int' mb.pop(); ^~~ Non zero exit status: 1

Ceva nu functioneaza?