Borderou de evaluare (job #1740773)
Utilizator | Data | 12 august 2016 12:09:34 | |
---|---|---|---|
Problema | Flux maxim de cost minim | Status | done |
Runda | Arhiva educationala | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp:235:31: error: redeclaration ‘MinCostMaxFlow::NIL’ differs in ‘constexpr’
constexpr int MinCostMaxFlow::NIL = -1;
^
user.cpp:57:22: error: from previous declaration ‘MinCostMaxFlow::NIL’
static const int NIL;
^
user.cpp:235:31: error: ‘MinCostMaxFlow::NIL’ declared ‘constexpr’ outside its class
constexpr int MinCostMaxFlow::NIL = -1;
^
user.cpp:235:31: error: declaration of ‘const int MinCostMaxFlow::NIL’ outside of class is not definition [-fpermissive]
user.cpp:236:31: error: redeclaration ‘MinCostMaxFlow::INF’ differs in ‘constexpr’
constexpr int MinCostMaxFlow::INF = numeric_limits<int>::max();
^
user.cpp:58:22: error: from previous declaration ‘MinCostMaxFlow::INF’
static const int INF;
^
user.cpp:236:31: error: ‘MinCostMaxFlow::INF’ declared ‘constexpr’ outside its class
constexpr int MinCostMaxFlow::INF = numeric_limits<int>::max();
^
user.cpp:236:31: error: declaration of ‘const int MinCostMaxFlow::INF’ outside of class is not definition [-fpermissive]
user.cpp: In function ‘int main()’:
user.cpp:240:35: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("fmcm.in", "r", stdin);
^
user.cpp:241:37: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("fmcm.out", "w", stdout);
^
user.cpp:244:38: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d%d%d%d", &N, &M, &S, &T);
^
user.cpp:251:46: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d%d%d%d", &x, &y, &cap, &cst);
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !