Borderou de evaluare (job #2952102)

Utilizator Fantastic_Mantudor voicu Fantastic_Man Data 8 decembrie 2022 11:52:51
Problema Cele mai apropiate puncte din plan Status done
Runda Arhiva educationala Compilator cpp-64 | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: main.cpp: In function 'ull divide(int, int)': main.cpp:41:24: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<std::pair<int, int> >::size_type' {aka 'long unsigned int'} [-Wsign-compare] 41 | for ( int i = 0; i < srt.size (); i++ ) | ~~^~~~~~~~~~~~~ main.cpp:46:14: warning: init-statement in selection statements only available with '-std=c++17' or '-std=gnu++17' 46 | if ( ( abs ( rev[i].y - v[mij].x ) <= best ) | ^ main.cpp:46:53: error: expected ';' before 'a' 46 | if ( ( abs ( rev[i].y - v[mij].x ) <= best ) | ^ | ; 47 | a[nr++] = rev[i]; | ~ main.cpp:49:5: error: expected primary-expression before 'for' 49 | for ( int i = 0; i < nr; i++) | ^~~ main.cpp:47:30: error: expected ')' before 'for' 47 | a[nr++] = rev[i]; | ^ | ) 48 | 49 | for ( int i = 0; i < nr; i++) | ~~~ main.cpp:46:12: note: to match this '(' 46 | if ( ( abs ( rev[i].y - v[mij].x ) <= best ) | ^ main.cpp:46:9: warning: this 'if' clause does not guard... [-Wmisleading-indentation] 46 | if ( ( abs ( rev[i].y - v[mij].x ) <= best ) | ^~ main.cpp:49:22: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' 49 | for ( int i = 0; i < nr; i++) | ^ main.cpp:49:22: error: 'i' was not declared in this scope main.cpp:50:41: error: 'j' was not declared in this scope 50 | for ( int j = max ( 0, i - 7 ); j < i; j++) | ^ Non zero exit status: 1

Ceva nu functioneaza?