/in/foo.cc: In function 'int gcd(int, int)':
/in/foo.cc:5:12: error: expected ')' before 'a'
if (b a)
^
/in/foo.cc:7:15: error: expected ')' before numeric constant
while (b 0)
^
/in/foo.cc:7:16: error: expected ';' before ')' token
while (b 0)
^
/in/foo.cc:11:5: warning: statement has no effect [-Wunused-value]
}
^
/in/foo.cc: In function 'int main()':
/in/foo.cc:17:10: error: expected ';' before 'T'
cin T;
^
/in/foo.cc:17:11: warning: statement has no effect [-Wunused-value]
cin T;
^
/in/foo.cc:22:28: error: expected ';' before 'n'
for (int i = 1; i n; i )
^
/in/foo.cc:22:28: warning: for increment expression has no effect [-Wunused-value]
/in/foo.cc:22:29: error: expected ')' before ';' token
for (int i = 1; i n; i )
^
/in/foo.cc:22:9: warning: this 'for' clause does not guard... [-Wmisleading-indentation]
for (int i = 1; i n; i )
^~~
/in/foo.cc:22:31: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'for'
for (int i = 1; i n; i )
^
/in/foo.cc:22:31: error: 'i' was not declared in this scope
/in/foo.cc:25:28: error: expected ';' before 'n'
for (int i = 3; i n; i )
^
/in/foo.cc:25:28: warning: for increment expression has no effect [-Wunused-value]
/in/foo.cc:25:29: error: expected ')' before ';' token
for (int i = 3; i n; i )
^
/in/foo.cc:25:9: warning: this 'for' clause does not guard... [-Wmisleading-indentation]
for (int i = 3; i n; i )
^~~
/in/foo.cc:25:31: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'for'
for (int i = 3; i n; i )
^
/in/foo.cc:25:33: error: expected ';' before ')' token
for (int i = 3; i n; i )
^
/in/foo.cc:27:18: error: expected ')' before numeric constant
if (tmp 1 n 1)
^
/in/foo.cc:28:19: error: expected ';' before string constant
cout "YES" endl;
^~~~~
/in/foo.cc:28:30: warning: statement has no effect [-Wunused-value]
cout "YES" endl;
^
/in/foo.cc:29:20: error: expected ';' before string constant
else cout "NO" endl;
^~~~
/in/foo.cc:29:30: warning: statement has no effect [-Wunused-value]
else cout "NO" endl;
^