Borderou de evaluare (job #2207605)

Utilizator emanuel_rRamneantu Emanuel emanuel_r Data 26 mai 2018 03:29:13
Problema Floyd-Warshall/Roy-Floyd Status done
Runda Arhiva educationala Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.cpp: In function ‘void Read()’: user.cpp:38:9: error: ‘make_unique’ was not declared in this scope G = make_unique<vector<vector<pair<int, int>>>>(n+1); ^~~~~~~~~~~ user.cpp:38:50: error: expected primary-expression before ‘>’ token G = make_unique<vector<vector<pair<int, int>>>>(n+1); ^~ user.cpp: In function ‘void Solve()’: user.cpp:50:32: error: ‘make_unique’ was not declared in this scope unique_ptr<Floyd<int>> F = make_unique<Floyd<int>>(*G); ^~~~~~~~~~~ user.cpp:50:53: error: expected primary-expression before ‘>’ token unique_ptr<Floyd<int>> F = make_unique<Floyd<int>>(*G); ^~ user.cpp: In instantiation of ‘void Floyd<T>::build() [with T = int]’: user.cpp:51:14: required from here user.cpp:16:26: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(int i = 0; i <= n; i++) { ~~^~~~ user.cpp:20:26: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(int i = 0; i < G.size(); i++) user.cpp:24:26: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(int k = 0; k <= n; k++) ~~^~~~ user.cpp:25:30: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(int i = 0; i <= n; i++) ~~^~~~ user.cpp:26:34: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(int j = 0; j <= n; j++) ~~^~~~ user.cpp: In function ‘int main()’: user.cpp:60:39: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("royfloyd.in", "r", stdin); ^ user.cpp:61:41: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("royfloyd.out", "w", stdout); ^

Ceva nu functioneaza?