Borderou de evaluare (job #1254643)

Utilizator serbanSlincu Serban serban Data 3 noiembrie 2014 09:10:37
Problema Lacusta Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Compilare: user.cpp: In function ‘int main()’: user.cpp:13:29: warning: format ‘%hd’ expects argument of type ‘short int*’, but argument 3 has type ‘unsigned int*’ [-Wformat=] fscanf(f,"%hd %hd",&n,&m); ^ user.cpp:13:29: warning: format ‘%hd’ expects argument of type ‘short int*’, but argument 4 has type ‘unsigned int*’ [-Wformat=] user.cpp:14:16: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(i=1;i<=n;i++) ^ user.cpp:16:20: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(j=1;j<=m;j++) ^ user.cpp:18:36: warning: format ‘%hd’ expects argument of type ‘short int*’, but argument 3 has type ‘unsigned int*’ [-Wformat=] fscanf(f,"%hd",&a[i][j]); ^ user.cpp:24:15: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(j=1;j<m;j++) ^ user.cpp:44:16: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(j=1;j<=m;j++) ^ user.cpp:46:15: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] if(j==p) ^ user.cpp:56:20: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(j=1;j<=m;j++) ^ user.cpp:75:20: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(j=1;j<=m;j++) ^ user.cpp:77:19: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] if(j==p) ^ user.cpp:85:16: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(j=2;j<=m;j++) ^ user.cpp:13:30: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] fscanf(f,"%hd %hd",&n,&m); ^ user.cpp:18:37: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] fscanf(f,"%hd",&a[i][j]); ^
Test Timp executie Memorie folosita Mesaj Punctaj/test Punctaj/grupa
18msDepăşitMemory limit exceeded.00
28msDepăşitMemory limit exceeded.0
30ms544kbOK10
40ms548kbOK100
50msDepăşitMemory limit exceeded.0
60ms584kbOK10
70ms524kbOK100
80ms628kbOK10
90msDepăşitMemory limit exceeded.0
108msDepăşitMemory limit exceeded.0
Punctaj total0

Ceva nu functioneaza?