ამ გვერდზე თქვენ იხილავთ გაგზავნილი ამოხსნების სტატუსს.
გაგზავნის თარიღი: 05.04.2021 20:34:44
ამოცანა: კენტი და ლუწი თანრიგები
მომხმარებელი: amikoo
ვერდიქტი: ამოუხსნელი
შეფასება: 0 ქულა
#include <bits/stdc++.h> using namespace std; int i,a,b; main(){ cin>>a; while(a>0){ if(i%2==0) b=b+a%10; else c=c+a%10; i++; } cout<<c*b; }
PROB_cpp_UID2222PID330_40238a/main.cpp: In function 'int main()': PROB_cpp_UID2222PID330_40238a/main.cpp:8:12: error: 'c' was not declared in this scope else c=c+a%10; ^ PROB_cpp_UID2222PID330_40238a/main.cpp:11:12: error: 'c' was not declared in this scope cout<<c*b; ^