Borderou de evaluare (job #3199018)

Utilizator horiastanescuStanescu Horia horiastanescu Data 31 ianuarie 2024 12:30:53
Problema Algoritmul Bellman-Ford Status done
Runda Arhiva educationala Compilator cpp-64 | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: main.cpp:33:19: error: stray '#' in program 33 | a.vf = y; #include <fstream> | ^ main.cpp: In function 'int main()': main.cpp:33:20: error: 'include' was not declared in this scope 33 | a.vf = y; #include <fstream> | ^~~~~~~ main.cpp:33:36: error: expected primary-expression before '>' token 33 | a.vf = y; #include <fstream> | ^ main.cpp:39:1: error: expected primary-expression before 'using' 39 | using namespace std; | ^~~~~ main.cpp:52:9: warning: empty parentheses were disambiguated as a function declaration [-Wvexing-parse] 52 | int main() | ^~ main.cpp:52:9: note: remove parentheses to default-initialize a variable 52 | int main() | ^~ | -- main.cpp:52:9: note: or replace parentheses with braces to value-initialize a variable main.cpp:53:1: error: a function-definition is not allowed here before '{' token 53 | { | ^ main.cpp:97:23: error: no matching function for call to 'std::vector<main()::arc>::push_back(arc&)' 97 | g[x].push_back(a); | ~~~~~~~~~~~~~~^~~ In file included from /usr/include/c++/12.2.1/vector:64, from main.cpp:2: /usr/include/c++/12.2.1/bits/stl_vector.h:1276:7: note: candidate: 'constexpr void std::vector<_Tp, _Alloc>::push_back(const value_type&) [with _Tp = main()::arc; _Alloc = std::allocator<main()::arc>; value_type = main()::arc]' 1276 | push_back(const value_type& __x) | ^~~~~~~~~ /usr/include/c++/12.2.1/bits/stl_vector.h:1276:35: note: no known conversion for argument 1 from 'arc' to 'const std::vector<main()::arc>::value_type&' {aka 'const main()::arc&'} 1276 | push_back(const value_type& __x) | ~~~~~~~~~~~~~~~~~~^~~ /usr/include/c++/12.2.1/bits/stl_vector.h:1293:7: note: candidate: 'constexpr void std::vector<_Tp, _Alloc>::push_back(value_type&&) [with _Tp = main()::arc; _Alloc = std::allocator<main()::arc>; value_type = main()::arc]' 1293 | push_back(value_type&& __x) | ^~~~~~~~~ /usr/include/c++/12.2.1/bits/stl_vector.h:1293:30: note: no known conversion for argument 1 from 'arc' to 'std::vector<main()::arc>::value_type&&' {aka 'main()::arc&&'} 1293 | push_back(value_type&& __x) | ~~~~~~~~~~~~~^~~ main.cpp:47:5: warning: unused variable 'n' [-Wunused-variable] 47 | int n, m, start = 1; | ^ main.cpp:47:8: warning: unused variable 'm' [-Wunused-variable] 47 | int n, m, start = 1; | ^ main.cpp:47:11: warning: unused variable 'start' [-Wunused-variable] 47 | int n, m, start = 1; | ^~~~~ Non zero exit status: 1

Ceva nu functioneaza?