Borderou de evaluare (job #2112543)

Utilizator Cristian1997Vintur Cristian Cristian1997 Data 23 ianuarie 2018 16:33:26
Problema Dif2 Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 85

Raport evaluator

Compilare: user.cpp: In function ‘int main()’: user.cpp:56:42: warning: format ‘%d’ expects argument of type ‘int*’, but argument 2 has type ‘ll* {aka long long int*}’ [-Wformat=] for(i = 0; i < n; ++i) scanf("%d", v + i); ^ user.cpp:49:8: warning: unused variable ‘j’ [-Wunused-variable] ll i, j, type; ^ user.cpp:45:32: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("dif2.in", "r", stdin); ^ user.cpp:46:34: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("dif2.out", "w", stdout); ^ user.cpp:52:31: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%lld %lld", &type, &n); ^ user.cpp:53:100: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] if(type == 2) scanf("%lld %lld", &p1, &p2), p1 = n * n + 1 - p1, p2 = n * n + 1 - p2, swap(p1, p2); ^ user.cpp:56:43: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] for(i = 0; i < n; ++i) scanf("%d", v + i); ^
Test Timp executie Memorie folosita Mesaj Punctaj/test
1644ms2688kbOK5
2524ms2284kbOK5
3368ms1736kbOK5
4368ms1756kbOK5
5524ms2248kbOK5
60ms460kbOK5
70ms460kbOK5
892ms744kbOK5
9116ms796kbOK5
1028ms548kbOK5
11128ms816kbOK5
1288ms736kbOK5
13108ms784kbOK5
14564ms2076kbOK5
15Depăşit2664kbTime limit exceeded.0
16540ms1880kbOK5
17Depăşit2608kbTime limit exceeded.0
18Depăşit2364kbTime limit exceeded.0
19492ms1852kbOK5
20220ms1236kbOK5
Punctaj total85

Ceva nu functioneaza?