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_36904431_29065.cpp: In function 'int main()':
0_0_36904431_29065.cpp:43:57: error: invalid operands of types 'double' and 'const long long int' to binary 'operator%'
             f[i][0] = (f[i - 1][0] + (str[i] == 'n')) % Mod;
                                                         ^
0_0_36904431_29065.cpp:44:75: error: invalid operands of types 'double' and 'const long long int' to binary 'operator%'
             f[i][1] = (f[i - 1][1] + (str[i] == 'u' ? f[i - 1][0] : 0)) % Mod;
                                                                           ^
0_0_36904431_29065.cpp:45:75: error: invalid operands of types 'double' and 'const long long int' to binary 'operator%'
             f[i][2] = (f[i - 1][2] + (str[i] == 'n' ? f[i - 1][1] : 0)) % Mod;
                                                                           ^
0_0_36904431_29065.cpp:46:75: error: invalid operands of types 'double' and 'const long long int' to binary 'operator%'
             f[i][3] = (f[i - 1][3] + (str[i] == 'h' ? f[i - 1][2] : 0)) % Mod;
                                                                           ^
0_0_36904431_29065.cpp:47:75: error: invalid operands of types 'double' and 'const long long int' to binary 'operator%'
             f[i][4] = (f[i - 1][4] + (str[i] == 'e' ? f[i - 1][3] : 0)) % Mod;
                                                                           ^
0_0_36904431_29065.cpp:48:75: error: invalid operands of types 'double' and 'const long long int' to binary 'operator%'
             f[i][5] = (f[i - 1][5] + (str[i] == 'h' ? f[i - 1][4] : 0)) % Mod;
                                                                           ^
0_0_36904431_29065.cpp:49:75: error: invalid operands of types 'double' and 'const long long int' to binary 'operator%'
             f[i][6] = (f[i - 1][6] + (str[i] == 'h' ? f[i - 1][5] : 0)) % Mod;
                                                                           ^
0_0_36904431_29065.cpp:50:75: error: invalid operands of types 'double' and 'const long long int' to binary 'operator%'
             f[i][7] = (f[i - 1][7] + (str[i] == 'e' ? f[i - 1][6] : 0)) % Mod;
                                                                           ^


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-26 22:55:30, Gzip enabled