traffic.cpp: In function 'void setIO(std::string)':
traffic.cpp:66:10: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result]
66 | freopen((name+".in").c_str(), "r", stdin);
| ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
traffic.cpp:67:10: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result]
67 | freopen((name+".out").c_str(), "w", stdout);
| ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
traffic.cpp: In function 'int main()':
traffic.cpp:150:7: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
150 | scanf("%d",&N);
| ~~~~~^~~~~~~~~
traffic.cpp:151:25: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
151 | for (i=0;i<N;i++) scanf("%d",&P[i]);
| ~~~~~^~~~~~~~~~~~
traffic.cpp:152:27: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
152 | for (i=0;i<N-1;i++) scanf("%d%d",&S[i],&D[i]);
| ~~~~~^~~~~~~~~~~~~~~~~~~~
/tmp/cclFYkjE.o: In function `main':
grader.cpp:(.text.startup+0x0): multiple definition of `main'
/tmp/ccUxzn5k.o:traffic.cpp:(.text.startup+0x0): first defined here
collect2: error: ld returned 1 exit status