Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
153426 孔声豪 19买画笔 C++ Compile Error 0 MS 0 KB 256 2026-05-17 11:16:55

Tests(0/0):


Code:

#include<bits/stdc++.h> using namespace std; int main(){ int t[1000001]={},n,a,j; cin>>n; for(int i=1;i<=n,i++){ cin>>a; t[a]++; } for( j=1;j<=100,i++){ if(t[j]==1){ break; } } cout<<j; return 0; }


Run Info:

Main.cc: In function 'int main()':
Main.cc:6:18: warning: left operand of comma operator has no effect [-Wunused-value]
     for(int i=1;i<=n,i++){
                  ^
Main.cc:6:25: error: expected ';' before ')' token
     for(int i=1;i<=n,i++){
                         ^
Main.cc:10:21: error: 'i' was not declared in this scope
     for( j=1;j<=100,i++){
                     ^
Main.cc:10:24: error: expected ';' before ')' token
     for( j=1;j<=100,i++){
                        ^