Borderou de evaluare (job #2503947)

Utilizator cyg_vladioanBirsan Vlad cyg_vladioan Data 3 decembrie 2019 23:08:27
Problema Johnie Status done
Runda Arhiva de probleme Compilator cpp-64 | Vezi sursa
Scor 80

Raport evaluator

Compilare: main.cpp: In function 'void afisare(int)': main.cpp:43:19: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(i = 0 ; i < ans.size() ; i ++) ~~^~~~~~~~~~~~ main.cpp:49:38: warning: format '%d' expects argument of type 'int', but argument 2 has type 'std::vector<int>::size_type {aka long unsigned int}' [-Wformat=] printf("%d " , aux.size()); ^ main.cpp:50:27: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(j = 0 ; j < aux.size() ; j ++) ~~^~~~~~~~~~~~ main.cpp: In function 'int main()': main.cpp:92:37: warning: format '%d' expects argument of type 'int', but argument 2 has type 'std::vector<int>::size_type {aka long unsigned int}' [-Wformat=] printf("1\n%d " , ans.size()); ^ main.cpp:93:23: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(i = 0 ; i < ans.size() ; i ++) ~~^~~~~~~~~~~~ main.cpp:61:29: warning: unused variable 'gasit' [-Wunused-variable] int n , m , u , v , i , gasit , nr; ^~~~~ main.cpp:59:39: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result] freopen("johnie.in" , "r" , stdin); ^ main.cpp:60:41: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result] freopen("johnie.out" , "w" , stdout); ^ main.cpp:62:28: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result] scanf("%d%d" , &n , &m); ^ main.cpp:65:32: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result] scanf("%d%d" , &u , &v); ^
Test Timp executie Memorie folosita Mesaj Punctaj/test
15ms1310kbOK10
25ms1310kbOK10
311ms1572kbOK10
420ms1966kbOK10
579ms3805kbOK10
688ms4288kbOK10
7106ms4804kbOK10
887ms4583kbKilled by Signal 110
9116ms4845kbKilled by Signal 110
104ms1310kbOK10
Punctaj total80

Ceva nu functioneaza?