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_19135710_19452.cpp: In function 'int main()':
0_0_19135710_19452.cpp:43:26: error: request for member 'size' in 's.std::basic_string<_CharT, _Traits, _Alloc>::operator[]<char, std::char_traits<char>, std::allocator<char> >(((std::basic_string<char>::size_type)(j + 1)))', which is of non-class type 'char'
                 f(s[j+1].size()<s[j].size()) swap(s[j+1],s[j]);
                          ^
0_0_19135710_19452.cpp:43:38: error: request for member 'size' in 's.std::basic_string<_CharT, _Traits, _Alloc>::operator[]<char, std::char_traits<char>, std::allocator<char> >(((std::basic_string<char>::size_type)j))', which is of non-class type 'char'
                 f(s[j+1].size()<s[j].size()) swap(s[j+1],s[j]);
                                      ^
0_0_19135710_19452.cpp:43:44: error: 'f' was not declared in this scope
                 f(s[j+1].size()<s[j].size()) swap(s[j+1],s[j]);
                                            ^
0_0_19135710_19452.cpp:44:15: error: request for member 'size' in 's.std::basic_string<_CharT, _Traits, _Alloc>::operator[]<char, std::char_traits<char>, std::allocator<char> >(((std::basic_string<char>::size_type)(j + 1)))', which is of non-class type 'char'
     if(s[j+1].size()==s[j].size()&&s[j+1]<s[j]) swap(r[j+1],r[j]);            
               ^
0_0_19135710_19452.cpp:44:28: error: request for member 'size' in 's.std::basic_string<_CharT, _Traits, _Alloc>::operator[]<char, std::char_traits<char>, std::allocator<char> >(((std::basic_string<char>::size_type)j))', which is of non-class type 'char'
     if(s[j+1].size()==s[j].size()&&s[j+1]<s[j]) swap(r[j+1],r[j]);            
                            ^


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-19 17:31:49, Gzip enabled