Borderou de evaluare (job #2351013)

Utilizator Anastasia11Susciuc Anastasia Anastasia11 Data 21 februarie 2019 21:29:10
Problema Plimbare Status done
Runda Arhiva de probleme Compilator cpp-64 | Vezi sursa
Scor 100

Raport evaluator

Compilare: main.cpp: In function 'int main()': main.cpp:53:5: warning: this 'for' clause does not guard... [-Wmisleading-indentation] for (int i = 1; i <= n; i ++) ^~~ main.cpp:57:2: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'for' memset (seen, 0, sizeof (seen)); ^~~~~~ main.cpp:66:27: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] if (ctc[i].size() >= max1) ~~~~~~~~~~~~~~^~~~~~~ main.cpp:65:5: warning: this 'for' clause does not guard... [-Wmisleading-indentation] for (int i = 1; i <= nr; i ++) ^~~ main.cpp:71:2: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'for' for (vector <int> :: iterator it = ctc[ci].begin(); it != ctc[ci].end(); it ++) ^~~ main.cpp:82:27: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for (int i = 1; i < c.size(); i ++) ~~^~~~~~~~~~ main.cpp:37:40: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result] freopen ("plimbare.in", "r", stdin); ^ main.cpp:38:42: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result] freopen ("plimbare.out", "w", stdout); ^ main.cpp:40:18: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result] scanf ("%d", &n); ^ main.cpp:46:32: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result] scanf ("%d %d", &x, &y); ^ main.cpp:42:12: warning: 'ci' may be used uninitialized in this function [-Wmaybe-uninitialized] int k, ci, max1 = 0; ^~
Test Timp executie Memorie folosita Mesaj Punctaj/test
12ms131kbOK!5
22ms131kbOK!5
32ms131kbOK!5
42ms131kbOK!5
52ms131kbOK!5
62ms131kbOK!5
73ms131kbOK!5
83ms131kbOK!5
93ms262kbOK!5
103ms131kbOK!5
114ms262kbOK!5
124ms262kbOK!5
134ms262kbOK!5
144ms262kbOK!5
154ms262kbOK!5
164ms262kbOK!5
175ms262kbOK!5
185ms262kbOK!5
195ms262kbOK!5
205ms262kbOK!5
Punctaj total100

Ceva nu functioneaza?