Borderou de evaluare (job #3313975)

Utilizator NERDVANA_MIHNEA_PURCAREAMihnea Purcarea NERDVANA_MIHNEA_PURCAREA Data 7 octombrie 2025 16:48:42
Problema Pic Status done
Runda Arhiva de probleme Compilator cpp-64 | Vezi sursa
Scor 15

Raport evaluator

Compilare: main.cpp: In function 'int canFill(long long unsigned int)': main.cpp:18:34: warning: comparison of integer expressions of different signedness: 'long long unsigned int' and 'int' [-Wsign-compare] 18 | while(i <= n && water[i] >= capacity[i]){ | ~~~~~~~~~^~~~~~~~~~~~~~ main.cpp:21:34: warning: format '%d' expects argument of type 'int', but argument 2 has type 'long long unsigned int' [-Wformat=] 21 | printf("%d ", water[i]); | ~^ ~~~~~~~~ | | | | int long long unsigned int | %lld main.cpp: In function 'int main()': main.cpp:79:50: warning: format '%d' expects argument of type 'int', but argument 2 has type 'long unsigned int' [-Wformat=] 79 | printf("%d %d\n", l, r); | ~^ ~ | | | | int long unsigned int | %ld main.cpp:79:53: warning: format '%d' expects argument of type 'int', but argument 3 has type 'long unsigned int' [-Wformat=] 79 | printf("%d %d\n", l, r); | ~^ ~ | | | | int long unsigned int | %ld main.cpp:86:42: warning: format '%llu' expects argument of type 'long long unsigned int', but argument 3 has type 'long unsigned int' [-Wformat=] 86 | fprintf(out, "%llu %llu", l, l-pSumCapacity[n]); | ~~~^ ~ | | | | | long unsigned int | long long unsigned int | %lu main.cpp:86:47: warning: format '%llu' expects argument of type 'long long unsigned int', but argument 4 has type 'long unsigned int' [-Wformat=] 86 | fprintf(out, "%llu %llu", l, l-pSumCapacity[n]); | ~~~^ ~~~~~~~~~~~~~~~~~ | | | | | long unsigned int | long long unsigned int | %lu
Test Timp executie Memorie folosita Mesaj Punctaj/test
10ms303kbIncorect0
20ms303kbIncorect0
30ms303kbIncorect0
40ms303kbIncorect0
50ms303kbIncorect0
60ms303kbIncorect0
70ms303kbOK5
80ms303kbOK5
90ms303kbIncorect0
100ms303kbOK5
110ms303kbIncorect0
120ms303kbIncorect0
130ms303kbIncorect0
140ms303kbIncorect0
150ms303kbIncorect0
160ms303kbIncorect0
170ms303kbIncorect0
180ms303kbIncorect0
190ms303kbIncorect0
200ms303kbIncorect0
Punctaj total15

Ceva nu functioneaza?