Borderou de evaluare (job #956645)

Utilizator PetcuIoanPetcu Ioan Vlad PetcuIoan Data 3 iunie 2013 16:03:46
Problema Trenuri2 Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.cpp:16:8: error: invalid use of non-static data member ‘segtree<node, comparator>::dummy’ node dummy; ^ user.cpp:18:21: error: from this location comparator<typeof(dummy.val)> cmp; ^ user.cpp:18:30: error: there are no arguments to ‘typeof’ that depend on a template parameter, so a declaration of ‘typeof’ must be available [-fpermissive] comparator<typeof(dummy.val)> cmp; ^ user.cpp:18:30: note: (if you use ‘-fpermissive’, G++ will accept your code, but allowing the use of an undeclared name is deprecated) user.cpp:18:31: error: type/value mismatch at argument 1 in template parameter list for ‘template<class T> class comparator’ comparator<typeof(dummy.val)> cmp; ^ user.cpp:18:31: error: expected a type, got ‘typeof(<expression error>)’ user.cpp:19:10: error: ‘dummy’ is not a type typeof(dummy.val) val; ^ user.cpp:19:15: error: expected ‘,’ or ‘...’ before ‘.’ token typeof(dummy.val) val; ^ user.cpp:19:19: error: ISO C++ forbids declaration of ‘typeof’ with no type [-fpermissive] typeof(dummy.val) val; ^ user.cpp:19:19: error: expected ‘;’ at end of member declaration user.cpp:19:21: error: ‘val’ does not name a type typeof(dummy.val) val; ^ user.cpp:56:10: error: ‘dummy’ is not a type typeof(dummy.val) qry(int x){ ^ user.cpp:56:15: error: expected ‘,’ or ‘...’ before ‘.’ token typeof(dummy.val) qry(int x){ ^ user.cpp:56:19: error: ISO C++ forbids declaration of ‘typeof’ with no type [-fpermissive] typeof(dummy.val) qry(int x){ ^ user.cpp:56:19: error: expected ‘;’ at end of member declaration user.cpp:56:3: error: ‘int segtree<node, comparator>::typeof(int)’ cannot be overloaded typeof(dummy.val) qry(int x){ ^ user.cpp:19:3: error: with ‘int segtree<node, comparator>::typeof(int)’ typeof(dummy.val) val; ^ user.cpp:56:30: error: ISO C++ forbids declaration of ‘qry’ with no type [-fpermissive] typeof(dummy.val) qry(int x){ ^ user.cpp:80:15: error: ‘typeof’ is not a type void update(typeof(dummy.val) val1, int pos1){ ^ user.cpp:80:27: error: expected ‘)’ before ‘.’ token

Ceva nu functioneaza?