Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
61696 段文昊 19买画笔 C++ Compile Error 0 MS 0 KB 266 2023-12-10 16:11:17

Tests(0/0):


Code:

#include<iostream> using namespace std; int main() { int n; cin>>n; int a[101],tmp; for(int i; i=1; i++) { cin>>tmp; a[tmp]++; } int z; for(int i=0; i<101; i++) { if(a[i]==1) { zzs=i; break; } } cout<<zzs; return 0; }


Run Info:

Main.cc: In function 'int main()':
Main.cc:9:15: warning: suggest parentheses around assignment used as truth value [-Wparentheses]
  for(int i; i=1; i++) {
               ^
Main.cc:16:4: error: 'zzs' was not declared in this scope
    zzs=i;
    ^
Main.cc:20:8: error: 'zzs' was not declared in this scope
  cout<