Borderou de evaluare (job #824054)

Utilizator avatar popescu_george Popescu George popescu_george IP ascuns
Problemă Resturi 2 (clasele 5-6 ) Compilator cpp-32
Rundă Arhiva de probleme Status evaluat
Dată 15 mai 2025 09:42:04 Scor 0

Raport evaluator

Eroare de compilare: main.cpp: In function 'int main()': main.cpp:27:23: error: redeclaration of 'int k' 27 | int i,k,o=B(),k=B(); | ^ main.cpp:27:15: note: 'int k' previously declared here 27 | int i,k,o=B(),k=B(); | ^ main.cpp:28:9: error: 'r' was not declared in this scope 28 | r=o/(1LL*(k-1)*k/2)*k;o%=(1LL*(k-1)*k/2),i=sqrt(2LL*o),!o?cout<<r-1:1LL*i*(i+1)/2==o?cout<<r+i:cout<<"kuku",cout<<'\n'; | ^