F.A.Q
Hand In Hand
Online Acmers
Problem Archive
Realtime Judge Status
Authors Ranklist
 
     C/C++/Java Exams     
ACM Steps
Go to Job
Contest LiveCast
ICPC@China
Best Coder beta
VIP | STD Contests
    DIY | Web-DIY beta
Author ID 
Password 
 Register new ID

View Compilation Error

0_0_16976246_16595.cpp:1:2: error: invalid preprocessing directive #includeusing
 #includeusing namespace std;
  ^
0_0_16976246_16595.cpp: In function 'void solve(int)':
0_0_16976246_16595.cpp:3:101: error: expected ')' before '}' token
 void solve(int num){    if(num == 0)        return;    solve(num/digit);    printf("%c",num % digit }
                                                                                                     ^
0_0_16976246_16595.cpp: In function 'int main()':
0_0_16976246_16595.cpp:4:35: error: 'cin' was not declared in this scope
 int main() {    int num;    while(cin  num  digit) {        if(num  0)        solve(num);        else if (!num)        cout         else {        cout         solve(-num);        }        cout     }    return 0;}
                                   ^
0_0_16976246_16595.cpp:4:40: error: expected ')' before 'num'
 int main() {    int num;    while(cin  num  digit) {        if(num  0)        solve(num);        else if (!num)        cout         else {        cout         solve(-num);        }        cout     }    return 0;}
                                        ^
0_0_16976246_16595.cpp:4:45: error: expected ';' before 'digit'
 int main() {    int num;    while(cin  num  digit) {        if(num  0)        solve(num);        else if (!num)        cout         else {        cout         solve(-num);        }        cout     }    return 0;}
                                             ^
0_0_16976246_16595.cpp:4:212: error: expected '}' at end of input
 int main() {    int num;    while(cin  num  digit) {        if(num  0)        solve(num);        else if (!num)        cout         else {        cout         solve(-num);        }        cout     }    return 0;}
                                                                                                                                                                                                                    ^


Hangzhou Dianzi University Online Judge 3.0
Copyright © 2005-2024 HDU ACM Team. All Rights Reserved.
Designer & Developer : Wang Rongtao LinLe GaoJie GanLu
Total 0.000000(s) query 1, Server time : 2024-11-23 09:49:43, Gzip enabled