Borderou de evaluare (job #2252321)

Utilizator GabiTulbaGabi Tulba-Lecu GabiTulba Data 2 octombrie 2018 18:29:49
Problema Traseu3 Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 82

Raport evaluator

Compilare: user.cpp: In function ‘int main()’: user.cpp:69:69: warning: format ‘%d’ expects argument of type ‘int*’, but argument 5 has type ‘short int*’ [-Wformat=] fscanf(IN,"%d%d%d%d%d%d%d%d",&N,&M,&s.X,&s.Y,&s.Z,&f.X,&f.Y,&f.Z); ^ user.cpp:69:69: warning: format ‘%d’ expects argument of type ‘int*’, but argument 6 has type ‘short int*’ [-Wformat=] user.cpp:69:69: warning: format ‘%d’ expects argument of type ‘int*’, but argument 7 has type ‘short int*’ [-Wformat=] user.cpp:69:69: warning: format ‘%d’ expects argument of type ‘int*’, but argument 8 has type ‘short int*’ [-Wformat=] user.cpp:69:69: warning: format ‘%d’ expects argument of type ‘int*’, but argument 9 has type ‘short int*’ [-Wformat=] user.cpp:69:69: warning: format ‘%d’ expects argument of type ‘int*’, but argument 10 has type ‘short int*’ [-Wformat=] user.cpp:77:48: warning: format ‘%d’ expects argument of type ‘int*’, but argument 3 has type ‘short int*’ [-Wformat=] fscanf(IN,"%d%d%d",&aux.X,&aux.Y,&aux.Z); ^ user.cpp:77:48: warning: format ‘%d’ expects argument of type ‘int*’, but argument 4 has type ‘short int*’ [-Wformat=] user.cpp:77:48: warning: format ‘%d’ expects argument of type ‘int*’, but argument 5 has type ‘short int*’ [-Wformat=] user.cpp:69:70: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] fscanf(IN,"%d%d%d%d%d%d%d%d",&N,&M,&s.X,&s.Y,&s.Z,&f.X,&f.Y,&f.Z); ^ user.cpp:77:49: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] fscanf(IN,"%d%d%d",&aux.X,&aux.Y,&aux.Z); ^
Test Timp executie Memorie folosita Mesaj Punctaj/test
14ms7488kbCorect!5
2256ms13724kbSolutie incorecta!2
38ms7492kbCorect!5
44ms7484kbCorect!5
54ms7492kbCorect!5
68ms9544kbCorect!5
724ms9556kbCorect!5
848ms11628kbCorect!5
9104ms13696kbSolutie incorecta!2
10252ms13732kbCorect!5
11248ms13736kbSolutie incorecta!2
1268ms13692kbSolutie incorecta!2
13148ms13704kbCorect!5
1492ms13688kbCorect!5
15180ms13740kbCorect!5
16248ms13732kbCorect!5
17256ms13724kbSolutie incorecta!2
18256ms13724kbCorect!5
19240ms13724kbSolutie incorecta!2
20212ms13724kbCorect!5
Punctaj total82

Ceva nu functioneaza?