Borderou de evaluare (job #1473053)

Utilizator iulianrotaruRotaru Gheorghe-Iulian iulianrotaru Data 18 august 2015 14:05:23
Problema Sarac Sau Rege Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 10

Raport evaluator

Compilare: user.cpp: In function ‘int main()’: user.cpp:20:31: warning: format ‘%ld’ expects argument of type ‘long int’, but argument 2 has type ‘int’ [-Wformat=] printf("%ld\n",A[a][b]); ^ user.cpp:8:41: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("saracsaurege.in","r",stdin); ^ user.cpp:9:43: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("saracsaurege.out","w",stdout); ^ user.cpp:10:27: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d %d\n",&n,&m); ^ user.cpp:11:70: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] for(i=1;i<=n;++i) scanf("%d",&AI[i]),A[1][i]=max(A[1][i-1],AI[i]); ^ user.cpp:19:31: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d %d\n",&a,&b); ^
Test Timp executie Memorie folosita Mesaj Punctaj/test
10ms352kbOK10
28msDepăşitMemory limit exceeded.0
348msDepăşitMemory limit exceeded.0
48msDepăşitMemory limit exceeded.0
544msDepăşitMemory limit exceeded.0
644msDepăşitMemory limit exceeded.0
744msDepăşitMemory limit exceeded.0
844msDepăşitMemory limit exceeded.0
944msDepăşitMemory limit exceeded.0
1044msDepăşitMemory limit exceeded.0
Punctaj total10

Ceva nu functioneaza?