Borderou de evaluare (job #1243753)

Utilizator ctlin04UAIC.VlasCatalin ctlin04 Data 16 octombrie 2014 12:54:26
Problema Zmeu Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 10

Raport evaluator

Compilare: user.cpp: In function ‘int main()’: user.cpp:13:52: warning: format ‘%d’ expects argument of type ‘int*’, but argument 2 has type ‘long long int*’ [-Wformat=] for (j=1; j<=n; ++j) scanf("%d",&pericol[i][j]); ^ user.cpp:16:49: warning: format ‘%d’ expects argument of type ‘int*’, but argument 2 has type ‘long long int*’ [-Wformat=] for (j=1; j<=n; ++j) scanf("%d",&cost[i][j]); ^ user.cpp:51:29: warning: format ‘%d’ expects argument of type ‘int’, but argument 2 has type ‘long long int’ [-Wformat=] printf("%d",sol[n][n][p]); ^ user.cpp:8:33: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("zmeu.in","r",stdin); ^ user.cpp:9:35: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("zmeu.out","w",stdout); ^ user.cpp:11:25: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d %d",&n,&p); ^ user.cpp:13:53: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] for (j=1; j<=n; ++j) scanf("%d",&pericol[i][j]); ^ user.cpp:16:50: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] for (j=1; j<=n; ++j) scanf("%d",&cost[i][j]); ^
Test Timp executie Memorie folosita Mesaj Punctaj/test
152msDepăşitMemory limit exceeded.0
20ms396kbOK10
34msDepăşitMemory limit exceeded.0
448msDepăşitMemory limit exceeded.0
552msDepăşitMemory limit exceeded.0
652msDepăşitMemory limit exceeded.0
752msDepăşitMemory limit exceeded.0
852msDepăşitMemory limit exceeded.0
952msDepăşitMemory limit exceeded.0
1052msDepăşitMemory limit exceeded.0
Punctaj total10

Ceva nu functioneaza?