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_21047432_7841.cpp: In function 'int main()':
0_0_21047432_7841.cpp:24:24: error: cannot pass objects of non-trivially-copyable type 'std::string {aka class std::basic_string<char>}' through '...'
    while(scanf("%s",str) not_eq EOF){
                        ^
0_0_21047432_7841.cpp:25:27: error: cannot convert 'std::string {aka std::basic_string<char>}' to 'const char*' for argument '1' to 'size_t strlen(const char*)'
         int len=strlen(str);
                           ^
0_0_21047432_7841.cpp:28:13: error: 'LL' was not declared in this scope
             LL n=0;bool flag=0;
             ^
0_0_21047432_7841.cpp:29:35: error: 'n' was not declared in this scope
             for(int i=0;i<len;i++)n=n*10+str[i]-'0';
                                   ^
0_0_21047432_7841.cpp:31:17: error: 'n' was not declared in this scope
                 n=sqrt(n);
                 ^
0_0_21047432_7841.cpp:32:22: error: expected ')' before 'eq'
                 if(n eq 1){flag=1;print(i);break;}
                      ^
0_0_21047432_7841.cpp:32:42: error: 'print' was not declared in this scope
                 if(n eq 1){flag=1;print(i);break;}
                                          ^


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-12-02 21:49:29, Gzip enabled