Borderou de evaluare (job #2193437)

Utilizator jerrymJerry Mao jerrym Data 10 aprilie 2018 10:02:33
Problema Magnet Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 100

Raport evaluator

Compilare: user.cpp: In function ‘void slv()’: user.cpp:28: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:28: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:29: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:29: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:80: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:27:17: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d", &n); ^ user.cpp:28: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:29: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:86: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:87: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:88: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
10ms1328kbOK!10
20ms1328kbOK!10
30ms1356kbOK!10
40ms1376kbOK!10
524ms1752kbOK!10
648ms1884kbOK!10
736ms2008kbOK!10
868ms2088kbOK!10
972ms2152kbOK!10
1096ms2224kbOK!10
Punctaj total100

Ceva nu functioneaza?