Borderou de evaluare (job #1407308)

Utilizator lianaliana tucar liana Data 29 martie 2015 18:30:08
Problema Comoditate Status done
Runda ONIS 2015, Runda 2 Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Compilare: user.cpp: In function ‘void citire()’: user.cpp:17:26: warning: format ‘%ld’ expects argument of type ‘long int*’, but argument 2 has type ‘int*’ [-Wformat=] scanf("%ld %ld",&n,&m); ^ user.cpp:17:26: warning: format ‘%ld’ expects argument of type ‘long int*’, but argument 3 has type ‘int*’ [-Wformat=] user.cpp:20:30: warning: format ‘%ld’ expects argument of type ‘long int*’, but argument 2 has type ‘int*’ [-Wformat=] scanf("%ld %ld",&x,&y); ^ user.cpp:20:30: warning: format ‘%ld’ expects argument of type ‘long int*’, but argument 3 has type ‘int*’ [-Wformat=] user.cpp: In function ‘int main()’: user.cpp:92:19: warning: format ‘%ld’ expects argument of type ‘long int*’, but argument 2 has type ‘int*’ [-Wformat=] scanf("%ld",&t); ^ user.cpp:101:32: warning: format ‘%ld’ expects argument of type ‘long int’, but argument 2 has type ‘int’ [-Wformat=] printf("%ld",rez[i]); ^ user.cpp: In function ‘void citire()’: user.cpp:17:27: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%ld %ld",&n,&m); ^ user.cpp:20:31: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%ld %ld",&x,&y); ^ user.cpp: In function ‘int main()’: user.cpp:90:39: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("comoditate.in","r",stdin); ^ user.cpp:91:41: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("comoditate.out","w",stdout); ^ user.cpp:92:20: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%ld",&t); ^
Test Timp executie Memorie folosita Mesaj Punctaj/test
1912msDepăşitMemory limit exceeded.0
Punctaj total0

Ceva nu functioneaza?