Borderou de evaluare (job #3287735)

Utilizator Darius1414Dobre Darius Adrian Darius1414 Data 19 martie 2025 04:28:06
Problema Tarabe Status done
Runda Arhiva de probleme Compilator cpp-64 | Vezi sursa
Scor 100

Raport evaluator

Compilare: main.cpp: In function 'int main()': main.cpp:10:20: warning: comparison of integer expressions of different signedness: 'int' and 'long long unsigned int' [-Wsign-compare] 10 | for (int i=1; i<=n; i++) | ~^~~ main.cpp:18:24: warning: comparison of integer expressions of different signedness: 'int' and 'long long unsigned int' [-Wsign-compare] 18 | for (int i=1; i<=n; i++) | ~^~~ main.cpp:20:20: warning: comparison of integer expressions of different signedness: 'long long int' and 'long long unsigned int' [-Wsign-compare] 20 | if (mid>=v[i]) ct++; | ~~~^~~~~~ main.cpp:24:20: warning: comparison of integer expressions of different signedness: 'long long int' and 'long long unsigned int' [-Wsign-compare] 24 | if (dif>=k) | ~~~^~~ main.cpp:30:19: warning: comparison of integer expressions of different signedness: 'long long int' and 'long long unsigned int' [-Wsign-compare] 30 | if (ct>=k) | ~~^~~ main.cpp:33:15: warning: comparison of integer expressions of different signedness: 'long long int' and 'long long unsigned int' [-Wsign-compare] 33 | if (ct>=k) | ~~^~~ main.cpp:42:20: warning: comparison of integer expressions of different signedness: 'int' and 'long long unsigned int' [-Wsign-compare] 42 | for (int i=1; i<=n; i++) | ~^~~ main.cpp:44:17: warning: comparison of integer expressions of different signedness: 'long long unsigned int' and 'long long int' [-Wsign-compare] 44 | if (v[i]<=sol) | ~~~~^~~~~ main.cpp:12:45: warning: unused variable 'sol2' [-Wunused-variable] 12 | long long st=1,dr=1000000000001,mid,sol,sol2; | ^~~~ main.cpp:54:16: warning: 'sol' may be used uninitialized [-Wmaybe-uninitialized] 54 | sum+=k*(sol+1); | ~~~~^~~ main.cpp:12:41: note: 'sol' was declared here 12 | long long st=1,dr=1000000000001,mid,sol,sol2; | ^~~
Test Timp executie Memorie folosita Mesaj Punctaj/test
10ms303kbOK10
20ms303kbOK10
32ms557kbOK10
44ms1081kbOK10
58ms1605kbOK10
69ms1867kbOK10
719ms3452kbOK10
819ms3477kbOK10
924ms3518kbOK10
1024ms3481kbOK10
Punctaj total100

Ceva nu functioneaza?