Borderou de evaluare (job #2193436)

Utilizator jerrymJerry Mao jerrym Data 10 aprilie 2018 09:56:14
Problema Magnet Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 80

Raport evaluator

Compilare: user.cpp: In function ‘void slv()’: user.cpp:31:2: warning: this ‘for’ clause does not guard... [-Wmisleading-indentation] for (int i = 0;i < n;i++) scanf("%d", a+i); sort(a, a+n); ^~~ user.cpp:31:46: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the ‘for’ for (int i = 0;i < n;i++) scanf("%d", a+i); sort(a, a+n); ^~~~ user.cpp:32:2: warning: this ‘for’ clause does not guard... [-Wmisleading-indentation] for (int i = 0;i < n;i++) scanf("%d", b+i); sort(b, b+n); ^~~ user.cpp:32:46: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the ‘for’ for (int i = 0;i < n;i++) scanf("%d", b+i); sort(b, b+n); ^~~~ user.cpp:74:28: warning: format ‘%lu’ expects argument of type ‘long unsigned int’, but argument 2 has type ‘std::vector<std::pair<int, int> >::size_type {aka unsigned int}’ [-Wformat=] printf("%lu\n", ans.size()); ^ user.cpp:30:17: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d", &n); ^ user.cpp:31:44: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] for (int i = 0;i < n;i++) scanf("%d", a+i); sort(a, a+n); ^ user.cpp:32:44: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] for (int i = 0;i < n;i++) scanf("%d", b+i); sort(b, b+n); ^ user.cpp: In function ‘int main()’: user.cpp:80:34: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("magnet.in", "r", stdin); ^ user.cpp:81:36: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("magnet.out", "w", stdout); ^ user.cpp:82:24: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] int t; scanf("%d", &t); ^
Test Timp executie Memorie folosita Mesaj Punctaj/test
10ms1332kbConfiguratia finala incorecta0
20ms1332kbOK!10
30ms1340kbConfiguratia finala incorecta0
40ms1344kbOK!10
524ms1748kbOK!10
648ms1880kbOK!10
736ms2008kbOK!10
868ms2088kbOK!10
972ms2152kbOK!10
1096ms2224kbOK!10
Punctaj total80

Ceva nu functioneaza?