Borderou de evaluare (job #2702563)

Utilizator tryharderulbrebenel mihnea stefan tryharderul Data 4 februarie 2021 18:05:18
Problema Economie Status done
Runda Arhiva de probleme Compilator cpp-64 | Vezi sursa
Scor 100

Raport evaluator

Compilare: main.cpp: In function 'int main()': main.cpp:35:26: 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",ans.size()); ^ main.cpp:36:15: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(int i=0;i<ans.size();i++){ ~^~~~~~~~~~~ main.cpp:12:34: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result] freopen("economie.in","r",stdin); ^ main.cpp:13:36: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result] freopen("economie.out","w",stdout); ^ main.cpp:15:16: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result] scanf("%d",&n); ^ main.cpp:17:21: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result] scanf("%d",&v[i]); ^
Test Timp executie Memorie folosita Mesaj Punctaj/test
155ms262kbL-ai salvat pe Vultur:)10
214ms262kbL-ai salvat pe Vultur:)10
36ms262kbL-ai salvat pe Vultur:)10
421ms262kbL-ai salvat pe Vultur:)10
530ms262kbL-ai salvat pe Vultur:)10
68ms262kbL-ai salvat pe Vultur:)10
714ms131kbL-ai salvat pe Vultur:)10
846ms262kbL-ai salvat pe Vultur:)10
929ms262kbL-ai salvat pe Vultur:)10
1043ms262kbL-ai salvat pe Vultur:)10
Punctaj total100

Ceva nu functioneaza?