Mã chấm Tài khoản Bài tập Ngôn ngữ lập trình Trạng thái Thời gian Bộ nhớ Kích thước Thời gian nộp
14446 Phan Ngọc Cường Cặp số tương đồng C/C++ Lỗi biên dịch (CE) 0 MS 0 KB 644 2022-12-29 22:35:58

Lỗi biên dịch:

Main.cc:1:1: error: ‘set’ does not name a type
 setvec(int n){
 ^~~
Main.cc: In function ‘int equivalentPrimeNumber(int, int)’:
Main.cc:17:5: error: ‘set’ was not declared in this scope
     setarr;
     ^~~
Main.cc:17:9: error: expected primary-expression before ‘int’
     setarr;
         ^~~
Main.cc:20:9: error: ‘arr’ was not declared in this scope
         arr = vec(i);
         ^~~
Main.cc:20:15: error: ‘vec’ was not declared in this scope
         arr = vec(i);
               ^~~
Main.cc:22:16: error: ‘__gcd’ was not declared in this scope
             if(__gcd(i,j) == 1) continue;
                ^~~~~