Borderou de evaluare (job #2690805)

Utilizator andrei_marciucMarciuc Andrei andrei_marciuc Data 25 decembrie 2020 22:11:55
Problema Numar4 Status done
Runda Arhiva de probleme Compilator cpp-64 | Vezi sursa
Scor 80

Raport evaluator

Compilare: main.cpp: In function 'int main()': main.cpp:25:5: warning: this 'if' clause does not guard... [-Wmisleading-indentation] if( v[ 0 ] == 0 ) ^~ main.cpp:27:2: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'if' b[ 0 ] = v[ 0 ] - ni + 1; ^ main.cpp:33:5: warning: this 'if' clause does not guard... [-Wmisleading-indentation] if( v[ v[ 0 ] ] == 0 ) ^~ main.cpp:35:2: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'if' a[ 0 ] = v[ 0 ]; ^ main.cpp:15:14: warning: unused variable 'n1' [-Wunused-variable] int ni, nz, n1, n2, i, j, c = 0, poz; ^~ main.cpp:15:18: warning: unused variable 'n2' [-Wunused-variable] int ni, nz, n1, n2, i, j, c = 0, poz; ^~ main.cpp:15:25: warning: variable 'j' set but not used [-Wunused-but-set-variable] int ni, nz, n1, n2, i, j, c = 0, poz; ^ main.cpp:15:28: warning: unused variable 'c' [-Wunused-variable] int ni, nz, n1, n2, i, j, c = 0, poz; ^ main.cpp:15:35: warning: unused variable 'poz' [-Wunused-variable] int ni, nz, n1, n2, i, j, c = 0, poz; ^~~ main.cpp:17:33: warning: ignoring return value of 'int fscanf(FILE*, const char*, ...)', declared with attribute warn_unused_result [-Wunused-result] fscanf( fin, "%d%d", &ni, &nz ); ^ main.cpp:21:31: warning: ignoring return value of 'int fscanf(FILE*, const char*, ...)', declared with attribute warn_unused_result [-Wunused-result] fscanf( fin, "%d", &v[ i ] ); ^
Test Timp executie Memorie folosita Mesaj Punctaj/test
12ms131kbOK5
22ms131kbOK5
32ms131kbOK5
42ms131kbOK5
52ms131kbOK5
62ms131kbOK5
72ms131kbIncorect0
83ms131kbOK5
93ms131kbOK5
102ms131kbOK5
113ms131kbOK5
123ms131kbOK5
133ms131kbOK5
143ms131kbOK5
153ms131kbOK5
163ms131kbIncorect0
1753ms131kbOK5
1895ms131kbOK5
19183ms262kbIncorect0
203ms131kbIncorect0
Punctaj total80

Ceva nu functioneaza?