제출 #244608

#제출 시각아이디문제언어결과실행 시간메모리
244608kimbj0709Political Development (BOI17_politicaldevelopment)C++14
컴파일 에러
0 ms0 KiB
#include<bits/stdc++.h> using namespace std; #define int long long int32_t main(){ ios::sync_with_stdio(0); cin.tie(0);cout.tie(0); int no_of_people,k; cin >> no_of_people >> k; int input1; for(int i=0;i<no_of_people;i++){ cin >> input; if(input>=1){ cout << 2; return 0; } } cout << 1; }

컴파일 시 표준 에러 (stderr) 메시지

politicaldevelopment.cpp: In function 'int32_t main()':
politicaldevelopment.cpp:11:16: error: 'input' was not declared in this scope
         cin >> input;
                ^~~~~
politicaldevelopment.cpp:11:16: note: suggested alternative: 'input1'
         cin >> input;
                ^~~~~
                input1
politicaldevelopment.cpp:9:9: warning: unused variable 'input1' [-Wunused-variable]
     int input1;
         ^~~~~~