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_33936333_358.cpp: In function 'ull solve1(ull)':
0_0_33936333_358.cpp:34:5: error: 'int128' was not declared in this scope
     int128 stp = 49, div = 100, mod = 1; ull ans = 0;    
     ^
0_0_33936333_358.cpp:36:13: error: 'stp' was not declared in this scope
         if (stp>n) break;        
             ^
0_0_33936333_358.cpp:37:16: error: expected ';' before '_front'
         int128 _front = (n/div)+1; 
                ^
0_0_33936333_358.cpp:38:16: error: expected ';' before '_mid'
         int128 _mid = (n/mod%100);
                ^
0_0_33936333_358.cpp:39:16: error: expected ';' before '_back'
         int128 _back = (n%mod)+1; 
                ^
0_0_33936333_358.cpp:40:13: error: '_mid' was not declared in this scope
         if (_mid>49) ans += _front*mod; 
             ^
0_0_33936333_358.cpp:40:29: error: '_front' was not declared in this scope
         if (_mid>49) ans += _front*mod; 
                             ^
0_0_33936333_358.cpp:40:36: error: 'mod' was not declared in this scope
         if (_mid>49) ans += _front*mod; 
                                    ^
0_0_33936333_358.cpp:42:21: error: '_front' was not declared in this scope
             ans += (_front-1)*mod;
                     ^
0_0_33936333_358.cpp:42:31: error: 'mod' was not declared in this scope
             ans += (_front-1)*mod;
                               ^
0_0_33936333_358.cpp:43:20: error: '_back' was not declared in this scope
             ans += _back;       
                    ^
0_0_33936333_358.cpp:45:35: error: '_front' was not declared in this scope
         else if (_mid<49) ans += (_front-1)*mod;       
                                   ^
0_0_33936333_358.cpp:45:45: error: 'mod' was not declared in this scope
         else if (_mid<49) ans += (_front-1)*mod;       
                                             ^
0_0_33936333_358.cpp:46:13: error: '_front' was not declared in this scope
         if (_front==1) break;        
             ^
0_0_33936333_358.cpp:47:9: error: 'stp' was not declared in this scope
         stp *= 10, div *= 10, mod *= 10;    
         ^
0_0_33936333_358.cpp:47:24: error: overloaded function with no contextual type information
         stp *= 10, div *= 10, mod *= 10;    
                        ^
0_0_33936333_358.cpp:47:31: error: 'mod' was not declared in this scope
         stp *= 10, div *= 10, mod *= 10;    
                               ^


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-20 17:22:33, Gzip enabled