Borderou de evaluare (job #1226390)

Utilizator GhiciCineRazvan Dumitriu GhiciCine Data 5 septembrie 2014 13:02:48
Problema Reuniune 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:72:19: error: conflicting declaration ‘long long int p’ long long ar, p; ^ user.cpp:44:17: error: ‘p’ has a previous declaration as ‘int p’ int a,b,c,d,p; ^ user.cpp:75:30: warning: format ‘%lld’ expects argument of type ‘long long int’, but argument 3 has type ‘int’ [-Wformat=] printf("%lld %lld", ar, p); ^ user.cpp:45:15: warning: unused variable ‘a2’ [-Wunused-variable] long long a2; ^ user.cpp:41:37: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("reuniune.in","r",stdin); ^ user.cpp:42:39: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("reuniune.out","w",stdout); ^ user.cpp:48:34: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d%d%d%d",&a,&b,&c,&d); ^ user.cpp:54:34: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d%d%d%d",&a,&b,&c,&d); ^ user.cpp:60:34: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d%d%d%d",&a,&b,&c,&d); ^

Ceva nu functioneaza?