Borderou de evaluare (job #3302630)

Utilizator Mihai_OctMihai Octavian Mihai_Oct Data 9 iulie 2025 16:21:45
Problema Expr Status done
Runda Arhiva de probleme Compilator cpp-64 | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: main.cpp: In function 'std::set<int> Diferenta(std::multiset<int>&, std::multiset<int>&)': main.cpp:56:12: error: could not convert 'c' from 'std::multiset<int>' to 'std::set<int>' 56 | return c; | ^ | | | std::multiset<int> main.cpp: In function 'std::multiset<int> ExecutaParanteza()': main.cpp:78:30: error: conversion from 'std::multiset<int>' to non-scalar type 'std::set<int>' requested 78 | set<int> cur = GetMul(); | ~~~~~~^~ main.cpp:80:51: error: invalid initialization of reference of type 'std::multiset<int>&' from expression of type 'std::set<int>' 80 | if(op == '*') ret = Intersectie(ret, cur); | ^~~ main.cpp:58:74: note: in passing argument 2 of 'std::multiset<int> Intersectie(std::multiset<int>&, std::multiset<int>&)' 58 | static inline multiset<int> Intersectie(multiset<int>& a, multiset<int>& b) { | ~~~~~~~~~~~~~~~^ main.cpp:81:51: error: invalid initialization of reference of type 'std::multiset<int>&' from expression of type 'std::set<int>' 81 | else if(op == '+') ret = Uniune(ret, cur); | ^~~ main.cpp:45:69: note: in passing argument 2 of 'std::multiset<int> Uniune(std::multiset<int>&, std::multiset<int>&)' 45 | static inline multiset<int> Uniune(multiset<int>& a, multiset<int>& b) { | ~~~~~~~~~~~~~~~^ main.cpp:82:51: error: invalid initialization of reference of type 'std::multiset<int>&' from expression of type 'std::set<int>' 82 | else if(op == '-') ret = Diferenta(ret, cur); | ^~~ main.cpp:51:67: note: in passing argument 2 of 'std::set<int> Diferenta(std::multiset<int>&, std::multiset<int>&)' 51 | static inline set<int> Diferenta(multiset<int>& a, multiset<int>& b) { | ~~~~~~~~~~~~~~~^ main.cpp:83:51: error: invalid initialization of reference of type 'std::multiset<int>&' from expression of type 'std::set<int>' 83 | else ret = DifSimetric(ret, cur); | ^~~ main.cpp:65:69: note: in passing argument 2 of 'std::set<int> DifSimetric(std::multiset<int>&, std::multiset<int>&)' 65 | static inline set<int> DifSimetric(multiset<int>& a, multiset<int>& b) { | ~~~~~~~~~~~~~~~^ Non zero exit status: 1

Ceva nu functioneaza?