Borderou de evaluare (job #1916107)
Utilizator | Data | 9 martie 2017 01:02:00 | |
---|---|---|---|
Problema | Cifre 5 | Status | done |
Runda | Arhiva de probleme | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp: In function ‘int main()’:
user.cpp:25:9: error: expected ‘,’ or ‘;’ before ‘long’
long long int total,mem=8,n=1;
^
user.cpp:27:13: error: ‘total’ was not declared in this scope
total = total * rasp[nr%10];
^
user.cpp:29:17: error: ‘n’ was not declared in this scope
n = n+n*rasp[mem];
^
user.cpp:29:30: error: ‘mem’ was not declared in this scope
n = n+n*rasp[mem];
^
user.cpp:31:28: error: ‘n’ was not declared in this scope
if(nr%10 == 7) n = n+n*rasp[mem]*2;
^
user.cpp:31:41: error: ‘mem’ was not declared in this scope
if(nr%10 == 7) n = n+n*rasp[mem]*2;
^
user.cpp:32:13: error: ‘mem’ was not declared in this scope
mem %= 10;
^
user.cpp:35:15: error: ‘total’ was not declared in this scope
fout<<total-1-n;
^
user.cpp:35:23: error: ‘n’ was not declared in this scope
fout<<total-1-n;
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !