Borderou de evaluare (job #2710072)

Utilizator andrei_ciobanuciobanu andrei andrei_ciobanu Data 21 februarie 2021 19:21:02
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
123ms131kbKilled by Signal 110
136ms131kbKilled by Signal 110
1412ms262kbKilled by Signal 110
1523ms262kbKilled by Signal 110
1636ms393kbKilled by Signal 110
1768ms524kbKilled by Signal 110
1864ms524kbKilled by Signal 110
1964ms524kbKilled by Signal 110
2040ms524kbKilled by Signal 110
Punctaj total50

Ceva nu functioneaza?