Borderou de evaluare (job #1694348)
Utilizator | Data | 25 aprilie 2016 11:42:21 | |
---|---|---|---|
Problema | NumereX | Status | done |
Runda | Arhiva de probleme | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp: In function ‘void update(int, int, int)’:
user.cpp:7:8: error: ‘a’ was not declared in this scope
if(a<=left&&right<=b)
^
user.cpp:7:24: error: ‘b’ was not declared in this scope
if(a<=left&&right<=b)
^
user.cpp:9:9: error: ‘AI’ was not declared in this scope
AI[nod].suma_tot+=k*(left-a+1+right-a+1)*(right-left+1)/2;
^
user.cpp:9:27: error: ‘k’ was not declared in this scope
AI[nod].suma_tot+=k*(left-a+1+right-a+1)*(right-left+1)/2;
^
user.cpp:10:12: error: unable to find numeric literal operator ‘operator"" k’
~k+2k+3k+4k+...+nk
^
user.cpp:10:15: error: unable to find numeric literal operator ‘operator"" k’
~k+2k+3k+4k+...+nk
^
user.cpp:10:18: error: unable to find numeric literal operator ‘operator"" k’
~k+2k+3k+4k+...+nk
^
user.cpp:10:21: error: expected primary-expression before ‘...’ token
~k+2k+3k+4k+...+nk
^
user.cpp:10:21: error: expected ‘;’ before ‘...’ token
user.cpp:12:10: error: ‘suma’ was not declared in this scope
~suma pt a
^
user.cpp:12:15: error: expected ‘;’ before ‘pt’
~suma pt a
^
user.cpp:17:8: error: ‘a’ was not declared in this scope
if(a<=mij) query(2*nod,left,mij);
^
user.cpp:17:36: error: ‘query’ was not declared in this scope
if(a<=mij) query(2*nod,left,mij);
^
user.cpp:18:8: error: ‘b’ was not declared in this scope
if(b>mij) query(2*nod+1,mij+1,right);
^
user.cpp:18:40: error: ‘query’ was not declared in this scope
if(b>mij) query(2*nod+1,mij+1,right);
^
user.cpp:20:5: error: ‘AI’ was not declared in this scope
AI[nod].suma_tot=AI[2*nod].suma_tot+AI[2*nod+1].suma_tot;
^
user.cpp: In function ‘void query(int, int, int, int, int)’:
user.cpp:24:8: error: ‘a’ was not declared in this scope
if(a<=left&&right<=b)
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !