Borderou de evaluare (job #1846919)

Utilizator killer301Ioan Andrei Nicolae killer301 Data 14 ianuarie 2017 10:05:20
Problema Andrei Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.cpp:16:29: error: ISO C++ forbids declaration of ‘add_edge’ with no type [-fpermissive] inline add_edge(int x, int y) ^ user.cpp: In function ‘int add_edge(int, int)’: user.cpp:20:1: warning: no return statement in function returning non-void [-Wreturn-type] } ^ user.cpp: In function ‘int main()’: user.cpp:49:36: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("party.in", "r", stdin); ^ user.cpp:50:38: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("party.out", "w", stdout); ^ user.cpp:51:27: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d %d", &n, &m); ^ user.cpp:55:38: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d %d %d", &a, &b, &x); ^

Ceva nu functioneaza?