Submission #1371704
Source Code Expand
#include <iostream> using namespace std; int main() { cin >> S >> T; for(int S, T, i=0; ; S++ ;i++) if( S == T) break; cout << i << endl; return 0; }
Submission Info
Submission Time | |
---|---|
Task | A - アルバム |
User | nakasyo2650 |
Language | C++14 (GCC 5.4.1) |
Score | 0 |
Code Size | 175 Byte |
Status | CE |
Compile Error
./Main.cpp: In function ‘int main()’: ./Main.cpp:6:9: error: ‘S’ was not declared in this scope cin >> S >> T; ^ ./Main.cpp:6:14: error: ‘T’ was not declared in this scope cin >> S >> T; ^ ./Main.cpp:8:28: error: expected ‘)’ before ‘;’ token for(int S, T, i=0; ; S++ ;i++) ^ ./Main.cpp:8:29: error: ‘i’ was not declared in this scope for(int S, T, i=0; ; S++ ;i++) ^