Borderou de evaluare (job #669085)

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 20:37:07 Scor 100

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 236 ms 4308 kb Ok! 10
2 235 ms 4313 kb Ok! 10
3 234 ms 4313 kb Ok! 10
4 238 ms 4313 kb Ok! 10
5 232 ms 4308 kb Ok! 10
6 240 ms 4313 kb Ok! 10
7 239 ms 4304 kb Ok! 10
8 279 ms 4313 kb Ok! 10
9 297 ms 4313 kb Ok! 10
10 321 ms 4308 kb Ok! 10
Punctaj total 100