fountain.cpp: In function 'int main()':
fountain.cpp:18:30: error: expected ';' before 'tab'
18 | scanf("%d%d", &a, &b)
| ^
| ;
19 | tab.push_back({a, b});
| ~~~
fountain.cpp:19:29: error: expected primary-expression before ')' token
19 | tab.push_back({a, b});
| ^
fountain.cpp:12:10: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
12 | scanf("%d%d", &n, &q);
| ~~~~~^~~~~~~~~~~~~~~~
fountain.cpp:18:14: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
18 | scanf("%d%d", &a, &b)
| ~~~~~^~~~~~~~~~~~~~~~
fountain.cpp:48:14: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
48 | scanf("%d%d", &a, &b);
| ~~~~~^~~~~~~~~~~~~~~~