Borderou de evaluare (job #2710068)

Utilizator andrei_ciobanuciobanu andrei andrei_ciobanu Data 21 februarie 2021 19:16:56
Problema Roata Status done
Runda Arhiva de probleme Compilator cpp-64 | Vezi sursa
Scor 50

Raport evaluator

Compilare: main.cpp: In function 'int main()': main.cpp:36:38: warning: format '%d' expects argument of type 'int*', but argument 3 has type 'long long int*' [-Wformat=] fscanf(fin, "%d", &Arr[i]); ^ main.cpp:43:38: warning: format '%d' expects argument of type 'int*', but argument 3 has type 'long long int*' [-Wformat=] fscanf(fin, "%d", &Arr[i]); ^ main.cpp:30:32: warning: ignoring return value of 'int fscanf(FILE*, const char*, ...)', declared with attribute warn_unused_result [-Wunused-result] fscanf(fin, "%d%d", &N, &P); ^ main.cpp:36:39: warning: ignoring return value of 'int fscanf(FILE*, const char*, ...)', declared with attribute warn_unused_result [-Wunused-result] fscanf(fin, "%d", &Arr[i]); ^ main.cpp:43:39: warning: ignoring return value of 'int fscanf(FILE*, const char*, ...)', declared with attribute warn_unused_result [-Wunused-result] fscanf(fin, "%d", &Arr[i]); ^ main.cpp:48:34: warning: ignoring return value of 'int fscanf(FILE*, const char*, ...)', declared with attribute warn_unused_result [-Wunused-result] fscanf(fin, "%d", &x); ^ main.cpp: In function 'int MinVal(int)': main.cpp:24:12: warning: 'ind' may be used uninitialized in this function [-Wmaybe-uninitialized] return ind; ^~~ main.cpp: In function 'int main()': main.cpp:24:12: warning: 'ind' may be used uninitialized in this function [-Wmaybe-uninitialized] return ind; ^~~ main.cpp:17:43: note: 'ind' was declared here long long int minVal = MAX_VALUE + 1, ind; ^~~ main.cpp:24:12: warning: 'ind' may be used uninitialized in this function [-Wmaybe-uninitialized] return ind; ^~~ main.cpp:17:43: note: 'ind' was declared here long long int minVal = MAX_VALUE + 1, ind; ^~~
Test Timp executie Memorie folosita Mesaj Punctaj/test
12ms131kbOK!5
23ms131kbOK!5
33ms131kbOK!5
43ms131kbOK!5
53ms131kbOK!5
63ms131kbOK!5
73ms131kbOK!5
83ms131kbOK!5
93ms131kbOK!5
103ms131kbOK!5
115ms131kbKilled by Signal 110
124ms131kbKilled by Signal 110
138ms131kbKilled by Signal 110
1415ms262kbKilled by Signal 110
1523ms262kbKilled by Signal 110
1644ms393kbKilled by Signal 110
1789ms524kbKilled by Signal 110
1868ms524kbKilled by Signal 110
1975ms524kbKilled by Signal 110
2032ms524kbKilled by Signal 110
Punctaj total50

Ceva nu functioneaza?