Borderou de evaluare (job #2675848)

Utilizator popashtefan10Popa Stefan popashtefan10 Data 22 noiembrie 2020 17:56:52
Problema Stive Status done
Runda Arhiva de probleme Compilator cpp-64 | Vezi sursa
Scor 100

Raport evaluator

Compilare: main.cpp: In function 'void gen_stacks()': main.cpp:25:22: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(int j = 0; j < blocks.size() && crt; j++) ~~^~~~~~~~~~~~~~~ main.cpp: In function 'int main()': main.cpp:41:31: 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", blocks.size()); ^ main.cpp:42:20: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(int i = 0; i < blocks.size(); i++) { ~~^~~~~~~~~~~~~~~ main.cpp:43:35: 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 ", stacks[i].size()); ^ main.cpp:34:34: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result] freopen("stive.in", "r", stdin); ^ main.cpp:35:36: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result] freopen("stive.out", "w", stdout); ^ main.cpp:37:18: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result] scanf("%d", &n); ^
Test Timp executie Memorie folosita Mesaj Punctaj/test
12ms131kbEsti baza!10
22ms131kbEsti baza!10
32ms131kbEsti baza!10
44ms131kbEsti baza!10
57ms262kbEsti baza!10
613ms524kbEsti baza!10
723ms655kbEsti baza!10
849ms1572kbEsti baza!10
974ms2359kbEsti baza!10
1083ms2621kbEsti baza!10
Punctaj total100

Ceva nu functioneaza?