Borderou de evaluare (job #1881276)
Utilizator | Data | 16 februarie 2017 12:28:06 | |
---|---|---|---|
Problema | Catun | Status | done |
Runda | becreative17 | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp:9:7: error: expected initializer before ‘int’
const int MAXN = 36005;
^
user.cpp:10:7: error: expected initializer before ‘int’
const int oo = 0x3f3f3f3f;
^
user.cpp:12:28: error: ‘MAXN’ was not declared in this scope
typedef vector<edge> Graph[MAXN];
^
user.cpp:14:7: error: expected initializer before ‘inline’
const inline int min(const int &a, const int &b) { if( a > b ) return b; return a; }
^
user.cpp:15:7: error: expected initializer before ‘inline’
const inline int max(const int &a, const int &b) { if( a < b ) return b; return a; }
^
user.cpp:16:7: error: expected initializer before ‘inline’
const inline void Get_min(int &a, const int b) { if( a > b ) a = b; }
^
user.cpp:17:7: error: expected initializer before ‘inline’
const inline void Get_max(int &a, const int b) { if( a < b ) a = b; }
^
user.cpp:19:36: error: expected ‘,’ or ‘...’ before ‘int’
inline bool operator () (const int &a, const int &b) const {
^
user.cpp:19:56: error: expected ‘;’ at end of member declaration
inline bool operator () (const int &a, const int &b) const {
^
user.cpp:21:5: error: expected ‘;’ at end of member declaration
}
^
user.cpp:20:9: error: expected primary-expression before ‘return’
return a > b;
^
user.cpp:20:9: error: expected ‘}’ before ‘return’
user.cpp:20:9: error: cannot convert ‘<brace-enclosed initializer list>’ to ‘int’ in initialization
user.cpp:20:9: error: expected ‘;’ before ‘return’
user.cpp:24:8: error: ‘MAXN’ was not declared in this scope
bitset<MAXN> Catun;
^
user.cpp:24:12: error: template argument 1 is invalid
bitset<MAXN> Catun;
^
user.cpp:24:19: error: invalid type in declaration before ‘;’ token
bitset<MAXN> Catun;
^
user.cpp:25:15: error: ‘MAXN’ was not declared in this scope
vector<int> d(MAXN, oo), C(MAXN);
^
user.cpp:25:21: error: ‘oo’ was not declared in this scope
vector<int> d(MAXN, oo), C(MAXN);
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !