제출 #1107973

#제출 시각아이디문제언어결과실행 시간메모리
1107973AlgorithmWarrior마술쇼 (APIO24_show)C++17
컴파일 에러
0 ms0 KiB
#include <bits/stdc++.h> #include "Alice.h" using namespace std; vector<pair<int,int>>Alice(){ long long x=long long setN(3602); vector<pair<int,int>>tree; tree.push_back({1,2}); int i,j; for(i=0;i<60;++i){ int bit=(x&(1<<i)); for(j=0;j<60;++j){ tree.push_back({bit+1,3+i*60+j}); } } return tree; }
#include <bits/stdc++.h> #include "Bob.h" using namespace std; long long Bob(vector<pair<int,int>> V){ long long x=0; for(auto edge : V){ if(edge.first==2){ x|=(1<<((edge.second-3)/60)); } } return x; }

컴파일 시 표준 에러 (stderr) 메시지

Alice.cpp: In function 'std::vector<std::pair<int, int> > Alice()':
Alice.cpp:7:17: error: expected primary-expression before 'long'
    7 |     long long x=long long setN(3602);
      |                 ^~~~