Tiltai ir tuneliai

Taškai: 60

Compile: OK

tiltai.cpp: In function ‘bool compare(char*, char*)’: tiltai.cpp:15:29: warning: NULL used in arithmetic [-Wpointer-arith] for(int i = 0; c1[i] != NULL || c2[i] != NULL; i++){ ^ tiltai.cpp:15:46: warning: NULL used in arithmetic [-Wpointer-arith] for(int i = 0; c1[i] != NULL || c2[i] != NULL; i++){ ^ tiltai.cpp:16:21: warning: NULL used in arithmetic [-Wpointer-arith] if(c1[i] == NULL || c2[i] == NULL){ ^ tiltai.cpp:16:38: warning: NULL used in arithmetic [-Wpointer-arith] if(c1[i] == NULL || c2[i] == NULL){ ^ tiltai.cpp: In function ‘int main()’: tiltai.cpp:35:20: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%i", &n); ^ tiltai.cpp:37:27: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%s", cstr1); ^ tiltai.cpp:38:27: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%s", cstr2); ^

nr.resulttimemessage
1True0.0 sok
2True0.0 sok
3True0.0 sok
4False1.08 sTime limit exceeded (wall clock)
5False1.088 sTime limit exceeded (wall clock)