Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
124554 程诺 19买画笔 C++ Compile Error 0 MS 0 KB 316 2025-07-12 08:51:10

Tests(0/0):


Code:

#include<bits/stdc++.h> using namespace std; int a[1000000]; int main(){ int n; cin>>n; for(int i=1;i<=n;i++){ cin>>a[i]; } for(int i=1;i<=n;i++){ int x=0; for(int j=1;j<=n;j++){ if(a[i] == a[j]){ x++; } } if(x%!=0){ cout<<i<<endl; return 0; } } return 0; }


Run Info:

Main.cc: In function 'int main()':
Main.cc:17:8: error: expected primary-expression before '!=' token
   if(x%!=0){
        ^