Borderou de evaluare (job #2210728)

Utilizator felixiPuscasu Felix felixi Data 7 iunie 2018 19:36:58
Problema Sume 2 Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.cpp:8:7: error: ‘I64’ does not name a type const I64 NMAX = 5e4; ^~~ user.cpp:9:7: error: ‘I64’ does not name a type const I64 VMAX = (1 << 24); ^~~ user.cpp:11:1: error: ‘I64’ does not name a type I64 v[NMAX+2], N, K; ^~~ user.cpp:13:1: error: ‘I64’ does not name a type I64 CNT(I64 val) ^~~ user.cpp: In function ‘int main()’: user.cpp:26:11: error: ‘N’ was not declared in this scope in >> N >> K; ^ user.cpp:26:16: error: ‘K’ was not declared in this scope in >> N >> K; ^ user.cpp:27:10: error: ‘I64’ was not declared in this scope for( I64 i = 1; i <= N; ++i ) in >> v[i]; ^~~ user.cpp:27:22: error: ‘i’ was not declared in this scope for( I64 i = 1; i <= N; ++i ) in >> v[i]; ^ user.cpp:27:43: error: ‘v’ was not declared in this scope for( I64 i = 1; i <= N; ++i ) in >> v[i]; ^ user.cpp:28:11: error: ‘v’ was not declared in this scope sort( v+1, v+N+1 ); ^ user.cpp:29:5: error: ‘I64’ was not declared in this scope I64 st = 2 * v[1], dr = 2 * v[N], last = -1; ^~~ user.cpp:30:12: error: ‘st’ was not declared in this scope while( st <= dr ) { ^~ user.cpp:30:18: error: ‘dr’ was not declared in this scope while( st <= dr ) { ^~ user.cpp:31:13: error: expected ‘;’ before ‘mid’ I64 mid = (st + dr) / 2; ^~~ user.cpp:32:17: error: ‘mid’ was not declared in this scope if( CNT(mid) >= K ) { ^~~ user.cpp:32:20: error: ‘CNT’ was not declared in this scope if( CNT(mid) >= K ) { ^ user.cpp:36:13: error: ‘last’ was not declared in this scope

Ceva nu functioneaza?