Borderou de evaluare (job #669071)

Utilizator avatar teodor2017 Togan Teodor-Bogdan teodor2017 IP ascuns
Problemă Coins1 (clasa a 10-a) Compilator cpp-32
Rundă Arhiva de probleme Status evaluat
Dată 13 oct. 2022 19:54:35 Scor 10

Raport evaluator

Compilare: main.cpp:10:5: warning: built-in function 'pow' declared as non-function [-Wbuiltin-declaration-mismatch] 10 | int pow[NRCAMPURI + 2] = {1, 2, 4, 8, 16, 32, 64, 128, 256, 512, 1024, 2048, 4096, 8192, 16384, 32768, 65536, 131072, 262144, 524288, 1048576, 2097152, 4194304}; | ^~~ main.cpp: In function 'void precalc()': main.cpp:40:17: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'unsigned int'} [-Wsign-compare] 40 | while(i < v.size()){ | ~~^~~~~~~~~~ main.cpp:59:29: warning: comparison of integer expressions of different signedness: '__gnu_cxx::__alloc_traits<std::allocator<int>, int>::value_type' {aka 'int'} and 'std::vector<int>::size_type' {aka 'unsigned int'} [-Wsign-compare] 59 | while(v[v.size() - 1] == (nrb - v.size() + 1)){ main.cpp:67:24: warning: comparison of integer expressions of different signedness: 'std::vector<int>::size_type' {aka 'unsigned int'} and 'int' [-Wsign-compare] 67 | while(v.size() < nrb){ | ~~~~~~~~~^~~~~ main.cpp: In function 'int main()': main.cpp:83:11: warning: ignoring return value of 'int fscanf(FILE*, const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result] 83 | fscanf(fin, "%d\n", &n); | ~~~~~~^~~~~~~~~~~~~~~~~
Test Timp execuție Memorie folosită Mesaj Punctaj/test
1 421 ms 4304 kb Ok! 10
2 414 ms 4308 kb Wrong answer! 0
3 422 ms 4308 kb Wrong answer! 0
4 420 ms 4308 kb Wrong answer! 0
5 414 ms 4304 kb Wrong answer! 0
6 416 ms 4444 kb Wrong answer! 0
7 418 ms 4313 kb Wrong answer! 0
8 462 ms 4308 kb Wrong answer! 0
9 485 ms 4308 kb Wrong answer! 0
10 496 ms 4308 kb Wrong answer! 0
Punctaj total 10