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_21658582_3523.cpp:1:31: error: stray '#' in program
 <span style="font-size:18px;">#include<bits/stdc++.h>
                               ^
0_0_21658582_3523.cpp:1:1: error: expected unqualified-id before '<' token
 <span style="font-size:18px;">#include<bits/stdc++.h>
 ^
0_0_21658582_3523.cpp: In function 'int main()':
0_0_21658582_3523.cpp:7:9: error: '__int64' was not declared in this scope
         __int64 n,m,k,l;
         ^
0_0_21658582_3523.cpp:8:22: error: 'scanf' was not declared in this scope
         scanf("%d",&t);
                      ^
0_0_21658582_3523.cpp:10:37: error: 'n' was not declared in this scope
                 scanf("%I64d%I64d",&n,&m);
                                     ^
0_0_21658582_3523.cpp:10:40: error: 'm' was not declared in this scope
                 scanf("%I64d%I64d",&n,&m);
                                        ^
0_0_21658582_3523.cpp:11:17: error: 'k' was not declared in this scope
                 k=n*(n-1);
                 ^
0_0_21658582_3523.cpp:12:46: error: 'printf' was not declared in this scope
                 if(m>=k/2) printf("%I64d\n",k);
                                              ^
0_0_21658582_3523.cpp:14:25: error: 'l' was not declared in this scope
                         l=k/2-m;
                         ^
0_0_21658582_3523.cpp:15:47: error: 'printf' was not declared in this scope
                         printf("%I64d\n",k+l*2);
                                               ^
0_0_21658582_3523.cpp:18:25: error: 'l' was not declared in this scope
                         l=n-(m+1);
                         ^
0_0_21658582_3523.cpp:19:33: error: expected ';' before 'num'
                         __int64 num=l*(n-1)*n;
                                 ^
0_0_21658582_3523.cpp:20:34: error: 'num' was not declared in this scope
                         if(m==1) num+=(1+(n-2)*n)*2;
                                  ^
0_0_21658582_3523.cpp:21:30: error: 'num' was not declared in this scope
                         else num+=(m+(n-1-m)*n)+(1+(m-1)*2+l*n)*m;
                              ^
0_0_21658582_3523.cpp:22:42: error: 'num' was not declared in this scope
                         printf("%I64d\n",num);
                                          ^
0_0_21658582_3523.cpp:22:45: error: 'printf' was not declared in this scope
                         printf("%I64d\n",num);
                                             ^


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-23 03:10:46, Gzip enabled