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_36450795_18842.cpp: In function 'int main()':
0_0_36450795_18842.cpp:105:16: error: call of overloaded 'read()' is ambiguous
   int T = read();
                ^
0_0_36450795_18842.cpp:105:16: note: candidates are:
0_0_36450795_18842.cpp:59:5: note: int read()
 int read() {
     ^
0_0_36450795_18842.cpp:33:7: note: int IO::read()
   int read() {
       ^
0_0_36450795_18842.cpp:107:18: error: call of overloaded 'read()' is ambiguous
     int n = read(), x = read(), y = read();
                  ^
0_0_36450795_18842.cpp:107:18: note: candidates are:
0_0_36450795_18842.cpp:59:5: note: int read()
 int read() {
     ^
0_0_36450795_18842.cpp:33:7: note: int IO::read()
   int read() {
       ^
0_0_36450795_18842.cpp:109:9: error: 'x' was not declared in this scope
     if (x > y) x = n - x + 1, y = n - y + 1;
         ^
0_0_36450795_18842.cpp:109:13: error: 'y' was not declared in this scope
     if (x > y) x = n - x + 1, y = n - y + 1;
             ^
0_0_36450795_18842.cpp:110:9: error: 'x' was not declared in this scope
     if (x == y) { print(0, '\n'); continue; }
         ^
0_0_36450795_18842.cpp:110:14: error: 'y' was not declared in this scope
     if (x == y) { print(0, '\n'); continue; }
              ^
0_0_36450795_18842.cpp:110:32: error: call of overloaded 'print(int, char)' is ambiguous
     if (x == y) { print(0, '\n'); continue; }
                                ^
0_0_36450795_18842.cpp:110:32: note: candidates are:
0_0_36450795_18842.cpp:70:27: note: void print(T, char) [with T = int]
 template<typename T> void print(T x, char let) {
                           ^
0_0_36450795_18842.cpp:47:27: note: void IO::print(T, char) [with T = int]
   template <class T> void print(T x, char charset) {
                           ^
0_0_36450795_18842.cpp:112:9: error: 'y' was not declared in this scope
     if (y == n) {
         ^
0_0_36450795_18842.cpp:114:21: error: 'x' was not declared in this scope
       print(sum[n - x], '\n');
                     ^
0_0_36450795_18842.cpp:131:26: error: 'x' was not declared in this scope
       print((a + sum[n - x] + mod - sum[n - y + 1]) % mod, '\n'); 
                          ^


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 02:32:19, Gzip enabled