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_27566560_1680.cpp: In function 'long long int sol()':
0_0_27566560_1680.cpp:77:15: error: 'n' was not declared in this scope
   for(int i = n-1; i >=0; i--) {
               ^
0_0_27566560_1680.cpp:78:23: error: 'm' was not declared in this scope
    for(int k = 1; k <=m; ++k) {
                       ^
0_0_27566560_1680.cpp: In function 'int main()':
0_0_27566560_1680.cpp:101:16: error: 'n' was not declared in this scope
    scanf("%d",&n);
                ^
0_0_27566560_1680.cpp:109:4: error: 'm' was not declared in this scope
    m=(int)sqrt(n*2)+1;
    ^


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-06-21 13:14:36, Gzip enabled