QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#454613#2809. Presentegypt_ioi2024_08#Compile Error//C++20940b2024-06-25 06:16:342024-06-25 06:16:35

Details

answer.code: In function ‘int main()’:
answer.code:20:97: error: expected ‘)’ before ‘]’ token
   20 |       for(auto it:ans[ind]) { if(!(binary_search(ans[ind].begin(), ans[ind].end(), __gcd(it,num)]))) { f = 0; break; } }
      |                                                 ~                                               ^
      |                                                                                                 )
answer.code:20:97: error: expected ‘)’ before ‘]’ token
   20 |       for(auto it:ans[ind]) { if(!(binary_search(ans[ind].begin(), ans[ind].end(), __gcd(it,num)]))) { f = 0; break; } }
      |                                   ~                                                             ^
      |                                                                                                 )
answer.code:20:119: error: expected ‘)’ before ‘}’ token
   20 |       for(auto it:ans[ind]) { if(!(binary_search(ans[ind].begin(), ans[ind].end(), __gcd(it,num)]))) { f = 0; break; } }
      |                                 ~                                                                                     ^~
      |                                                                                                                       )
answer.code:20:120: error: expected primary-expression before ‘}’ token
   20 |       for(auto it:ans[ind]) { if(!(binary_search(ans[ind].begin(), ans[ind].end(), __gcd(it,num)]))) { f = 0; break; } }
      |                                                                                                                        ^