Borderou de evaluare (job #3342435)

Utilizator dansiminaSimina Dan Marius dansimina Data 24 februarie 2026 11:08:26
Problema Frac Status done
Runda Arhiva de probleme Compilator cpp-64 | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: main.cpp: In function 'void catiReductibili(std::vector<long long int>&, int, int, int, int)': main.cpp:18:14: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<long long int>::size_type' {aka 'long unsigned int'} [-Wsign-compare] 18 | if(index > factprimi.size()) | ~~~~~~^~~~~~~~~~~~~~~~~~ main.cpp:22:26: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<long long int>::size_type' {aka 'long unsigned int'} [-Wsign-compare] 22 | for(int i = index; i < factprimi.size(); i++) | ~~^~~~~~~~~~~~~~~~~~ main.cpp:29:36: warning: narrowing conversion of '(depth % 2)' from 'int' to 'bool' [-Wnarrowing] 29 | rinm.push_back({inm, depth % 2}); | ~~~~~~^~~ main.cpp:34:36: warning: narrowing conversion of '(depth % 2)' from 'int' to 'bool' [-Wnarrowing] 34 | rinm.push_back({inm, depth % 2}); | ~~~~~~^~~ main.cpp: In function 'int main()': main.cpp:52:14: error: expected initializer before 'gint' 52 | long lon gint d = 2; | ^~~~ main.cpp:56:19: error: 'd' was not declared in this scope 56 | while(x % d == 0) | ^ main.cpp:63:33: error: 'd' was not declared in this scope 63 | factprimi.push_back(d); | ^ main.cpp:65:9: error: 'd' was not declared in this scope 65 | d++; | ^ main.cpp:85:26: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<info>::size_type' {aka 'long unsigned int'} [-Wsign-compare] 85 | for(int i = 0; i < rinm.size(); i++) | ~~^~~~~~~~~~~~~ main.cpp:49:9: warning: unused variable 'lim' [-Wunused-variable] 49 | int lim = sqrt(numi) + 1; | ^~~ Non zero exit status: 1

Ceva nu functioneaza?