Submission #1758227
Source Code Expand
#include <iostream> #include <vector> using namespace std; int main(void){ int n, a; cin >> n; for (int i = 0; i < n; i++){ cin >> a; while (a % 6 == 3 || a % 6 == 1){ a--; num++; } } cout << num << endl; return 0; }
Submission Info
Submission Time | |
---|---|
Task | B - 花占い |
User | h2929 |
Language | C++14 (GCC 5.4.1) |
Score | 0 |
Code Size | 291 Byte |
Status | CE |
Compile Error
./Main.cpp: In function ‘int main()’: ./Main.cpp:16:7: error: ‘num’ was not declared in this scope num++; ^ ./Main.cpp:20:11: error: ‘num’ was not declared in this scope cout << num << endl; ^