Borderou de evaluare (job #1563586)

Utilizator serbanSlincu Serban serban Data 6 ianuarie 2016 12:32:00
Problema Reguli Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Compilare: user.cpp: In function ‘int main()’: user.cpp:15:65: warning: format ‘%d’ expects argument of type ‘int*’, but argument 4 has type ‘long long int*’ [-Wformat=] long long x1, x2; fscanf(f, "%d %I64d %I64d\n", &n, &x1, &x2); ^ user.cpp:15:65: warning: format ‘%d’ expects argument of type ‘int*’, but argument 5 has type ‘long long int*’ [-Wformat=] user.cpp:18:31: warning: format ‘%d’ expects argument of type ‘int*’, but argument 3 has type ‘long long int*’ [-Wformat=] fscanf(f, "%I64d", &x2); ^ user.cpp:21:30: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] while(r.size() < i) { ^ user.cpp:22:53: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(int j = 0; j < in && r.size() < i; j ++) ^ user.cpp:30:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(int i = 0; i < r.size(); i ++) fprintf(g, "%I64d\n", r[i]); ^ user.cpp:30:66: warning: format ‘%d’ expects argument of type ‘int’, but argument 3 has type ‘__gnu_cxx::__alloc_traits<std::allocator<long long int> >::value_type {aka long long int}’ [-Wformat=] for(int i = 0; i < r.size(); i ++) fprintf(g, "%I64d\n", r[i]); ^ user.cpp:15:66: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] long long x1, x2; fscanf(f, "%d %I64d %I64d\n", &n, &x1, &x2); ^ user.cpp:18:32: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] fscanf(f, "%I64d", &x2); ^
Test Timp executie Memorie folosita Mesaj Punctaj/test
160ms784kbIncorect0
2244ms460kbIncorect0
3Depăşit4468kbTime limit exceeded.0
4Depăşit4460kbTime limit exceeded.0
5156ms1320kbIncorect0
6100ms928kbIncorect0
7100ms476kbIncorect0
812ms568kbIncorect0
98ms528kbIncorect0
100ms456kbIncorect0
Punctaj total0

Ceva nu functioneaza?