Submission #2708717
Source Code Expand
c#include<bits/stdc++.h> using namespace std; using Int = long long; //INSERT ABOVE HERE signed main(){ Int n; cin>>n; vector<string> a(n); for(Int i=0;i<n;i++) cin>>a[i]; for(Int i=0;i<n;i++){ Int res=0; for(Int j=0;j<10;j++) for(Int k=0;k<j;k++) res+=a[i][k]>a[i][j]; res&=1; cout<<res<<endl; } return 0; }
Submission Info
Submission Time | |
---|---|
Task | F - チェックディジット |
User | beet |
Language | C++14 (GCC 5.4.1) |
Score | 0 |
Code Size | 365 Byte |
Status | CE |
Compile Error
./Main.cpp:1:2: error: stray ‘#’ in program c#include<bits/stdc++.h> ^ ./Main.cpp:1:1: error: ‘c’ does not name a type c#include<bits/stdc++.h> ^ ./Main.cpp: In function ‘int main()’: ./Main.cpp:7:3: error: ‘cin’ was not declared in this scope cin>>n; ^ ./Main.cpp:8:3: error: ‘vector’ was not declared in this scope vector<string> a(n); ^ ./Main.cpp:8:10: error: ‘string’ was not declared in this scope vector<string> a(n); ^ ./Main.cpp:8:21: error: ‘a’ was not declared in this scope vector<string> a(n); ^ ./Main.cpp:16:5: error: ‘cout’ was not declared in this scope cout<<res<<endl; ^ ./Main.cpp:16:16: error: ‘endl’ was not declared in this scope cout<<res<<endl; ^