QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#454613#2809. Presentegypt_ioi2024_08#Compile Error//C++20940b2024-06-25 06:16:342024-06-25 06:16:35

詳細信息

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; } }
      |                                                                                                                        ^