Borderou de evaluare (job #2193428)

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

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:72: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:78: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:79: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:80: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
10ms1336kbRaspuns gresit!0
20ms1332kbOK!10
30ms1368kbRaspuns gresit!0
40ms1384kbRaspuns gresit!0
532ms1772kbRaspuns gresit!0
648ms1884kbOK!10
748ms2012kbRaspuns gresit!0
880ms2080kbRaspuns gresit!0
984ms2324kbRaspuns gresit!0
10112ms2296kbRaspuns gresit!0
Punctaj total20

Ceva nu functioneaza?