QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#771140#9246. Dominating PointGuanYunchangCompile Error//C++111.0kb2024-11-22 10:05:582024-11-22 10:06:05

Details

answer.code:24:1: error: ‘vector’ does not name a type
   24 | vector<int>ans;
      | ^~~~~~
answer.code: In function ‘int main()’:
answer.code:43:31: error: ‘ans’ was not declared in this scope; did you mean ‘abs’?
   43 |                 for(int j=0;j<ans.size();j++){
      |                               ^~~
      |                               abs
answer.code:50:25: error: ‘ans’ was not declared in this scope; did you mean ‘abs’?
   50 |                         ans.push_back(x);
      |                         ^~~
      |                         abs
answer.code:52:20: error: ‘ans’ was not declared in this scope; did you mean ‘abs’?
   52 |                 if(ans.size()==3){
      |                    ^~~
      |                    abs
answer.code:26:14: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
   26 |         scanf("%d",&n);
      |         ~~~~~^~~~~~~~~