QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#807516#2351. Lost in TransferGuanYunchangCompile Error//C++232.1kb2024-12-10 04:22:482024-12-10 04:22:49

详细

answer.code:4:7: error: expected nested-name-specifier before ‘ll’
    4 | using ll = long long;
      |       ^~
answer.code:5:7: error: expected nested-name-specifier before ‘ull’
    5 | using ull = unsigned long long;
      |       ^~~
answer.code:6:7: error: expected nested-name-specifier before ‘lld’
    6 | using lld = long double;
      |       ^~~
answer.code:7:7: error: expected nested-name-specifier before ‘pii’
    7 | using pii = pair<int,int>;
      |       ^~~
answer.code:8:7: error: expected nested-name-specifier before ‘pll’
    8 | using pll = pair<ll, ll>;
      |       ^~~
answer.code:10:7: error: expected nested-name-specifier before ‘vi’
   10 | using vi = vector<int>;
      |       ^~
answer.code:11:7: error: expected nested-name-specifier before ‘vll’
   11 | using vll = vector<ll>;
      |       ^~~
answer.code:12:7: error: expected nested-name-specifier before ‘vpii’
   12 | using vpii = vector<pii>;
      |       ^~~~
answer.code:13:7: error: expected nested-name-specifier before ‘vpll’
   13 | using vpll = vector<pll>;
      |       ^~~~
answer.code:14:7: error: expected nested-name-specifier before ‘vlld’
   14 | using vlld = vector<lld>;
      |       ^~~~
answer.code:32:11: error: ‘ll’ was not declared in this scope; did you mean ‘all’?
   32 | bool cmin(ll &a, ll b) { if(b<a){a=b;return 1;}return 0; }
      |           ^~
      |           all
answer.code:32:15: error: ‘a’ was not declared in this scope
   32 | bool cmin(ll &a, ll b) { if(b<a){a=b;return 1;}return 0; }
      |               ^
answer.code:32:18: error: ‘ll’ was not declared in this scope; did you mean ‘all’?
   32 | bool cmin(ll &a, ll b) { if(b<a){a=b;return 1;}return 0; }
      |                  ^~
      |                  all
answer.code:32:22: error: expression list treated as compound expression in initializer [-fpermissive]
   32 | bool cmin(ll &a, ll b) { if(b<a){a=b;return 1;}return 0; }
      |                      ^
answer.code:33:11: error: ‘ll’ was not declared in this scope; did you mean ‘all’?
   33 | bool cmax(ll &a, ll b) { if(b>a){a=b;return 1;}return 0; }
      |           ^~
      |           all
answer.code:33:15: error: ‘a’ was not declared in this scope
   33 | bool cmax(ll &a, ll b) { if(b>a){a=b;return 1;}return 0; }
      |               ^
answer.code:33:18: error: ‘ll’ was not declared in this scope; did you mean ‘all’?
   33 | bool cmax(ll &a, ll b) { if(b>a){a=b;return 1;}return 0; }
      |                  ^~
      |                  all
answer.code:33:22: error: expression list treated as compound expression in initializer [-fpermissive]
   33 | bool cmax(ll &a, ll b) { if(b>a){a=b;return 1;}return 0; }
      |                      ^
answer.code:34:6: error: variable or field ‘valid’ declared void
   34 | void valid(ll in) { cout<<((in)?"YES\n":"NO\n"); }
      |      ^~~~~
answer.code:34:12: error: ‘ll’ was not declared in this scope; did you mean ‘all’?
   34 | void valid(ll in) { cout<<((in)?"YES\n":"NO\n"); }
      |            ^~
      |            all
answer.code:35:1: error: ‘ll’ does not name a type; did you mean ‘all’?
   35 | ll lcm(ll a, ll b) { return (a/gcd(a,b))*b; }
      | ^~
      | all
answer.code:36:1: error: ‘ll’ does not name a type; did you mean ‘all’?
   36 | ll gauss(ll n) { return (n*(n+1))/2; }
      | ^~
      | all
answer.code:40:1: error: ‘vll’ does not name a type; did you mean ‘all’?
   40 | vll toperm (ll n, vll a) {
      | ^~~
      | all
answer.code:49:1: error: ‘ll’ does not name a type; did you mean ‘all’?
   49 | ll tonum (vll a) {
      | ^~
      | all
answer.code: In function ‘void test_case()’:
answer.code:61:2: error: ‘ll’ was not declared in this scope; did you mean ‘all’?
   61 |  ll n;
      |  ^~
      |  all
answer.code:62:9: error: ‘n’ was not declared in this scope; did you mean ‘yn’?
   62 |  cin >> n;
      |         ^
      |         yn
answer.code:63:2: error: ‘vll’ was not declared in this scope; did you mean ‘all’?
   63 |  vll a(n);
      |  ^~~
      |  all
answer.code:64:4: error: expected ‘;’ before ‘tot’
   64 |  ll tot = 0;
      |    ^~~~
      |    ;
answer.code:65:6: error: ‘i’ does not name a type; did you mean ‘fi’?
   65 |  fo (i, n) cin >> a[i], tot ^= a[i];
      |      ^
answer.code:27:30: note: in definition of macro ‘fore’
   27 | #define fore(i,l,r) for(auto i=l;i<r;i++)
      |                              ^
answer.code:65:2: note: in expansion of macro ‘fo’
   65 |  fo (i, n) cin >> a[i], tot ^= a[i];
      |  ^~
answer.code:65:6: error: expected ‘;’ before ‘i’
   65 |  fo (i, n) cin >> a[i], tot ^= a[i];
      |      ^
answer.code:27:34: note: in definition of macro ‘fore’
   27 | #define fore(i,l,r) for(auto i=l;i<r;i++)
      |                                  ^
answer.code:65:2: note: in expansion of macro ‘fo’
   65 |  fo (i, n) cin >> a[i], tot ^= a[i];
      |  ^~
answer.code:65:6: error: ‘i’ was not declared in this scope; did you mean ‘fi’?
   65 |  fo (i, n) cin >> a[i], tot ^= a[i];
      |   ...