Borderou de evaluare (job #1073060)

Utilizator PetreFlorinaFMI Petre Florina PetreFlorina Data 5 ianuarie 2014 17:02:09
Problema Loto Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.cpp: In function ‘int main()’: user.cpp:55:24: error: ‘date’ does not name a type p=0;bool cmp(const date &a1, const date &b1) ^ user.cpp:55:30: error: ISO C++ forbids declaration of ‘a1’ with no type [-fpermissive] p=0;bool cmp(const date &a1, const date &b1) ^ user.cpp:55:40: error: ‘date’ does not name a type p=0;bool cmp(const date &a1, const date &b1) ^ user.cpp:55:46: error: ISO C++ forbids declaration of ‘b1’ with no type [-fpermissive] p=0;bool cmp(const date &a1, const date &b1) ^ user.cpp:56:1: error: a function-definition is not allowed here before ‘{’ token { ^ user.cpp:59:16: error: ‘date’ does not name a type bool cmp(const date &a1, const date &b1) ^ user.cpp:59:22: error: ISO C++ forbids declaration of ‘a1’ with no type [-fpermissive] bool cmp(const date &a1, const date &b1) ^ user.cpp:59:32: error: ‘date’ does not name a type bool cmp(const date &a1, const date &b1) ^ user.cpp:59:38: error: ISO C++ forbids declaration of ‘b1’ with no type [-fpermissive] bool cmp(const date &a1, const date &b1) ^ user.cpp:60:1: error: a function-definition is not allowed here before ‘{’ token { ^ user.cpp:65:42: error: ‘date’ does not name a type for ( i=1; i<=n; i++ )bool cmp(const date &a1, const date &b1) ^ user.cpp:65:48: error: ISO C++ forbids declaration of ‘a1’ with no type [-fpermissive] for ( i=1; i<=n; i++ )bool cmp(const date &a1, const date &b1) ^ user.cpp:65:58: error: ‘date’ does not name a type for ( i=1; i<=n; i++ )bool cmp(const date &a1, const date &b1) ^ user.cpp:65:64: error: ISO C++ forbids declaration of ‘b1’ with no type [-fpermissive] for ( i=1; i<=n; i++ )bool cmp(const date &a1, const date &b1) ^ user.cpp:66:1: error: a function-definition is not allowed here before ‘{’ token { ^

Ceva nu functioneaza?