Borderou de evaluare (job #2346512)

Utilizator ApostolIlieDanielApostol Daniel ApostolIlieDaniel Data 17 februarie 2019 19:30:20
Problema Interclasari Status done
Runda Arhiva de probleme Compilator cpp-64 | Vezi sursa
Scor 100

Raport evaluator

Compilare: main.cpp: In function 'std::vector<int> solve(int, int)': main.cpp:16:13: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] while (ia < a.size () || ib < b.size ()) ~~~^~~~~~~~~~~ main.cpp:16:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] while (ia < a.size () || ib < b.size ()) ~~~^~~~~~~~~~~ main.cpp:17:12: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] if (ia == a.size () || (ib < b.size () && a[ia] > b[ib])) ~~~^~~~~~~~~~~~ main.cpp:17:32: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] if (ia == a.size () || (ib < b.size () && a[ia] > b[ib])) ~~~^~~~~~~~~~~ main.cpp: In function 'int main()': main.cpp:37:30: 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\n", sol.size ()); ^ main.cpp:26:42: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result] freopen ("interclasari.in", "r", stdin); ^ main.cpp:27:44: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result] freopen ("interclasari.out", "w", stdout); ^ main.cpp:28:19: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result] scanf ("%d", &k); ^ main.cpp:30:22: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result] scanf ("%d", &ni); ^ main.cpp:32:23: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result] scanf ("%d", &x); ^
Test Timp executie Memorie folosita Mesaj Punctaj/test
12ms131kbOK10
22ms131kbOK10
32ms131kbOK10
42ms131kbOK10
5387ms8658kbOK10
6652ms15941kbOK10
7834ms18460kbOK10
8597ms13873kbOK10
9724ms17874kbOK10
10701ms17862kbOK10
Punctaj total100

Ceva nu functioneaza?