Borderou de evaluare (job #1563584)

Utilizator serbanSlincu Serban serban Data 6 ianuarie 2016 12:26:56
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:31: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:31: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
132ms468kbIncorect0
2236ms452kbIncorect0
3Depăşit4476kbTime limit exceeded.0
4Depăşit4472kbTime limit exceeded.0
5152ms1328kbIncorect0
696ms932kbIncorect0
792ms476kbIncorect0
812ms564kbIncorect0
98ms520kbIncorect0
100ms460kbIncorect0
Punctaj total0

Ceva nu functioneaza?