Borderou de evaluare (job #3357502)

Utilizator Asandu178dragos Asandu178 Data 10 iunie 2026 13:33:23
Problema Senat Status done
Runda Arhiva de probleme Compilator cpp-64 | Vezi sursa
Scor 0

Raport evaluator

Compilare: main.cpp: In function 'void solve(int, int, int, int)': main.cpp:46:20: warning: unused variable 'committee' [-Wunused-variable] 46 | int president, committee, cost = 0; | ^~~~~~~~~ main.cpp: In function 'int main()': main.cpp:76:15: warning: unused variable 'x' [-Wunused-variable] 76 | int n, m, x, y; | ^ main.cpp:76:18: warning: unused variable 'y' [-Wunused-variable] 76 | int n, m, x, y; | ^ In file included from /usr/include/c++/12.2.1/bits/stl_iterator.h:85, from /usr/include/c++/12.2.1/bits/stl_algobase.h:67, from /usr/include/c++/12.2.1/bits/specfun.h:45, from /usr/include/c++/12.2.1/cmath:1935, from /usr/include/c++/12.2.1/x86_64-pc-linux-gnu/bits/stdc++.h:41, from main.cpp:1: In function 'constexpr decltype (::new(void*(0)) _Tp) std::construct_at(_Tp*, _Args&& ...) [with _Tp = int; _Args = {const int&}]', inlined from 'static constexpr void std::allocator_traits<std::allocator<_CharT> >::construct(allocator_type&, _Up*, _Args&& ...) [with _Up = int; _Args = {const int&}; _Tp = int]' at /usr/include/c++/12.2.1/bits/alloc_traits.h:518:21, inlined from 'constexpr void std::vector<_Tp, _Alloc>::_M_realloc_insert(iterator, _Args&& ...) [with _Args = {const int&}; _Tp = int; _Alloc = std::allocator<int>]' at /usr/include/c++/12.2.1/bits/vector.tcc:462:28, inlined from 'constexpr void std::vector<_Tp, _Alloc>::push_back(const value_type&) [with _Tp = int; _Alloc = std::allocator<int>]' at /usr/include/c++/12.2.1/bits/stl_vector.h:1287:21, inlined from 'void solve(int, int, int, int)' at main.cpp:62:22: /usr/include/c++/12.2.1/bits/stl_construct.h:97:14: warning: 'president' may be used uninitialized [-Wmaybe-uninitialized] 97 | { return ::new((void*)__location) _Tp(std::forward<_Args>(__args)...); } | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ main.cpp: In function 'void solve(int, int, int, int)': main.cpp:46:9: note: 'president' was declared here 46 | int president, committee, cost = 0; | ^~~~~~~~~
Test Timp executie Memorie folosita Mesaj Punctaj/test
10ms303kbIncorect!0
20ms303kbIncorect!0
30ms303kbIncorect!0
40ms303kbIncorect!0
56ms544kbKilled by Signal 110
60ms303kbIncorect!0
710ms520kbKilled by Signal 110
810ms532kbKilled by Signal 110
90ms303kbIncorect!0
104ms536kbKilled by Signal 110
Punctaj total0

Ceva nu functioneaza?