Pagini recente » Borderou de evaluare (job #2846801) | Borderou de evaluare (job #3187985) | Borderou de evaluare (job #2951056) | Borderou de evaluare (job #945358) | Borderou de evaluare (job #1421515)
Borderou de evaluare (job #1421515)
Raport evaluator
Compilare:
user.cpp: In function ‘void main2()’:
user.cpp:99:57: warning: format ‘%d’ expects argument of type ‘int*’, but argument 3 has type ‘short int*’ [-Wformat=]
fscanf(in,"%d %d %d", &c[i].an, &c[i].x, &c[i].y);
^
user.cpp:99:57: warning: format ‘%d’ expects argument of type ‘int*’, but argument 4 has type ‘short int*’ [-Wformat=]
user.cpp:99:57: warning: format ‘%d’ expects argument of type ‘int*’, but argument 5 has type ‘short int*’ [-Wformat=]
user.cpp:106:65: warning: format ‘%d’ expects argument of type ‘int*’, but argument 3 has type ‘short int*’ [-Wformat=]
fscanf(in,"%d%d%d%d",&r[i].x1,&r[i].y1,&r[i].x2,&r[i].y2);
^
user.cpp:106:65: warning: format ‘%d’ expects argument of type ‘int*’, but argument 4 has type ‘short int*’ [-Wformat=]
user.cpp:106:65: warning: format ‘%d’ expects argument of type ‘int*’, but argument 5 has type ‘short int*’ [-Wformat=]
user.cpp:106:65: warning: format ‘%d’ expects argument of type ‘int*’, but argument 6 has type ‘short int*’ [-Wformat=]
user.cpp:93:33: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
fscanf(in,"%d%d%d",&n,&m,&k);
^
user.cpp:95:23: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
fscanf(in,"%d",&p);
^
user.cpp:99:58: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
fscanf(in,"%d %d %d", &c[i].an, &c[i].x, &c[i].y);
^
user.cpp:102:23: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
fscanf(in,"%d",&q);
^
user.cpp:106:66: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
fscanf(in,"%d%d%d%d",&r[i].x1,&r[i].y1,&r[i].x2,&r[i].y2);
^
user.cpp: In function ‘int main()’:
user.cpp:160:23: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
fscanf(in,"%d",&t);
^
user.cpp: In function ‘void main3()’:
user.cpp:80:25: warning: array subscript is above array bounds [-Warray-bounds]
if(rez[i][an]==1)
^
Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
1 | 420ms | 4260kb | Accepted! | 100 |
Punctaj total | 100 |