foo.cc:5:12: warning: missing terminating " character
5 | printf("hello, world\#include <iostream>
| ^
foo.cc:5:12: error: missing terminating " character
5 | printf("hello, world\#include <iostream>
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
foo.cc:105:2: warning: missing terminating " character
105 | n");
| ^
foo.cc:105:2: error: missing terminating " character
105 | n");
| ^~~
foo.cc: In function 'int main()':
foo.cc:6:1: error: expected primary-expression before 'using'
6 | using namespace std;
| ^~~~~
foo.cc:10:1: error: a function-definition is not allowed here before '{' token
10 | {
| ^
foo.cc:19:1: error: a function-definition is not allowed here before '{' token
19 | {
| ^
foo.cc:37:9: warning: empty parentheses were disambiguated as a function declaration [-Wvexing-parse]
37 | int main()
| ^~
foo.cc:37:9: note: remove parentheses to default-initialize a variable
37 | int main()
| ^~
| --
foo.cc:37:9: note: or replace parentheses with braces to value-initialize a variable
foo.cc:38:1: error: a function-definition is not allowed here before '{' token
38 | {
| ^
foo.cc:105:1: error: 'n' was not declared in this scope
105 | n");
| ^
foo.cc:7:5: warning: unused variable 'num' [-Wunused-variable]
7 | int num[100000] = {1};
| ^~~
foo.cc:8:5: warning: unused variable 'res' [-Wunused-variable]
8 | int res[100000] = {0};
| ^~~
[Hydro](https://hydro.ac)提供评测服务